Browse Source

个人中心页面布局

developer
zhanghui 8 years ago
parent
commit
a407ec6dfb
1 changed files with 70 additions and 7 deletions
  1. +70
    -7
      app/src/main/res/layout/fragment_me.xml

+ 70
- 7
app/src/main/res/layout/fragment_me.xml View File

@ -1,11 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/greyf4f4f4"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:text="@string/me"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:layout_height="match_parent"
android:background="@color/greyf4f4f4"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardElevation="@dimen/cardview_compat_inset_shadow">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:gravity="center"
android:orientation="vertical"
android:padding="12dp">
<ImageView
android:id="@+id/imageView"
android:layout_width="80dp"
android:layout_height="80dp"
android:src="@mipmap/ic_launcher" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20"
android:gravity="center"
android:text="用户名:1511515115" />
</LinearLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
app:cardElevation="@dimen/cardview_compat_inset_shadow">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="47dp"
android:drawableLeft="@drawable/message_icon"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:text="我的消息" />
<View
android:layout_width="match_parent"
android:layout_height="2px"
android:background="#dbdbdb" />
<TextView
android:layout_width="match_parent"
android:layout_height="47dp"
android:drawableLeft="@drawable/setting_icon"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:text="设置" />
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>

Loading…
Cancel
Save