mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-27 08:40:00 +00:00
Changes made: - Shop items now read out name of item, price with currency, limited availability, items owned and locked state (previously just price) - In equipment, name of item or none will be read out in addition to slot (previously just slot) - In stable, hatchable pets will be read out as name of pet and "Hatch Pet" (previously unlabelled) - In task creation, the click listener for the difficulty has been moved to the surrounding column so icon and text are grouped (previously icon was read as unlabeled and text was not clickable) - In navigation drawer, the profile picture is read out as "Profile" (previously unlabelled) My Habitica User-ID: 2bcd10dc-0ea9-4d95-b7a6-f55fa07af537
95 lines
3.9 KiB
XML
95 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:clickable="true"
|
|
android:focusable="true">
|
|
<LinearLayout
|
|
android:id="@+id/container"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:layout_width="80dp"
|
|
android:layout_height="112dp"
|
|
android:orientation="vertical"
|
|
android:background="@drawable/layout_rounded_bg_shopitem"
|
|
android:layout_centerInParent="true">
|
|
<com.habitrpg.common.habitica.views.PixelArtView
|
|
android:id="@+id/imageView"
|
|
android:layout_width="@dimen/shopitem_image_size"
|
|
android:layout_height="@dimen/shopitem_image_size"
|
|
android:layout_margin="6dp"
|
|
android:layout_gravity="center_horizontal"/>
|
|
<LinearLayout
|
|
android:id="@+id/buyButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="40dp"
|
|
android:gravity="center"
|
|
android:background="@drawable/layout_rounded_bg_shopitem_price">
|
|
<com.habitrpg.android.habitica.ui.views.CurrencyView
|
|
android:id="@+id/priceLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/text_quad"
|
|
tools:text="150"
|
|
style="@style/Body1"
|
|
android:textSize="15sp" />
|
|
<TextView
|
|
android:id="@+id/unlockLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
style="@style/Body1"
|
|
android:textSize="11sp"
|
|
android:textColor="@color/text_quad"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:accessibilityTraversalAfter="@id/container"
|
|
/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_alignStart="@id/container"
|
|
android:layout_alignTop="@id/container"
|
|
android:padding="6dp">
|
|
<ImageView
|
|
android:id="@+id/completed_indicator"
|
|
android:layout_width="10dp"
|
|
android:layout_height="8dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
android:gravity="center"
|
|
android:scaleType="center"
|
|
android:textColor="@color/white"
|
|
android:tintMode="multiply"
|
|
app:tint="@color/text_dimmed"
|
|
android:src="@drawable/checkmark_small"
|
|
android:layout_marginBottom="6dp"/>
|
|
<ImageView
|
|
android:id="@+id/pin_indicator"
|
|
android:layout_width="13dp"
|
|
android:layout_height="13dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
android:gravity="center"
|
|
android:scaleType="center"
|
|
android:tintMode="multiply"
|
|
app:tint="@color/text_dimmed"
|
|
android:textColor="@color/white" />
|
|
</LinearLayout>
|
|
<TextView
|
|
android:id="@+id/item_detail_indicator"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/shopitem_status_size"
|
|
android:layout_gravity="end"
|
|
android:visibility="gone"
|
|
android:layout_alignEnd="@id/container"
|
|
android:importantForAccessibility="no"
|
|
style="@style/CountLabel"/>
|
|
</RelativeLayout>
|