Copy ShootMe display layout

This commit is contained in:
misaochan 2016-08-29 18:39:15 +12:00
parent 873218e526
commit 89e4dc957d

View file

@ -1,14 +1,57 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/tvName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name" />
<TextView
android:id="@+id/tvDesc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Desc" />
</LinearLayout>
android:foreground="?attr/selectableItemBackground"
android:layout_height="@dimen/image_size">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@android:id/icon"
android:layout_width="@dimen/image_size"
android:layout_height="match_parent"
android:src="@drawable/empty_photo"
android:scaleType="centerCrop"
android:transitionName="image" />
<TextView
android:id="@+id/distance"
android:layout_width="@dimen/image_size"
android:layout_height="wrap_content"
android:layout_alignBottom="@android:id/icon"
android:gravity="center"
android:padding="@dimen/tiny_margin"
style="?android:textAppearanceSmallInverse"
android:background="@color/text_background"
tools:text="Overlay"/>
<TextView
android:id="@android:id/tvName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@android:id/icon"
android:paddingTop="@dimen/small_margin"
android:paddingLeft="@dimen/small_margin"
android:paddingRight="@dimen/small_margin"
android:maxLines="1"
android:ellipsize="end"
style="?android:textAppearanceMedium"
tools:text="Title 1" />
<TextView
android:id="@android:id/tvDesc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@android:id/icon"
android:layout_below="@android:id/text1"
android:padding="@dimen/small_margin"
android:ellipsize="end"
android:maxLines="4"
style="?android:textAppearanceSmall"
tools:text="Description goes here" />
</RelativeLayout>
</FrameLayout>