我試圖在查看傳呼機下做一個頁腳但它並沒有出現,我不知道爲什麼?這是我試過的,我添加了查看傳呼機下的按鈕,但它並沒有出現!爲什麼這個按鈕不顯示
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_survay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/ferani">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v4.view.ViewPager
android:id="@+id/survey_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true" />
<Button
android:id="@+id/login"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="right"
android:layout_marginTop="5dp"
android:background="@drawable/primary_round"
android:padding="5dp"
android:layout_weight="1"
android:text="التالي" />
</LinearLayout>
</LinearLayout>
這看起來像一個無效的佈局。我看到3'LinearLayout'開始標記,但只有2個結束標記 –
嗯,它是一段代碼而不是完整的代碼,我已經編輯了我的代碼請指教 –
@HabooltakAna如果這只是完整代碼的一小部分,我只能說是 - 你錯過了一個' LinearLayout>'如果你的完整代碼包含了那個缺失的部分,那麼它就是其他的東西。 – Dayan