mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Use a TextView on top of badge image to show user's level.
This commit is contained in:
parent
fd6c4821aa
commit
f4807a5e4b
4 changed files with 23 additions and 63 deletions
|
|
@ -60,18 +60,31 @@
|
|||
android:layout_marginVertical="@dimen/activity_margin_vertical" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/achievement_badge"
|
||||
android:id="@+id/achievement_badge_image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/achievement_level"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_below="@id/achievement_info"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginVertical="@dimen/activity_margin_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/achievement_badge_text"
|
||||
android:textColor="@color/achievement_badge_text"
|
||||
android:textSize="90dp"
|
||||
android:textAlignment="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="50dp"
|
||||
android:layout_alignTop="@+id/achievement_badge_image"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentRight="true" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/layout_image_uploaded"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/achievement_badge"
|
||||
android:layout_below="@+id/achievement_badge_image"
|
||||
android:layout_marginEnd="@dimen/activity_margin_horizontal"
|
||||
android:layout_marginLeft="@dimen/activity_margin_horizontal"
|
||||
android:layout_marginRight="@dimen/activity_margin_horizontal"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
<color name="main_background_light">#fafafa</color>
|
||||
<color name="achievement_background_dark">#494949</color>
|
||||
<color name="achievement_background_light">#D6DCE0</color>
|
||||
<color name="achievement_badge_text">#ffffff</color>
|
||||
<color name="drawerHeader_background_dark">#494949</color>
|
||||
<color name="drawerHeader_background_light">#aaaaaa</color>
|
||||
<color name="tutorial_background_dark">#303030</color>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue