Posted By

ajaysainisgvu on 10/02/13


Tagged


Versions (?)

Layout


 / Published in: XML
 

View hide behind the keyboard. I want it should not hide

  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@drawable/login_bg"
  6. android:id="@+id/mainLayout"
  7. tools:context=".PostAssignment" >
  8.  
  9. <RelativeLayout
  10. android:id="@+id/mainLay"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content" >
  13.  
  14. <RelativeLayout
  15. android:id="@+id/top_layout"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:background="@drawable/blank_header" >
  19.  
  20. <ImageView
  21. android:id="@+id/back_btn"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:layout_alignParentLeft="true"
  25. android:layout_centerVertical="true"
  26. android:layout_marginLeft="7dp"
  27. android:src="@drawable/backbtn" />
  28. </RelativeLayout>
  29.  
  30. <ScrollView
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_below="@id/top_layout"
  34. android:scrollbars="none"
  35. >
  36. <RelativeLayout
  37. android:id="@+id/screen1"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_below="@id/top_layout" >
  41.  
  42. <TextView
  43. android:id="@+id/tv_info"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:layout_centerInParent="true"
  47. android:layout_margin="20dp"
  48. android:background="@drawable/articledescriptiontextbox"
  49. android:bufferType="spannable"
  50. android:gravity="top"
  51. android:padding="7dp"
  52. android:text="@string/info"
  53. android:textSize="25dp" />
  54.  
  55. <RadioButton
  56. android:id="@+id/radios"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_below="@id/tv_info"
  60. android:layout_centerHorizontal="true"
  61. android:layout_marginTop="20dp"
  62. android:text=" I agree"
  63. android:textColor="@android:color/black" />
  64. </RelativeLayout>
  65. </ScrollView>
  66. <Utility.LoginRL
  67. android:id="@+id/mscrollview"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:layout_below="@id/top_layout"
  71. android:layout_centerHorizontal="true"
  72. android:layout_marginLeft="25dp"
  73. android:layout_marginRight="25dp"
  74. android:scrollbars="none" >
  75.  
  76. <RelativeLayout
  77. android:id="@+id/screen2"
  78. android:layout_width="match_parent"
  79. android:layout_height="wrap_content"
  80. android:layout_marginTop="20dp" >
  81.  
  82. <Spinner
  83. android:id="@+id/cb_select_course"
  84. android:layout_width="match_parent"
  85. android:layout_height="45dp"
  86. android:layout_margin="0dp"
  87. android:paddingLeft="15dp"
  88. android:paddingRight="15dp" >
  89. </Spinner>
  90.  
  91. <EditText
  92. android:id="@+id/tv_asid"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:layout_below="@id/cb_select_course"
  96. android:layout_marginLeft="0dp"
  97. android:layout_marginRight="0dp"
  98. android:layout_marginTop="5dp"
  99. android:background="@drawable/articletitletextbox"
  100. android:editable="false"
  101. android:padding="7dp"
  102. android:paddingLeft="15dp"
  103. android:singleLine="true" />
  104.  
  105. <TextView
  106. android:id="@+id/resubmit"
  107. android:layout_width="match_parent"
  108. android:layout_height="wrap_content"
  109. android:layout_below="@id/tv_asid"
  110. android:layout_margin="5dp"
  111. android:text="" />
  112.  
  113. <LinearLayout
  114. android:layout_width="match_parent"
  115. android:layout_height="wrap_content"
  116. android:layout_below="@id/resubmit"
  117. android:layout_centerHorizontal="true"
  118. android:layout_marginLeft="20dp"
  119. android:layout_marginTop="20dp" >
  120.  
  121. <ImageView
  122. android:id="@+id/uploadImageBtn"
  123. android:layout_width="wrap_content"
  124. android:layout_height="wrap_content"
  125. android:layout_weight="1"
  126. android:scaleType="fitXY"
  127. android:src="@drawable/uload_image_active_btn" />
  128.  
  129. <ImageView
  130. android:id="@+id/uploadTextBtn"
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:layout_weight="1"
  134. android:scaleType="fitXY"
  135. android:src="@drawable/write_text_btn" />
  136. </LinearLayout>
  137. </RelativeLayout>
  138. </Utility.LoginRL>
  139.  
  140. <RelativeLayout
  141. android:id="@+id/rows"
  142. android:layout_width="match_parent"
  143. android:layout_height="match_parent"
  144. android:layout_below="@id/mscrollview"
  145. android:layout_marginLeft="25dp"
  146.  
  147. android:layout_marginRight="25dp" >
  148.  
  149. <GridView
  150. android:id="@+id/gridview"
  151. android:layout_width="match_parent"
  152. android:layout_height="wrap_content"
  153. android:columnWidth="200dp"
  154. android:gravity="center"
  155. android:horizontalSpacing="30dip"
  156. android:numColumns="3"
  157. android:paddingBottom="5dp"
  158. android:paddingLeft="5dp"
  159. android:paddingRight="5dp"
  160. android:paddingTop="5dip"
  161. android:scrollbars="vertical"
  162. android:scrollingCache="false"
  163. android:stretchMode="columnWidth"
  164. android:layout_marginBottom="80dp"
  165. android:verticalSpacing="10dp" />
  166. </RelativeLayout>
  167.  
  168. <EditText
  169. android:id="@+id/et_aDesc"
  170. android:layout_width="match_parent"
  171. android:layout_height="wrap_content"
  172. android:layout_below="@id/mscrollview"
  173. android:layout_marginLeft="15dp"
  174. android:layout_marginRight="15dp"
  175. android:layout_marginTop="10dp"
  176. android:background="@drawable/articledescriptiontextbox"
  177. android:gravity="top"
  178. android:imeOptions="actionDone"
  179. android:padding="15dp"
  180. android:scrollbars="vertical"
  181. android:layout_marginBottom="100dp"
  182. android:singleLine="false" />
  183. </RelativeLayout>
  184.  
  185. <RelativeLayout
  186. android:id="@+id/bottom_layout"
  187. android:layout_width="match_parent"
  188. android:layout_height="wrap_content"
  189. android:layout_alignParentBottom="true"
  190. android:background="@drawable/buttonbg" >
  191.  
  192. <ImageView
  193. android:id="@+id/add_rowBtn"
  194. android:layout_width="wrap_content"
  195. android:layout_height="wrap_content"
  196. android:layout_alignParentLeft="true"
  197. android:layout_alignParentTop="true"
  198. android:layout_marginRight="200dp"
  199. android:src="@drawable/add_row_btn" />
  200.  
  201. <ImageView
  202. android:id="@+id/submitBtn"
  203. android:layout_width="wrap_content"
  204. android:layout_height="wrap_content"
  205. android:layout_alignParentRight="true"
  206. android:layout_alignParentTop="true"
  207. android:layout_marginLeft="200dp"
  208. android:src="@drawable/submit_post_ass" />
  209. </RelativeLayout>
  210.  
  211. </RelativeLayout>

Report this snippet  

You need to login to post a comment.