关闭

xml布局2

标签: androidxmllayoutloginbuttonencoding
421人阅读 评论(0) 收藏 举报

  

account_login.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/bg_account"
    android:orientation="vertical" >

    <RelativeLayout
        android:id="@id/acount_top"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:background="@drawable/bg_view_topmenubackgroundpic_a"
        android:focusable="true"
        android:focusableInTouchMode="true" >

        <Button
            android:id="@id/btn_account_login_return"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:layout_marginLeft="10.0dip"
            android:background="@drawable/btn_return_bg"
            android:paddingLeft="10.0dip"
            android:text="@string/btn_return"
            android:textColor="@color/white"
            android:textSize="13.0sp" />

        <TextView
            android:id="@id/account_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:text="@string/login"
            android:textColor="@color/white"
            android:textSize="18.0sp"
            android:textStyle="bold" />

        <Button
            android:id="@id/btn_account_login_register"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginRight="10.0dip"
            android:background="@drawable/btn_material_login"
            android:text="@string/account_register"
            android:textColor="@color/white"
            android:textSize="12.0sp" />
    </RelativeLayout>

    <LinearLayout
        android:id="@id/account_login"
        android:layout_width="302.0dip"
        android:layout_height="wrap_content"
        android:layout_below="@id/acount_top"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="10.0dip"
        android:layout_marginTop="5.0dip"
        android:gravity="center_horizontal"
        android:orientation="vertical" >

        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="5.0dip" >

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/account_loginWithMTA"
                android:textColor="#ff666566"
                android:textSize="18.0sp" />

            <TextView
                android:id="@id/tvw_account_login_forgetpwd"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:padding="5.0dip"
                android:text="@string/account_forgetPwd"
                android:textColor="#ff666566"
                android:textSize="14.0sp" />
        </RelativeLayout>

        <LinearLayout
            android:layout_width="302.0dip"
            android:layout_height="49.0dip"
            android:background="@drawable/bg_account_edit_top"
            android:gravity="center_vertical" >

            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_weight="2.0" >

                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:paddingLeft="8.0dip"
                    android:text="@string/account_MTA"
                    android:textColor="#ff848484"
                    android:textSize="18.0sp" />
            </RelativeLayout>

            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1.2" >

                <EditText
                    android:id="@id/edtxt_acount_login_account"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginRight="10.0dip"
                    android:background="@null"
                    android:hint="@string/account_mailOrTel"
                    android:inputType="textEmailAddress"
                    android:maxLength="50"
                    android:paddingBottom="6.0dip"
                    android:paddingTop="6.0dip"
                    android:scrollHorizontally="true"
                    android:singleLine="true" />
            </RelativeLayout>
        </LinearLayout>

        <LinearLayout
            android:layout_width="302.0dip"
            android:layout_height="46.0dip"
            android:background="@drawable/bg_account_edit_bottom"
            android:gravity="center_vertical" >

            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_weight="2.0" >

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:paddingLeft="10.0dip"
                    android:text="@string/account_pwdWithSpace"
                    android:textColor="#ff848484"
                    android:textSize="18.0sp" />
            </RelativeLayout>

            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1.2" >

                <EditText
                    android:id="@id/edtxt_acount_login_password"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginRight="10.0dip"
                    android:background="@null"
                    android:maxLength="16"
                    android:paddingBottom="6.0dip"
                    android:paddingTop="6.0dip"
                    android:password="true"
                    android:scrollHorizontally="true"
                    android:singleLine="true"
                    android:textColor="#ffcfcfcf" />
            </RelativeLayout>
        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:id="@id/llt_account_login_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/account_login"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="10.0dip"
        android:gravity="center_horizontal"
        android:orientation="vertical" >

        <Button
            android:id="@id/btn_account_login_login"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="10.0dip"
            android:background="@drawable/btn_account_login"
            android:text="@string/login"
            android:textColor="@color/white"
            android:textSize="20.0sp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="8.0dip"
            android:layout_marginLeft="25.0dip"
            android:layout_marginRight="25.0dip"
            android:shadowColor="@color/white"
            android:shadowDx="1.0"
            android:shadowDy="1.0"
            android:shadowRadius="3.0"
            android:text="@string/account_loginDescription"
            android:textColor="#ff929292"
            android:textSize="14.0sp" />
    </LinearLayout>

</RelativeLayout>



account_retrievepwd_tel.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/bg_account"
    android:orientation="vertical" >

    <RelativeLayout
        android:id="@id/acount_top"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:background="@drawable/bg_view_topmenubackgroundpic_a" >

        <Button
            android:id="@id/btn_account_retrievepwd_return"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:layout_marginLeft="10.0dip"
            android:background="@drawable/btn_return_bg"
            android:paddingLeft="10.0dip"
            android:text="@string/btn_return"
            android:textColor="@color/white"
            android:textSize="13.0sp" />

        <TextView
            android:id="@id/account_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:text="@string/account_retrievePwd"
            android:textColor="@color/white"
            android:textSize="18.0sp"
            android:textStyle="bold" />
    </RelativeLayout>

    <LinearLayout
        android:id="@id/account_login"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/acount_top"
        android:layout_marginTop="5.0dip"
        android:orientation="vertical"
        android:padding="8.0dip" >

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="10.0dip"
            android:layout_marginLeft="8.0dip"
            android:text="@string/account_editNewPwd"
            android:textColor="@color/black"
            android:textSize="15.0sp" />

        <EditText
            android:id="@id/edt_account_retrievepwd_pwd"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/bg_account_edit_single"
            android:hint="@string/account_inputPwd"
            android:inputType="textEmailAddress"
            android:maxLength="50"
            android:padding="7.0dip"
            android:scrollHorizontally="true"
            android:singleLine="true" />

        <TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="10.0dip"
            android:layout_marginLeft="8.0dip"
            android:layout_marginTop="10.0dip"
            android:text="@string/account_send2"
            android:textColor="@color/black"
            android:textSize="18.0sp" />

        <EditText
            android:id="@id/edt_account_retrievepwd_sms"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="10.0dip"
            android:background="@drawable/bg_account_edit_single"
            android:editable="false"
            android:maxLength="50"
            android:padding="7.0dip"
            android:scrollHorizontally="true"
            android:singleLine="true"
            android:text="10690195710208"
            android:textColor="#ffc71717"
            android:textSize="22.0sp" />

        <Button
            android:id="@id/btn_account_retrievepwd_sendsms"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginBottom="15.0dip"
            android:background="@drawable/btn_account_register_ok"
            android:text="@string/account_sendSMS"
            android:textColor="@color/white"
            android:textSize="20.0sp" />

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/btn_account_register_ok"
            android:layout_centerHorizontal="true"
            android:layout_marginLeft="10.0dip"
            android:layout_marginRight="10.0dip"
            android:orientation="vertical" >

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true" >

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:shadowColor="@color/white"
                    android:shadowDx="2.0"
                    android:shadowDy="2.0"
                    android:shadowRadius="3.0"
                    android:text="·"
                    android:textColor="#ff929292"
                    android:textStyle="bold" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="8.0dip"
                    android:shadowColor="@color/white"
                    android:shadowDx="2.0"
                    android:shadowDy="2.0"
                    android:shadowRadius="3.0"
                    android:text="@string/account_retPwdDescB1"
                    android:textColor="#ff929292"
                    android:textSize="15.0sp" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true" >

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:shadowColor="@color/white"
                    android:shadowDx="2.0"
                    android:shadowDy="2.0"
                    android:shadowRadius="3.0"
                    android:text="·"
                    android:textColor="#ff929292"
                    android:textStyle="bold" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="8.0dip"
                    android:shadowColor="@color/white"
                    android:shadowDx="1.0"
                    android:shadowDy="1.0"
                    android:shadowRadius="3.0"
                    android:text="@string/account_retPwdDescB2"
                    android:textColor="#ff929292"
                    android:textSize="15.0sp" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true" >

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:shadowColor="@color/white"
                    android:shadowDx="1.0"
                    android:shadowDy="1.0"
                    android:shadowRadius="3.0"
                    android:text="·"
                    android:textColor="#ff929292"
                    android:textStyle="bold" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="8.0dip"
                    android:shadowColor="@color/white"
                    android:shadowDx="1.0"
                    android:shadowDy="1.0"
                    android:shadowRadius="3.0"
                    android:text="@string/account_retPwdDescB3"
                    android:textColor="#ff929292"
                    android:textSize="15.0sp" />
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>

</RelativeLayout>



account_showinfo.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/bg_account"
    android:orientation="vertical" >

    <RelativeLayout
        android:id="@id/acount_top"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:background="@drawable/bg_view_topmenubackgroundpic_a" >

        <Button
            android:id="@id/btn_account_info_return"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:layout_marginLeft="10.0dip"
            android:background="@drawable/btn_return_bg"
            android:paddingLeft="10.0dip"
            android:text="@string/btn_return"
            android:textColor="@color/white"
            android:textSize="13.0sp" />

        <TextView
            android:id="@id/account_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:text="@string/account_myAccount"
            android:textColor="@color/white"
            android:textSize="18.0sp"
            android:textStyle="bold" />

        <Button
            android:id="@id/btn_account_info_edit"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginRight="10.0dip"
            android:background="@drawable/btn_account_edit"
            android:gravity="center"
            android:text="@string/account_editInfo"
            android:textColor="@color/white"
            android:textSize="12.0sp" />
    </RelativeLayout>

    <ScrollView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/acount_top"
        android:scrollbars="vertical" >

        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >

            <TextView
                android:id="@id/tvw_account_showinfo_account"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="5.0dip"
                android:layout_marginTop="5.0dip"
                android:paddingLeft="16.0dip"
                android:text="@string/account_MTA2"
                android:textColor="#ff848484"
                android:textSize="20.0sp" />

            <LinearLayout
                android:id="@id/account_showinfo_account"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/tvw_account_showinfo_account"
                android:layout_centerHorizontal="true"
                android:orientation="vertical"
                android:paddingLeft="8.0dip"
                android:paddingRight="8.0dip" >

                <LinearLayout
                    android:layout_width="302.0dip"
                    android:layout_height="49.0dip"
                    android:background="@drawable/bg_account_edit_top"
                    android:gravity="center_vertical" >

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="2.0" >

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:paddingLeft="8.0dip"
                            android:text="@string/account_EmailAccount"
                            android:textColor="#ff848484"
                            android:textSize="20.0sp" />
                    </RelativeLayout>

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="1.2" >

                        <TextView
                            android:id="@id/tvw_acount_info_account_email"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:singleLine="true"
                            android:text="qq1234567890@163.com"
                            android:textColor="@color/black"
                            android:textSize="16.0sp" />
                    </RelativeLayout>
                </LinearLayout>

                <LinearLayout
                    android:layout_width="302.0dip"
                    android:layout_height="49.0dip"
                    android:background="@drawable/bg_account_edit_bottom"
                    android:gravity="center_vertical" >

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="2.0" >

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:paddingLeft="8.0dip"
                            android:text="@string/account_TelAccount"
                            android:textColor="#ff848484"
                            android:textSize="20.0sp" />
                    </RelativeLayout>

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="1.2" >

                        <TextView
                            android:id="@id/tvw_acount_info_account_tel"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:singleLine="true"
                            android:text="qq1234567890@163.com"
                            android:textColor="@color/black"
                            android:textSize="16.0sp" />
                    </RelativeLayout>
                </LinearLayout>
            </LinearLayout>

            <TextView
                android:id="@id/tvw_account_showinfo"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/account_showinfo_account"
                android:layout_marginBottom="5.0dip"
                android:layout_marginTop="5.0dip"
                android:paddingLeft="16.0dip"
                android:text="@string/account_info"
                android:textColor="#ff848484"
                android:textSize="20.0sp" />

            <LinearLayout
                android:id="@id/account_showinfo"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/tvw_account_showinfo"
                android:layout_centerHorizontal="true"
                android:layout_marginBottom="12.0dip"
                android:orientation="vertical"
                android:paddingLeft="8.0dip"
                android:paddingRight="8.0dip" >

                <LinearLayout
                    android:layout_width="302.0dip"
                    android:layout_height="46.0dip"
                    android:background="@drawable/bg_account_edit_top"
                    android:gravity="center_vertical" >

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="2.0" >

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:paddingLeft="8.0dip"
                            android:text="@string/account_nickName"
                            android:textColor="#ff848484"
                            android:textSize="20.0sp" />
                    </RelativeLayout>

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="1.2" >

                        <TextView
                            android:id="@id/tvw_acount_info_nickname"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:singleLine="true"
                            android:text="juns"
                            android:textColor="@color/black"
                            android:textSize="20.0sp" />
                    </RelativeLayout>
                </LinearLayout>

                <LinearLayout
                    android:layout_width="302.0dip"
                    android:layout_height="46.0dip"
                    android:background="@drawable/bg_account_edit_middle"
                    android:gravity="center_vertical" >

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="2.0" >

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:paddingLeft="8.0dip"
                            android:text="@string/account_gender"
                            android:textColor="#ff848484"
                            android:textSize="20.0sp" />
                    </RelativeLayout>

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="1.2" >

                        <TextView
                            android:id="@id/tvw_acount_info_gender"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:singleLine="true"
                            android:text="@string/account_gender_f"
                            android:textColor="@color/black"
                            android:textSize="20.0sp" />
                    </RelativeLayout>
                </LinearLayout>

                <LinearLayout
                    android:layout_width="302.0dip"
                    android:layout_height="46.0dip"
                    android:background="@drawable/bg_account_edit_middle"
                    android:gravity="center_vertical" >

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="2.0" >

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:paddingLeft="8.0dip"
                            android:text="@string/account_birthday"
                            android:textColor="#ff848484"
                            android:textSize="20.0sp" />
                    </RelativeLayout>

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="1.2" >

                        <TextView
                            android:id="@id/tvw_acount_info_birthday"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:singleLine="true"
                            android:text="2012/12/12"
                            android:textColor="@color/black"
                            android:textSize="20.0sp" />
                    </RelativeLayout>
                </LinearLayout>

                <LinearLayout
                    android:layout_width="302.0dip"
                    android:layout_height="46.0dip"
                    android:background="@drawable/bg_account_edit_bottom"
                    android:gravity="center_vertical" >

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="2.0" >

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:paddingLeft="8.0dip"
                            android:text="@string/account_city"
                            android:textColor="#ff848484"
                            android:textSize="20.0sp" />
                    </RelativeLayout>

                    <RelativeLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="1.2" >

                        <TextView
                            android:id="@id/tvw_acount_info_city"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:singleLine="true"
                            android:text="xiamen"
                            android:textColor="@color/black"
                            android:textSize="20.0sp" />
                    </RelativeLayout>
                </LinearLayout>
            </LinearLayout>

            <Button
                android:id="@id/btn_account_info_logout"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/account_showinfo"
                android:layout_centerHorizontal="true"
                android:background="@drawable/btn_account_logout"
                android:text="@string/account_logout"
                android:textColor="@color/white"
                android:textSize="20.0sp" />
        </RelativeLayout>
    </ScrollView>

</RelativeLayout>




0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:235546次
    • 积分:3699
    • 等级:
    • 排名:第8796名
    • 原创:119篇
    • 转载:62篇
    • 译文:7篇
    • 评论:27条
    订阅博客
    博客专栏
    最新评论