mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
* Started from welcome layout to main layout adding content descriptions * Adds UI description section to strings.xml and adds a few content descrpitions * Consolidates UI strings to top of file * fixes nearby typos * Removes content descriptions that clash with pr #4766 * Removes unused elements and reverts out-of-scope changes * Restores pic-of-the-day content description Co-authored-by: joshuamccluskey <jpiff57@gmail.com>
38 lines
No EOL
1.5 KiB
XML
38 lines
No EOL
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="wrap_content"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:color/transparent"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center"
|
|
tools:background="@color/black">
|
|
|
|
<ImageView
|
|
android:id="@+id/cart_icon_image_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/activity_margin_horizontal"
|
|
android:layout_marginRight="@dimen/activity_margin_horizontal"
|
|
android:gravity="center"
|
|
app:srcCompat="?attr/notification_icon_drawable" />
|
|
|
|
<TextView
|
|
android:id="@+id/notification_count_badge"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignTop="@id/cart_icon_image_view"
|
|
android:layout_alignEnd="@id/cart_icon_image_view"
|
|
android:layout_alignRight="@id/cart_icon_image_view"
|
|
android:background="@drawable/notification_badge"
|
|
android:gravity="center"
|
|
android:padding="@dimen/miniscule_margin"
|
|
android:textColor="?attr/notification_icon_text_color"
|
|
android:textSize="7sp"
|
|
android:textStyle="bold"
|
|
android:visibility="gone"
|
|
tools:text="9+"
|
|
tools:visibility="visible" />
|
|
</RelativeLayout> |