Created
March 14, 2018 06:36
-
-
Save smyykb/1ba51d2af01c20e9f9eb82f68f2cc66c to your computer and use it in GitHub Desktop.
tools:title=”LayoutPreview”
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
<TextView | |
android:id="@+id/text_user" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
tools:drawableLeft="@tools:sample/avatars" | |
tools:text="@tools:sample/full_names"/> | |
It would look much nicer if we could show the real item used in our RecyclerView, and even more so if that item uses sample texts tools:text=”@tools:sample/lorem” and tools:text=”@tools:sample/lorem/random” for TextViews inside | |
<android.support.v7.widget.CardView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_margin="@dimen/margin_normal" | |
android:orientation="vertical"> | |
<TextView | |
android:id="@+id/text_title" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
tools:text="@tools:sample/lorem"/> | |
<TextView | |
android:id="@+id/text_description" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
tools:text="@tools:sample/lorem/random" | |
tools:lines="2"/> | |
</LinearLayout> | |
</android.support.v7.widget.CardView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment