main_head.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="45dp"
  5. android:background="@color/lightblue" >
  6. <ImageView
  7. android:id="@+id/image_head"
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:layout_marginRight="5dip"
  11. android:adjustViewBounds="true" />
  12. <TextView
  13. android:id="@+id/txt_nickname"
  14. style="@style/common_txt_style"
  15. android:layout_centerVertical="true"
  16. android:layout_toRightOf="@+id/image_head"
  17. />
  18. <TextView
  19. android:id="@+id/txt_account"
  20. style="@style/common_txt_style"
  21. android:textSize="@dimen/text_size_15"
  22. android:layout_alignBottom="@+id/image_head"
  23. android:layout_toRightOf="@+id/image_head"
  24. />
  25. <TextView
  26. android:id="@+id/image_systemlogo"
  27. style="@style/common_txt_style"
  28. android:text="@string/app_name"
  29. android:layout_centerInParent="true" />
  30. <ImageView
  31. android:id="@+id/btn_back"
  32. android:layout_width="35dp"
  33. android:layout_height="35dp"
  34. android:src="@mipmap/setting"
  35. android:padding="@dimen/space_5"
  36. android:layout_alignParentRight="true"
  37. android:layout_centerInParent="true"
  38. android:layout_marginRight="10dip" />
  39. </RelativeLayout>