OsmAnd/OsmAnd/res/layout/first_usage_wizard_fragment.xml

772 lines
36 KiB
XML
Raw Normal View History

2016-08-15 21:40:20 +02:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:osmand="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-07-04 18:58:10 +02:00
android:background="?attr/activity_background_color"
2016-08-15 21:40:20 +02:00
android:clickable="true"
android:orientation="vertical"
android:theme="@style/OsmandLightTheme">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:paddingTop="8dp">
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatImageView
2016-08-15 21:40:20 +02:00
android:layout_width="54dp"
android:layout_height="44dp"
android:scaleType="center"
osmand:srcCompat="@drawable/ic_action_osmand_logo"
2016-08-17 11:13:21 +02:00
android:tint="@color/osmand_orange"/>
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_weight="1">
<TextView
android:id="@+id/wizard_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/shared_string_download_map"
android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/first_usage_subtitle_text_size"
android:textStyle="bold"/>
</LinearLayout>
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatButton
2016-08-15 21:40:20 +02:00
android:id="@+id/skip_button"
style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="@string/shared_string_skip"
2020-02-24 15:17:23 +01:00
android:textColor="@color/active_color_primary_light"
android:paddingEnd="16dp"
android:paddingStart="16dp" />
2016-08-15 21:40:20 +02:00
</LinearLayout>
<TextView
android:id="@+id/wizard_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="54dp"
android:layout_marginRight="54dp"
android:layout_marginTop="10dp"
android:minHeight="106dp"
android:text="@string/first_usage_wizard_desc"
android:textColor="?android:attr/textColorPrimary"
2020-02-24 15:17:23 +01:00
android:textSize="@dimen/default_list_text_size"
android:layout_marginStart="54dp"
android:layout_marginEnd="54dp" />
2016-08-15 21:40:20 +02:00
2020-03-04 15:12:06 +01:00
<androidx.cardview.widget.CardView
2016-08-15 21:40:20 +02:00
android:id="@+id/no_location_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="24dp"
android:visibility="gone"
2020-02-24 15:17:23 +01:00
osmand:cardBackgroundColor="@color/color_white"
android:layout_marginEnd="40dp"
android:layout_marginStart="40dp">
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:orientation="horizontal">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatImageView
2016-08-15 21:40:20 +02:00
android:id="@+id/no_location_icon"
android:layout_width="54dp"
android:layout_height="60dp"
android:scaleType="center"
osmand:srcCompat="@drawable/ic_action_location_off"
2019-07-04 18:58:10 +02:00
android:tint="@color/icon_color_default_light"/>
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="14dp"
android:layout_marginTop="14dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="14dp"
android:gravity="center_vertical"
android:minHeight="35dp"
2020-02-24 15:17:23 +01:00
android:orientation="vertical"
android:layout_marginEnd="14dp">
2016-08-15 21:40:20 +02:00
<TextView
android:id="@+id/no_location_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/location_not_found"
android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
2019-07-04 18:58:10 +02:00
android:background="@color/divider_color_light"/>
2016-08-15 21:40:20 +02:00
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatButton
2016-08-15 21:40:20 +02:00
android:id="@+id/no_location_action_button"
style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:minHeight="47dp"
2016-08-17 17:31:24 +02:00
android:text="@string/search_my_location"
2019-07-04 18:58:10 +02:00
android:textColor="@color/active_color_primary_light"/>
2016-08-15 21:40:20 +02:00
</LinearLayout>
2020-03-04 15:12:06 +01:00
</androidx.cardview.widget.CardView>
2016-08-15 21:40:20 +02:00
2020-03-04 15:12:06 +01:00
<androidx.cardview.widget.CardView
2016-08-15 21:40:20 +02:00
android:id="@+id/no_inet_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="24dp"
android:visibility="gone"
2020-02-24 15:17:23 +01:00
osmand:cardBackgroundColor="@color/color_white"
android:layout_marginEnd="40dp"
android:layout_marginStart="40dp">
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:orientation="horizontal">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatImageView
2016-08-15 21:40:20 +02:00
android:id="@+id/no_inet_icon"
android:layout_width="54dp"
android:layout_height="60dp"
android:scaleType="center"
osmand:srcCompat="@drawable/ic_action_wifi_off"
2019-07-04 18:58:10 +02:00
android:tint="@color/icon_color_default_light"/>
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="14dp"
android:layout_marginTop="14dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="14dp"
android:gravity="center_vertical"
android:minHeight="35dp"
2020-02-24 15:17:23 +01:00
android:orientation="vertical"
android:layout_marginEnd="14dp">
2016-08-15 21:40:20 +02:00
<TextView
android:id="@+id/no_inet_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/no_inet_connection"
android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
<TextView
android:id="@+id/no_inet_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="@string/no_inet_connection_desc_map"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_sub_text_size"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
2019-07-04 18:58:10 +02:00
android:background="@color/divider_color_light"/>
2016-08-15 21:40:20 +02:00
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatButton
2016-08-15 21:40:20 +02:00
android:id="@+id/no_inet_action_button"
style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:minHeight="47dp"
android:text="@string/try_again"
2019-07-04 18:58:10 +02:00
android:textColor="@color/active_color_primary_light"/>
2016-08-15 21:40:20 +02:00
</LinearLayout>
2020-03-04 15:12:06 +01:00
</androidx.cardview.widget.CardView>
2016-08-15 21:40:20 +02:00
2020-03-04 15:12:06 +01:00
<androidx.cardview.widget.CardView
2016-08-15 21:40:20 +02:00
android:id="@+id/search_location_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="24dp"
android:visibility="gone"
2020-02-24 15:17:23 +01:00
osmand:cardBackgroundColor="@color/color_white"
android:layout_marginEnd="40dp"
android:layout_marginStart="40dp">
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="54dp"
android:layout_height="60dp"
android:gravity="center">
<ProgressBar
android:id="@+id/search_location_progress_bar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginRight="8dp"
2020-02-24 15:17:23 +01:00
android:indeterminate="true"
android:layout_marginEnd="8dp" />
2016-08-15 21:40:20 +02:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="14dp"
android:layout_marginTop="14dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="14dp"
android:gravity="center_vertical"
android:minHeight="35dp"
2020-02-24 15:17:23 +01:00
android:orientation="vertical"
android:layout_marginEnd="14dp">
2016-08-15 21:40:20 +02:00
<TextView
android:id="@+id/search_location_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/search_location"
android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatButton
2016-08-15 21:40:20 +02:00
android:id="@+id/search_location_action_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/btn_round_blue_bottom"
android:enabled="false"
android:gravity="center"
android:minHeight="48dp"
android:text="@string/shared_string_download"
android:textColor="@color/color_white"/>
</LinearLayout>
2020-03-04 15:12:06 +01:00
</androidx.cardview.widget.CardView>
2016-08-15 21:40:20 +02:00
2020-03-04 15:12:06 +01:00
<androidx.cardview.widget.CardView
2016-08-15 21:40:20 +02:00
android:id="@+id/search_map_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="24dp"
android:visibility="gone"
2020-02-24 15:17:23 +01:00
osmand:cardBackgroundColor="@color/color_white"
android:layout_marginEnd="40dp"
android:layout_marginStart="40dp">
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="54dp"
android:layout_height="60dp"
android:gravity="center">
<ProgressBar
android:id="@+id/search_map_progress_bar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginRight="8dp"
2020-02-24 15:17:23 +01:00
android:indeterminate="true"
android:layout_marginEnd="8dp" />
2016-08-15 21:40:20 +02:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="14dp"
android:layout_marginTop="14dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="14dp"
android:gravity="center_vertical"
android:minHeight="35dp"
2020-02-24 15:17:23 +01:00
android:orientation="vertical"
android:layout_marginEnd="14dp">
2016-08-15 21:40:20 +02:00
<TextView
android:id="@+id/search_map_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/search_map"
android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatButton
2016-08-15 21:40:20 +02:00
android:id="@+id/search_map_action_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/btn_round_blue_bottom"
android:enabled="false"
android:gravity="center"
android:minHeight="48dp"
android:text="@string/shared_string_download"
android:textColor="@color/color_white"/>
</LinearLayout>
2020-03-04 15:12:06 +01:00
</androidx.cardview.widget.CardView>
2016-08-15 21:40:20 +02:00
2020-03-04 15:12:06 +01:00
<androidx.cardview.widget.CardView
2016-08-15 21:40:20 +02:00
android:id="@+id/map_download_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
2016-08-15 21:40:20 +02:00
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="24dp"
android:visibility="gone"
2020-02-24 15:17:23 +01:00
osmand:cardBackgroundColor="@color/color_white"
android:layout_marginStart="40dp"
android:layout_marginEnd="40dp">
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:orientation="horizontal">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatImageView
2016-08-15 21:40:20 +02:00
android:id="@+id/map_download_icon"
android:layout_width="54dp"
android:layout_height="60dp"
android:scaleType="center"
osmand:srcCompat="@drawable/ic_map"
2019-07-04 18:58:10 +02:00
android:tint="@color/icon_color_default_light"/>
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="14dp"
android:layout_marginTop="14dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="14dp"
android:gravity="center_vertical"
android:minHeight="35dp"
2020-02-24 15:17:23 +01:00
android:orientation="vertical"
android:layout_marginEnd="14dp">
2016-08-15 21:40:20 +02:00
<TextView
android:id="@+id/map_download_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/default_list_text_size"
tools:text="The Netherlands"/>
<TextView
android:id="@+id/map_download_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_sub_text_size"
tools:text="255 MB"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatButton
2016-08-15 21:40:20 +02:00
android:id="@+id/map_download_action_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/btn_round_blue_bottom"
android:gravity="center"
android:minHeight="48dp"
android:text="@string/shared_string_download"
android:textColor="@color/color_white"/>
</LinearLayout>
2020-03-04 15:12:06 +01:00
</androidx.cardview.widget.CardView>
2016-08-15 21:40:20 +02:00
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/search_country_button"
style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="@string/search_another_country"
2019-07-04 18:58:10 +02:00
android:textColor="@color/active_color_primary_light"
2020-02-24 15:17:23 +01:00
android:visibility="gone"
android:paddingEnd="16dp"
android:paddingStart="16dp" />
2020-03-04 15:12:06 +01:00
<androidx.cardview.widget.CardView
2016-08-15 21:40:20 +02:00
android:id="@+id/map_downloading_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="24dp"
android:visibility="gone"
2016-10-07 10:31:17 +02:00
osmand:cardBackgroundColor="@color/color_white"
2020-02-24 15:17:23 +01:00
tools:visibility="visible"
android:layout_marginEnd="40dp"
android:layout_marginStart="40dp">
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/map_downloading_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-10-07 10:31:17 +02:00
android:background="?attr/selectableItemBackground"
2016-08-15 21:40:20 +02:00
android:minHeight="48dp"
android:orientation="horizontal">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatImageView
2016-08-15 21:40:20 +02:00
android:id="@+id/map_downloading_icon"
android:layout_width="54dp"
android:layout_height="60dp"
android:scaleType="center"
osmand:srcCompat="@drawable/ic_map"
2019-07-04 18:58:10 +02:00
android:tint="@color/icon_color_default_light"/>
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2016-08-15 21:40:20 +02:00
<LinearLayout
2017-10-02 11:04:40 +02:00
android:layout_marginTop="14dp"
android:layout_width="0dp"
2016-08-15 21:40:20 +02:00
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical"
android:minHeight="35dp"
android:orientation="vertical">
2016-08-15 21:40:20 +02:00
<TextView
android:id="@+id/map_downloading_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/default_list_text_size"
tools:text="The Netherlands"/>
<TextView
android:id="@+id/map_downloading_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_sub_text_size"
tools:text="255 MB"/>
</LinearLayout>
<ImageButton
android:id="@+id/map_redownload_button"
style="@style/Widget.AppCompat.ActionButton"
android:layout_width="44dp"
android:layout_height="60dp"
android:contentDescription="@string/shared_string_cancel"
osmand:srcCompat="@drawable/ic_action_refresh_dark"
android:tint="@color/map_widget_blue"
android:visibility="gone"/>
2016-08-15 21:40:20 +02:00
</LinearLayout>
<View
android:id="@+id/map_download_padding"
android:layout_width="match_parent"
android:layout_height="14dp"
android:visibility="gone"/>
<LinearLayout
android:id="@+id/map_download_progress_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="-8dp"
android:orientation="horizontal"
android:visibility="visible">
2016-08-15 21:40:20 +02:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:orientation="vertical">
<ProgressBar
android:id="@+id/map_download_progress_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="visible"/>
</LinearLayout>
<ImageButton
android:id="@+id/map_download_progress_button"
style="@style/Widget.AppCompat.ActionButton"
android:layout_width="44dp"
android:layout_height="44dp"
android:contentDescription="@string/shared_string_cancel"
osmand:srcCompat="@drawable/ic_action_close"
2019-07-04 18:58:10 +02:00
android:tint="@color/icon_color_default_light"/>
2016-08-15 21:40:20 +02:00
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/map2_downloading_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
2019-07-04 18:58:10 +02:00
android:background="@color/divider_color_light"/>
2016-08-15 21:40:20 +02:00
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatButton
2016-08-15 21:40:20 +02:00
android:id="@+id/map_downloading_action_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-10-07 10:31:17 +02:00
android:background="@drawable/btn_round_blue_bottom"
2016-08-15 21:40:20 +02:00
android:gravity="center"
android:minHeight="47dp"
android:text="@string/go_to_map"
2016-10-07 10:31:17 +02:00
android:textColor="@color/color_white"/>
2016-08-15 21:40:20 +02:00
</LinearLayout>
2020-03-04 15:12:06 +01:00
</androidx.cardview.widget.CardView>
2016-08-15 21:40:20 +02:00
<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatButton
2016-08-15 21:40:20 +02:00
android:id="@+id/action_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="@dimen/first_usage_title_margin_bottom"
2019-07-30 10:58:45 +02:00
android:background="@drawable/btn_round_light"
2016-08-15 21:40:20 +02:00
android:padding="14dp"
android:text="@string/give_permission"
android:textColor="@color/color_white"
android:visibility="gone"/>
<LinearLayout
android:id="@+id/storage_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="visible">
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/divider_color"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_weight="1"
2020-02-24 15:17:23 +01:00
android:orientation="vertical"
android:layout_marginStart="16dp">
2016-08-15 21:40:20 +02:00
<TextView
android:id="@+id/storage_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:text="@string/storage_place_description"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_desc_text_size"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/storage_free_space"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="14dp"
android:layout_marginTop="8dp"
android:text="@string/storage_free_space"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_desc_text_size"/>
<TextView
android:id="@+id/storage_free_space_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="14dp"
android:layout_marginTop="8dp"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_desc_text_size"
android:textStyle="bold"
tools:text=" 12 GB"/>
</LinearLayout>
</LinearLayout>
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatButton
2016-08-15 21:40:20 +02:00
android:id="@+id/storage_change_button"
style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="@string/shared_string_change"
2020-02-24 15:17:23 +01:00
android:textColor="@color/active_color_primary_light"
android:paddingEnd="16dp"
android:paddingStart="16dp" />
2016-08-15 21:40:20 +02:00
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>