mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add overlay text
This commit is contained in:
parent
c48c20cabb
commit
89b073b4bc
3 changed files with 13 additions and 5 deletions
|
|
@ -10,15 +10,14 @@
|
|||
|
||||
<ImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="@dimen/image_size"
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/empty_photo"
|
||||
android:scaleType="centerCrop"
|
||||
android:transitionName="image" />
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/distance"
|
||||
android:layout_width="@dimen/image_size"
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@android:id/icon"
|
||||
android:gravity="center"
|
||||
|
|
@ -51,7 +50,7 @@
|
|||
android:maxLines="4"
|
||||
style="?android:textAppearanceSmall"
|
||||
tools:text="Description goes here" />
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
</FrameLayout>
|
||||
8
app/src/main/res/values/colors.xml
Normal file
8
app/src/main/res/values/colors.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<color name="text_background">#90000000</color>
|
||||
<color name="transparent_actionbar_background">#22000000</color>
|
||||
<color name="lighter_gray">#ddd</color>
|
||||
|
||||
</resources>
|
||||
|
|
@ -3,4 +3,5 @@
|
|||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
<dimen name="icon_size">120dp</dimen>
|
||||
<dimen name="tiny_margin">4dp</dimen>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue