Guest User

Untitled

a guest
Nov 22nd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.41 KB | None | 0 0
  1. <android.support.v4.widget.DrawerLayout
  2. android:id="@+id/drwDrawerRoot"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@drawable/background_main_selector"
  6. android:theme="@style/AppTheme">
  7.  
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:orientation="vertical">
  12.  
  13. <include
  14. android:id="@+id/viewMainToolbar"
  15. layout="@layout/view_toolbar" />
  16.  
  17. </LinearLayout>
  18.  
  19. <FrameLayout
  20. android:id="@+id/frmDrawerContainer"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:layout_marginTop="@dimen/toolbar_height"
  24. android:clipChildren="false"
  25. android:clipToPadding="false"
  26. android:orientation="vertical" />
  27.  
  28. <include
  29. android:id="@+id/viewDrawer"
  30. layout="@layout/view_drawer"
  31. bind:name="@{name}"/>
  32.  
  33. <include
  34. android:id="@+id/viewUserDrawer"
  35. layout="@layout/view_user_drawer"
  36. bind:name="@{name}"/>
  37.  
  38. </android.support.v4.widget.DrawerLayout>
  39.  
  40. <RelativeLayout
  41. android:layout_width="match_parent"
  42. android:layout_height="match_parent">
  43.  
  44. <LinearLayout
  45. android:id="@+id/layout_main"
  46. style="@style/Layout.FullScreen"
  47. android:layout_width="match_parent"
  48. android:layout_height="match_parent"
  49. android:layout_above="@+id/layout_footer"
  50. android:orientation="vertical">
  51.  
  52. <TextView
  53. android:id="@+id/textView7"
  54. style="@style/Text.Header"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:text="@string/login_header" />
  58.  
  59. <EditText
  60. android:id="@+id/edtMessage"
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent"
  63. android:layout_weight="1"
  64. android:elevation="1dp"
  65. android:ems="10"
  66. android:inputType="textMultiLine" />
  67.  
  68. <Button
  69. android:id="@+id/btnSend"
  70. style="@style/Button.Primary"
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:text="@string/support_button" />
  74.  
  75. </LinearLayout>
  76.  
  77. <LinearLayout
  78. android:id="@+id/layout_footer"
  79. style="@style/Layout.FullScreen.Footer"
  80. android:layout_width="match_parent"
  81. android:layout_height="wrap_content"
  82. android:layout_alignParentBottom="true"
  83. android:orientation="vertical">
  84.  
  85. <TextView
  86. android:id="@+id/footerInfo"
  87. style="@style/Text.White.Small.Centered"
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content"
  90. android:text="@string/footer_info" />
  91. </LinearLayout>
  92.  
  93. <include
  94. layout="@layout/view_loading"
  95. android:visibility="invisible"
  96. bind:loading="@{loading}" />
  97.  
  98. </RelativeLayout>
  99.  
  100. <FrameLayout
  101. android:layout_width="match_parent"
  102. android:layout_height="match_parent"
  103. android:layout_marginTop="-40dp"
  104. android:background="@color/colorLoadingBackground"
  105. android:clickable="true"
  106. android:visibility="@{loading ? View.VISIBLE : View.GONE}">
  107.  
  108. </FrameLayout>
  109.  
  110. <?xml version="1.0" encoding="utf-8"?>
  111. <android.support.v4.widget.DrawerLayout
  112. android:id="@+id/drawer_layout"
  113. xmlns:android="http://schemas.android.com/apk/res/android"
  114. xmlns:app="http://schemas.android.com/apk/res-auto"
  115. xmlns:tools="http://schemas.android.com/tools"
  116. android:layout_width="match_parent"
  117. android:layout_height="match_parent"
  118. tools:context=".MainActivity">
  119.  
  120. <android.support.design.widget.CoordinatorLayout
  121. android:layout_width="match_parent"
  122. android:layout_height="match_parent">
  123.  
  124. <android.support.design.widget.AppBarLayout
  125. android:layout_width="match_parent"
  126. android:layout_height="wrap_content"
  127. android:theme="@style/AppTheme.AppBarOverlay"
  128. app:layout_behavior= "@string/appbar_scrolling_view_behavior">
  129.  
  130. <android.support.v7.widget.Toolbar
  131. android:id="@+id/toolbar"
  132. android:layout_width="match_parent"
  133. android:layout_height="?attr/actionBarSize"
  134. app:popupTheme="@style/AppTheme.PopupOverlay"
  135. app:title="My App" />
  136. </android.support.design.widget.AppBarLayout>
  137.  
  138. <FrameLayout
  139. android:id="@+id/container"
  140. android:layout_width="match_parent"
  141. android:layout_height="match_parent"
  142. app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
  143. </android.support.design.widget.CoordinatorLayout>
  144. <android.support.design.widget.NavigationView
  145. android:id="@+id/nav_view"
  146. android:layout_width="match_parent"
  147. android:layout_height="match_parent"
  148. android:layout_gravity="start"
  149. app:headerLayout="@layout/nav_header"/>
  150. </android.support.design.widget.NavigationView>
  151. </android.support.v4.widget.DrawerLayout>
Add Comment
Please, Sign In to add comment