[Android] Add current opening hours status to placepage preview

And refresh it every 45s
adjust base_red/yellow/green colours

Signed-off-by: Harry Bond <me@hbond.xyz>
This commit is contained in:
Harry Bond
2025-06-25 23:06:49 +01:00
committed by Konstantin Pastbin
parent 8213a278d7
commit 86dacd70ff
7 changed files with 145 additions and 6 deletions

View File

@@ -71,6 +71,16 @@
android:textAppearance="@style/MwmTextAppearance.Body3"
tools:background="#300000F0"
tools:text="Subtitle, very very very very very very very long" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/tv__open_state"
android:textAlignment="viewStart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_quarter"
android:ellipsize="end"
android:textAppearance="@style/MwmTextAppearance.Body3"
tools:background="#300000F0"
tools:text="Closes in 45 min • at 23:00" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/tv__address"
android:textAlignment="viewStart"