Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. app_bar_home.xml
  2.  
  3. <?xml version="1.0" encoding="utf-8"?>
  4. <android.support.design.widget.CoordinatorLayout
  5. xmlns:android="http://schemas.android.com/apk/res/android"
  6. xmlns:app="http://schemas.android.com/apk/res-auto"
  7. xmlns:tools="http://schemas.android.com/tools"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:fitsSystemWindows="true"
  11. tools:context="com.example.cortana.shopv3.HomeActivity">
  12.  
  13.  
  14. <android.support.design.widget.AppBarLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:theme="@style/AppTheme.AppBarOverlay">
  18.  
  19. <android.support.v7.widget.Toolbar
  20. android:id="@+id/toolbar"
  21. android:layout_width="match_parent"
  22. android:layout_height="?attr/actionBarSize"
  23. android:background="?attr/colorPrimary"
  24. app:popupTheme="@style/AppTheme.PopupOverlay"
  25. android:weightSum="1">
  26.  
  27. <ImageButton
  28. android:layout_width="wrap_content"
  29. android:layout_height="match_parent"
  30. app:srcCompat="@android:drawable/ic_menu_sort_by_size"
  31. android:layout_marginLeft="100sp"
  32. android:background="@null"
  33. android:adjustViewBounds="true"
  34. android:cropToPadding="true" />
  35.  
  36. <ImageButton
  37. android:layout_width="wrap_content"
  38. android:layout_height="match_parent"
  39. app:srcCompat="@android:drawable/btn_plus"
  40. android:layout_marginLeft="15sp"
  41. android:background="@null"
  42. android:adjustViewBounds="true"
  43. android:cropToPadding="true" />
  44.  
  45. <ImageButton
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. app:srcCompat="@android:drawable/ic_menu_save"
  49. android:id="@+id/CartBtn"
  50. android:background="@drawable/refreshgreen"
  51. android:adjustViewBounds="true"
  52. android:layout_marginLeft="15sp"
  53. android:layout_alignParentTop="true"
  54. android:layout_marginBottom="15sp"
  55. android:layout_toRightOf="@+id/SearchBox"
  56. android:layout_toEndOf="@+id/SearchBox"
  57. android:cropToPadding="true" />
  58.  
  59.  
  60. </android.support.v7.widget.Toolbar>
  61.  
  62. </android.support.design.widget.AppBarLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement