OsmAnd/OsmAnd/res/layout/open_time_list_item.xml

73 lines
2.6 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"
2015-12-30 17:29:29 +01:00
android:orientation="vertical">
2015-08-21 12:13:51 +02:00
<LinearLayout
2015-12-30 17:29:29 +01:00
android:layout_width="match_parent"
2015-08-21 12:13:51 +02:00
android:layout_height="wrap_content"
2015-12-30 17:29:29 +01:00
android:orientation="horizontal">
2015-08-21 12:13:51 +02:00
2015-12-30 17:29:29 +01:00
<ImageView
android:id="@+id/clockIconImageView"
2015-08-21 12:13:51 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-12-30 17:29:29 +01:00
android:layout_margin="16dp"
android:src="@drawable/ic_action_time"/>
2015-08-21 12:13:51 +02:00
2015-12-30 17:29:29 +01:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginTop="16dp"
android:layout_weight="1"
android:orientation="vertical">
2015-08-27 16:03:32 +02:00
2015-12-30 17:29:29 +01:00
<TextView
android:id="@+id/daysTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
tools:text="Mo-We"/>
2015-08-21 12:13:51 +02:00
2015-12-30 17:29:29 +01:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:textColorSecondary"/>
</LinearLayout>
<LinearLayout
android:id="@+id/timeListContainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<!--<include layout="@layout/time_from_to_layout"/>-->
</LinearLayout>
<ImageButton
android:id="@+id/deleteItemImageButton"
android:contentDescription="@string/shared_string_delete"
2015-12-30 17:29:29 +01:00
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="top"
android:src="@drawable/ic_action_remove_dark"/>
</LinearLayout>
<Button
android:id="@+id/addTimeSpanButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="60dp"
android:text="@string/add_time_span"
android:layout_toRightOf="@id/clockIconImageView"
android:layout_below="@id/timeListContainer"
android:textColor="?attr/color_dialog_buttons"
style="@style/Widget.AppCompat.Button.Borderless"/>
2015-08-21 12:13:36 +02:00
</LinearLayout>