fm_usercenter.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical"
  6. android:background="@color/default_bg">
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:orientation="vertical">
  11. <RelativeLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="271dp"
  14. android:background="@color/main_color">
  15. <RelativeLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:padding="@dimen/default_content_margin">
  19. <ImageView
  20. android:id="@+id/iv_setting"
  21. android:layout_width="@dimen/company_20dp"
  22. android:layout_height="@dimen/company_20dp"
  23. android:layout_centerVertical="true"
  24. android:background="@drawable/setting_icon"/>
  25. <ImageView
  26. android:id="@+id/iv_service"
  27. android:layout_width="@dimen/company_25dp"
  28. android:layout_height="@dimen/company_25dp"
  29. android:layout_alignParentRight="true"
  30. android:src="@drawable/people_server_icon"/>
  31. <ImageView
  32. android:id="@+id/iv_message"
  33. android:layout_width="@dimen/company_20dp"
  34. android:layout_height="@dimen/company_20dp"
  35. android:src="@drawable/message_icon"
  36. android:layout_centerVertical="true"
  37. android:layout_marginRight="@dimen/company_20dp"
  38. android:layout_toLeftOf="@+id/iv_service"/>
  39. </RelativeLayout>
  40. <LinearLayout
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:layout_centerVertical="true"
  44. android:gravity="center_horizontal"
  45. android:orientation="vertical">
  46. <ImageView
  47. android:id="@+id/iv_head"
  48. android:layout_width="76dp"
  49. android:layout_height="76dp"
  50. android:background="@drawable/usercentenr_head"/>
  51. <TextView
  52. android:id="@+id/tv_username"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:layout_marginTop="@dimen/company_10dp"
  56. android:textSize="@dimen/company_15sp"
  57. android:textColor="@color/white"/>
  58. <TextView
  59. android:id="@+id/tv_userinfo"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:background="@drawable/shape_search_bg"
  63. android:layout_marginTop="@dimen/company_20dp"
  64. android:paddingLeft="@dimen/company_5dp"
  65. android:paddingRight="@dimen/company_5dp"
  66. android:textSize="@dimen/company_12sp"
  67. android:textColor="@color/main_color"
  68. android:text="个人信息 >"/>
  69. </LinearLayout>
  70. </RelativeLayout>
  71. <com.ynstkz.shitu.android.view.ScrollViewWithGridView
  72. android:id="@+id/gv_mine"
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:layout_marginTop="@dimen/company_10dp"
  76. android:verticalSpacing="@dimen/company_1dp"
  77. android:horizontalSpacing="@dimen/company_1dp"
  78. android:numColumns="2"/>
  79. </LinearLayout>
  80. </ScrollView>