Created
April 24, 2019 11:19
-
-
Save rahulkhatri19/37a14c7592d827b7923015228be84744 to your computer and use it in GitHub Desktop.
Sample Data in XML element like TextView, RecyclerView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" | |
android:background="@android:color/white"> | |
<android.support.v7.widget.RecyclerView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:listitem="@layout/item_sample" | |
android:layout_below="@+id/tv_sample_json" | |
android:layout_marginTop="10dp"/> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
tools:text="@sample/name_file" | |
android:id="@+id/tv_sample" | |
tools:textColor="@sample/file_color" | |
android:layout_marginTop="10dp" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/tv_sample" | |
android:id="@+id/tv_sample_json" | |
tools:text="@sample/json_sample.json/data/name" | |
android:layout_marginTop="10dp" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment