Files
EhViewer/res/layout/user_panel.xml
T
2014-05-12 20:38:39 +08:00

65 lines
2.4 KiB
XML

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ImageView
android:id="@+id/avatar"
android:layout_width="64.0dp"
android:layout_height="64.0dp"
android:layout_margin="8.0dp"
android:src="@drawable/default_avatar" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="8.0dp"
android:layout_marginTop="8.0dp"
android:textSize="16.0sp"
android:textColor="@android:color/white" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="8dp"
android:orientation="horizontal" >
<Button
style="@style/Button.Small.White"
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginLeft="8.0dp"
android:layout_marginRight="8.0dp"
android:text="@string/login" />
<Button
style="@style/Button.Small.White"
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginLeft="8.0dp"
android:layout_marginRight="8.0dp"
android:text="@string/register" />
<Button
style="@style/Button.Small.White"
android:layout_width="0.0dp"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginLeft="8.0dp"
android:layout_marginRight="8.0dp"
android:text="@string/logout" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>