OsmAnd/OsmAnd/res/layout/open_time_list_item.xml

99 lines
3.4 KiB
XML
Raw Normal View History

2015-08-21 12:13:36 +02:00
<?xml version="1.0" encoding="utf-8"?>
2015-08-21 12:13:51 +02:00
<LinearLayout
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"
android:gravity="center_vertical"
android:orientation="horizontal">
2015-08-25 14:21:53 +02:00
<ImageView
android:id="@+id/clockIconImageView"
2015-08-28 15:33:36 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
2015-08-21 12:13:51 +02:00
android:src="@drawable/ic_action_time"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
2015-08-31 16:31:25 +02:00
android:layout_marginLeft="32dp"
2015-08-27 16:03:32 +02:00
android:layout_weight="1"
android:orientation="vertical">
2015-08-21 12:13:51 +02:00
<TextView
2015-08-25 14:21:53 +02:00
android:id="@+id/daysTextView"
2015-08-21 12:13:51 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-09-04 18:29:28 +02:00
android:textColor="?android:textColorPrimary"
2015-08-28 09:54:30 +02:00
android:textSize="@dimen/default_list_text_size"
2015-08-21 12:13:51 +02:00
tools:text="Mo-We"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:textColorSecondary"/>
2015-08-21 12:13:51 +02:00
</LinearLayout>
<LinearLayout
2015-08-27 16:03:32 +02:00
android:id="@+id/timeContainer"
2015-08-21 12:13:51 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-08-27 16:03:32 +02:00
android:gravity="center_vertical">
2015-08-21 12:13:51 +02:00
2015-08-27 16:03:32 +02:00
<LinearLayout
2015-08-21 12:13:51 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-08-27 16:03:32 +02:00
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:orientation="vertical">
<TextView
android:id="@+id/openingTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-09-04 18:29:28 +02:00
android:textColor="?android:textColorPrimary"
2015-08-28 09:54:30 +02:00
android:textSize="@dimen/default_list_text_size"
2015-08-27 16:03:32 +02:00
tools:text="08:00"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:textColorSecondary"/>
2015-08-27 16:03:32 +02:00
</LinearLayout>
2015-08-21 12:13:51 +02:00
<View
2015-08-27 16:03:32 +02:00
android:layout_width="16dp"
2015-08-21 12:13:51 +02:00
android:layout_height="1dp"
android:background="?android:textColorSecondary"/>
2015-08-21 12:13:51 +02:00
2015-08-27 16:03:32 +02:00
<LinearLayout
2015-08-21 12:13:51 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-08-27 16:03:32 +02:00
android:layout_marginLeft="16dp"
android:orientation="vertical">
2015-08-21 12:13:51 +02:00
2015-08-27 16:03:32 +02:00
<TextView
android:id="@+id/closingTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-09-04 18:29:28 +02:00
android:textColor="?android:textColorPrimary"
2015-08-28 09:54:30 +02:00
android:textSize="@dimen/default_list_text_size"
2015-08-27 16:03:32 +02:00
tools:text="20:00"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:textColorSecondary"/>
2015-08-27 16:03:32 +02:00
</LinearLayout>
2015-08-21 12:13:51 +02:00
</LinearLayout>
<ImageButton
android:id="@+id/deleteItemImageButton"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="bottom"
2015-08-25 14:21:53 +02:00
android:src="@drawable/ic_action_remove_dark"/>
2015-08-21 12:13:36 +02:00
</LinearLayout>