actionbar_donebar.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="horizontal"
  6. android:divider="?android:attr/dividerVertical"
  7. android:dividerPadding="12dp"
  8. android:showDividers="middle">
  9. <LinearLayout
  10. android:id="@+id/action_cancel"
  11. style="@style/DoneBarActionButton">
  12. <ImageView
  13. android:src="@drawable/ic_action_cancel"
  14. style="@style/DoneBarActionButtonImage"/>
  15. <TextView
  16. android:text="@string/discard"
  17. style="@style/DoneBarActionButtonText"/>
  18. </LinearLayout>
  19. <!-- id must match corresponding menu item id -->
  20. <LinearLayout
  21. android:id="@+id/action_done"
  22. style="@style/DoneBarActionButton">
  23. <ImageView
  24. android:src="@drawable/ic_action_done"
  25. style="@style/DoneBarActionButtonImage"/>
  26. <TextView
  27. android:text="@string/save"
  28. style="@style/DoneBarActionButtonText"/>
  29. </LinearLayout>
  30. </LinearLayout>