action_bar_layout.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/bar_panel"
  4. android:layout_width="match_parent"
  5. android:layout_height="@dimen/action_bar_height"
  6. android:background="@drawable/actionbar_bg" >
  7. <LinearLayout
  8. android:id="@+id/back"
  9. android:layout_width="wrap_content"
  10. android:layout_height="match_parent"
  11. android:layout_centerVertical="true"
  12. android:gravity="center_vertical"
  13. android:orientation="horizontal"
  14. android:background="@drawable/press_mask_selector" >
  15. <ImageView
  16. android:id="@+id/arrow_left"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:contentDescription="@string/empty"
  20. android:layout_marginRight="5dp"
  21. android:src="@drawable/actionbar_dark_back_icon" />
  22. <ImageView
  23. android:id="@+id/icon"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:contentDescription="@string/empty"
  27. android:layout_marginRight="5dp"
  28. android:src="@drawable/blank_ico" />
  29. </LinearLayout>
  30. <TextView
  31. android:id="@+id/title"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_centerVertical="true"
  35. android:layout_toRightOf="@+id/back"
  36. android:text="@string/app_name"
  37. android:textColor="@color/action_bar_tittle_color_555555"
  38. android:textSize="@dimen/actionbar_title_size" />
  39. </RelativeLayout>