include_common_head.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:id="@+id/rlyt_head"
  5. android:layout_width="match_parent"
  6. android:layout_height="48dp"
  7. android:background="@color/colorPrimary"
  8. android:gravity="center_vertical"
  9. android:transitionName="toolbar">
  10. <TextView
  11. android:id="@+id/menu_back"
  12. android:layout_width="44dp"
  13. android:layout_height="44dp"
  14. android:background="@mipmap/icon_return_black"
  15. android:visibility="gone" />
  16. <TextView
  17. android:id="@+id/menu_head"
  18. android:layout_width="wrap_content"
  19. android:layout_height="match_parent"
  20. android:layout_centerInParent="true"
  21. android:layout_centerVertical="true"
  22. android:drawablePadding="8dp"
  23. android:ellipsize="end"
  24. android:gravity="center"
  25. android:maxEms="30"
  26. android:singleLine="true"
  27. android:textColor="@color/black"
  28. android:textSize="@dimen/HeadTitleTextSize" />
  29. <TextView
  30. android:id="@+id/menu_right"
  31. android:layout_width="wrap_content"
  32. android:layout_height="44dp"
  33. android:layout_alignParentRight="true"
  34. android:layout_centerVertical="true"
  35. android:gravity="center"
  36. android:minWidth="44dp"
  37. android:textColor="@color/black"
  38. android:textSize="@dimen/HeadTitleTextSize"
  39. android:visibility="gone" />
  40. </RelativeLayout>