OsmAnd/OsmAnd/res/layout/dialog_live_updates_item_settings.xml

198 lines
7.8 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2015-12-17 17:31:03 +01:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2015-12-24 14:45:26 +01:00
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
2015-12-30 11:28:13 +01:00
android:layout_height="wrap_content"
2015-12-29 09:57:58 +01:00
android:background="@color/color_dialog_buttons_light"
android:orientation="vertical"
2015-12-22 16:58:29 +01:00
android:paddingLeft="24dp"
android:paddingRight="24dp"
2015-12-24 16:55:08 +01:00
android:paddingTop="15dp">
<TextView
2015-12-17 17:31:03 +01:00
android:id="@+id/regionNameTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-12-30 11:28:13 +01:00
android:layout_marginBottom="8dp"
2015-12-22 16:58:29 +01:00
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/color_white"
2015-12-17 17:31:03 +01:00
tools:text="Flevoland"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
2015-12-22 16:58:29 +01:00
android:background="@color/white_50_transparent"/>
2015-12-23 16:48:50 +01:00
<TextView
2015-12-24 14:45:26 +01:00
android:id="@+id/lastMapChangeTextView"
2015-12-23 16:48:50 +01:00
android:layout_width="wrap_content"
2015-12-24 16:55:08 +01:00
android:layout_height="wrap_content"
2015-12-23 16:48:50 +01:00
android:layout_gravity="bottom"
2016-03-05 19:34:15 +01:00
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
2015-12-23 16:48:50 +01:00
android:gravity="center"
android:textColor="@color/color_white"
android:textSize="12sp"
2015-12-24 14:45:26 +01:00
tools:text="@string/last_map_change"/>
2015-12-23 16:48:50 +01:00
<TextView
2015-12-22 16:58:29 +01:00
android:id="@+id/lastUpdateTextView"
android:layout_width="wrap_content"
2015-12-29 09:57:58 +01:00
android:layout_height="wrap_content"
2015-12-22 16:58:29 +01:00
android:layout_gravity="bottom"
2015-12-30 11:28:13 +01:00
android:layout_marginBottom="8dp"
2015-12-22 16:58:29 +01:00
android:gravity="center"
android:textColor="@color/color_white"
android:textSize="12sp"
2015-12-24 14:45:26 +01:00
tools:text="@string/last_update"/>
</LinearLayout>
2016-04-25 13:50:34 +02:00
<ScrollView
2015-12-24 14:16:52 +01:00
android:layout_width="match_parent"
2016-04-25 13:50:34 +02:00
android:layout_height="wrap_content">
2015-12-09 16:28:39 +01:00
2016-04-25 13:50:34 +02:00
<LinearLayout
android:layout_width="match_parent"
2015-12-29 09:57:58 +01:00
android:layout_height="wrap_content"
2016-04-25 13:50:34 +02:00
android:layout_marginBottom="16dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="54dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="@string/live_update"
android:textColor="?android:attr/textColorPrimary"
android:textSize="16sp"/>
<android.support.v7.widget.SwitchCompat
android:id="@+id/toggle_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:checked="true"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="54dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="@string/only_download_over_wifi"
android:textColor="?android:attr/textColorPrimary"
android:textSize="16sp"
tools:text="Only download over WiFi long text like really long"/>
<CheckBox
android:id="@+id/downloadOverWiFiSwitch"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="right|center_vertical"
android:checked="true"
android:textSize="16sp"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="54dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="16dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:text="@string/update"
android:textColor="?android:attr/textColorPrimary"
android:textSize="16sp"/>
<!--style="@style/OsmandLightTheme.Spinner"-->
<Spinner
android:id="@+id/updateFrequencySpinner"
style="@style/OsmandLightTheme.Spinner"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="right"
android:paddingLeft="0dp"/>
</LinearLayout>
<LinearLayout
android:id="@+id/updateTimesOfDayLayout"
android:layout_width="match_parent"
android:layout_height="54dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="16dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="@string/update_time"
android:textColor="?android:attr/textColorPrimary"
android:textSize="16sp"/>
<Spinner
android:id="@+id/updateTimesOfDaySpinner"
style="@style/OsmandLightTheme.Spinner"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="right"
android:paddingLeft="0dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="54dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="@string/updates_size"
android:textColor="?android:attr/textColorPrimary"
android:textSize="16sp"/>
<TextView
android:id="@+id/sizeTextView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:textColor="?android:attr/textColorPrimary"
android:textSize="16sp"
tools:text="64MB"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
2015-12-09 16:28:39 +01:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
2015-12-29 09:57:58 +01:00
android:background="?attr/dashboard_divider"/>
</LinearLayout>