mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Copy ShootMe display layout
This commit is contained in:
parent
873218e526
commit
89e4dc957d
1 changed files with 56 additions and 13 deletions
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue