Guest User

Untitled

a guest
Sep 24th, 2017
164
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Recycler View Layout
  2.  
  3. <?xml version="1.0" encoding="utf-8"?>
  4. <LinearLayout
  5. xmlns:android="http://schemas.android.com/apk/res/android"
  6. android:orientation="vertical"
  7. android:layout_width="match_parent"
  8. android:layout_height="50dp">
  9.  
  10. <TextView
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:id="@+id/textViewTesting"
  14. android:textSize="15sp"/>
  15.  
  16. <TextView
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:id="@+id/textViewTesting2"
  20. android:textSize="15sp"/>
  21.  
  22. </LinearLayout>
  23.  
  24. **Activity Layout**
  25.  
  26. <?xml version="1.0" encoding="utf-8"?>
  27. <RelativeLayout
  28. xmlns:android="http://schemas.android.com/apk/res/android"
  29. xmlns:app="http://schemas.android.com/apk/res-auto"
  30. xmlns:tools="http://schemas.android.com/tools"
  31. android:layout_width="match_parent"
  32. android:layout_height="match_parent">
  33.  
  34.  
  35. <EditText
  36. android:inputType="text"
  37. android:layout_width="280dp"
  38. android:layout_height="wrap_content"
  39. android:layout_alignParentBottom="true"
  40. android:id="@+id/testingEditText"/>
  41.  
  42. <Button
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:layout_alignParentBottom="true"
  46. android:layout_alignParentEnd="true"
  47. android:layout_alignParentRight="true"
  48. android:text="Click"
  49. android:onClick="scoreOnCLikc"
  50. android:id="@+id/button2"/>
  51.  
  52.  
  53. <android.support.v7.widget.RecyclerView
  54. android:id="@+id/hello_rec"
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent"
  57. android:layout_alignParentLeft="true"
  58. android:layout_alignParentStart="true"
  59. android:layout_alignParentTop="true"
  60. android:scrollbars="vertical"
  61. tools:listitem="@layout/testing_recycler_layout"
  62. android:layout_above="@+id/button2"/>
  63.  
  64. </RelativeLayout>
RAW Paste Data Copied