Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Recycler View Layout
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="50dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/textViewTesting"
- android:textSize="15sp"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/textViewTesting2"
- android:textSize="15sp"/>
- </LinearLayout>
- **Activity Layout**
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <EditText
- android:inputType="text"
- android:layout_width="280dp"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:id="@+id/testingEditText"/>
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_alignParentEnd="true"
- android:layout_alignParentRight="true"
- android:text="Click"
- android:onClick="scoreOnCLikc"
- android:id="@+id/button2"/>
- <android.support.v7.widget.RecyclerView
- android:id="@+id/hello_rec"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_alignParentTop="true"
- android:scrollbars="vertical"
- tools:listitem="@layout/testing_recycler_layout"
- android:layout_above="@+id/button2"/>
- </RelativeLayout>
Add Comment
Please, Sign In to add comment