Files
comaps/android/app/src/main/res/layout/item_opening_hours.xml
2025-11-01 10:28:12 +01:00

68 lines
2.6 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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?clickableBackground"
android:minHeight="@dimen/editor_height_field"
android:paddingEnd="@dimen/margin_quarter"
android:paddingStart="@dimen/margin_half_plus_eight">
<com.google.android.material.imageview.ShapeableImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/margin_base_plus"
android:layout_marginTop="@dimen/margin_base"
app:srcCompat="@drawable/ic_opening_hours"
android:tint="?iconTint"/>
<LinearLayout
android:id="@+id/empty_opening_hours"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/editor_margin_timetable_left"
android:orientation="vertical"
tools:visibility="gone">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:enabled="false"
android:text="@string/editor_time_title"
android:textAppearance="@style/MwmTextAppearance.Body3"
android:textSize="@dimen/text_size_body_1"
android:visibility="visible"/>
<include layout="@layout/item_divider" />
</LinearLayout>
<com.google.android.material.textview.MaterialTextView
android:id="@+id/opening_hours"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/editor_margin_timetable_left"
android:layout_marginTop="14dp"
android:background="?clickableBackground"
android:lineSpacingExtra="@dimen/margin_base"
android:textAppearance="@style/MwmTextAppearance.PlacePage"
tools:text="Mo-Fr 16:00-18.00\nSu 16:00-18.00"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/edit_opening_hours"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Widget.Material3.Button.TextButton"
android:layout_below="@id/opening_hours"
android:layout_marginStart="@dimen/editor_margin_timetable_left"
android:layout_marginTop="@dimen/margin_base_plus"
android:gravity="center_vertical"
android:minHeight="@dimen/height_block_base"
android:text="@string/edit_opening_hours"
android:textColor="?colorSecondary"
android:textAppearance="@style/MwmTextAppearance.Body1" />
</RelativeLayout>