第三方佈局

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    >
    <TextView
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="wrap_content"
        android:text="手機號"
        />
    <EditText
        android:layout_width="0dp"
        android:layout_weight="4"
        android:layout_height="wrap_content"
        android:hint="請輸入手機號"
        android:id="@+id/Edit_Name"
        />
</LinearLayout>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:layout_marginTop="20dp"
    >
    <TextView
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="wrap_content"
        android:text="密碼"
        />
    <EditText
        android:layout_width="0dp"
        android:layout_weight="4"
        android:layout_height="wrap_content"
        android:hint="請輸入手機號"
        android:id="@+id/Edit_Pass"
        />
</LinearLayout>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    >
    <CheckBox
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="wrap_content"
        android:id="@+id/Ji_Box"
        android:text="記住密碼"
        />
    <CheckBox
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="wrap_content"
        android:id="@+id/Zi_Box"
        android:text="自動登錄"
        />

</LinearLayout>


<Button
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="提交"
    android:layout_gravity="center_horizontal"
    android:id="@+id/Send_btn"
    android:layout_marginTop="20dp"
    />
<Button
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="第三方登錄"
    android:layout_gravity="center_horizontal"
    android:id="@+id/San_Deng_btn"
    android:layout_marginTop="20dp"
    />

//Activiy2展示

<?xml version="1.0" encoding="utf-8"?>

<RadioGroup
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:layout_alignParentBottom="true"
    android:id="@+id/Rg"
    android:background="#ccc"
    >

    <RadioButton
        android:layout_width="0dp"
         android:layout_weight="1"
        android:layout_height="wrap_content"
        android:text="我的數據"
        android:button="@null"
        android:gravity="center"
        android:id="@+id/Rb1"
        />
    <RadioButton
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="wrap_content"
        android:text="我的名片"
        android:button="@null"
        android:gravity="center"
        android:id="@+id/Rb2"
        />
</RadioGroup>
<android.support.v4.view.ViewPager
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/Vp"
    android:layout_above="@+id/Rg"
    ></android.support.v4.view.ViewPager>

//Activiy3展示

<?xml version="1.0" encoding="utf-8"?>

<android.support.constraint.ConstraintLayout xmlns:android=“http://schemas.android.com/apk/res/android
xmlns:app=“http://schemas.android.com/apk/res-auto
xmlns:tools=“http://schemas.android.com/tools
android:layout_width=“match_parent”
android:layout_height=“match_parent”
tools:context=".Main3Activity">

</android.support.constraint.ConstraintLayout>

//Afragment

<?xml version="1.0" encoding="utf-8"?>

<FrameLayout xmlns:android=“http://schemas.android.com/apk/res/android
xmlns:tools=“http://schemas.android.com/tools
android:layout_width=“match_parent”
android:layout_height=“match_parent”
tools:context=".fragment.AFragment"

>

<com.example.xlistviewlibrary.XListView
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:id="@+id/XList_View"
></com.example.xlistviewlibrary.XListView>

//Bfragment展示

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android
xmlns:tools=“http://schemas.android.com/tools
android:layout_width=“match_parent”
android:layout_height=“match_parent”
tools:context=".fragment.BFragment"

android:orientation="vertical"
>

<Button
    android:id="@+id/Sao_Yi_Sao"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="掃一掃" />
<Button
    android:id="@+id/Sheng_Btn"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="生成二維碼" />

<ImageView
    android:id="@+id/Image"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@mipmap/ic_launcher" />

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/Text_View"
    />

<Button
    android:id="@+id/result"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="退出登錄"/>

//listView展示

<?xml version="1.0" encoding="utf-8"?>

<ImageView
    android:layout_width="50dp"
    android:layout_height="50dp"
    android:id="@+id/Img"
    />
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/Text_View"
    />
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章