OsmAnd/OsmAnd/res/layout/fragment_data_storage_place_dialog.xml

232 lines
10 KiB
XML
Raw Normal View History

2016-03-03 16:56:44 +01: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:layout_gravity="bottom"
android:background="?attr/bottom_menu_view_bg"
android:orientation="horizontal"
tools:context="net.osmand.plus.download.ui.DataStoragePlaceDialogFragment">
2015-10-23 09:30:40 +02:00
2016-03-03 16:56:44 +01:00
<LinearLayout
2015-10-23 09:30:40 +02:00
android:layout_width="wrap_content"
2016-03-03 16:56:44 +01:00
android:layout_height="match_parent">
<ImageView
android:id="@+id/folderIconImageView"
android:layout_width="56dp"
android:layout_height="56dp"
2020-02-24 15:17:23 +01:00
android:layout_marginRight="@dimen/content_padding"
2016-03-03 16:56:44 +01:00
android:layout_marginTop="4dp"
android:layout_row="0"
android:scaleType="center"
tools:background="@color/color_warning"
2020-02-24 15:17:23 +01:00
tools:src="@drawable/ic_action_folder"
android:layout_marginEnd="@dimen/content_padding" />
2016-03-03 16:56:44 +01:00
</LinearLayout>
<LinearLayout
2015-10-23 09:30:40 +02:00
android:layout_width="0dp"
2016-03-03 16:56:44 +01:00
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal"
android:layout_weight="1"
android:paddingTop="22dp"
android:text="@string/application_dir"
2016-08-17 18:56:27 +02:00
android:textColor="?android:attr/textColorPrimary"
2016-03-03 16:56:44 +01:00
android:textSize="@dimen/dialog_header_text_size"/>
<ImageButton
android:id="@+id/closeImageButton"
android:contentDescription="@string/shared_string_close"
2016-03-03 16:56:44 +01:00
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="44dp"
android:layout_height="44dp"
android:src="@drawable/ic_action_remove_dark"
tools:background="@color/color_warning"/>
</LinearLayout>
<TextView
android:id="@+id/description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal"
android:layout_marginBottom="24dp"
android:layout_marginTop="4dp"
2020-02-19 12:20:46 +01:00
android:textColor="?android:textColorSecondary"
2016-03-03 16:56:44 +01:00
android:text="@string/application_dir_description"
android:textSize="16sp"/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/deviceMemoryRow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:orientation="horizontal">
<ImageView
android:id="@+id/deviceMemoryImageView"
android:layout_width="wrap_content"
android:layout_height="56dp"
2020-02-24 15:17:23 +01:00
android:paddingRight="@dimen/content_padding"
2016-03-03 16:56:44 +01:00
android:scaleType="center"
2017-04-06 10:15:12 +02:00
android:src="@drawable/ic_action_phone"
2020-02-24 15:17:23 +01:00
tools:background="@color/color_warning"
android:paddingEnd="@dimen/content_padding" />
2016-03-03 16:56:44 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/deviceMemoryTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal"
android:gravity="center_vertical"
2016-07-04 17:36:16 +02:00
android:text="@string/storage_directory_external"
2016-08-17 18:56:27 +02:00
android:textColor="?android:attr/textColorPrimary"
/>
2016-03-03 16:56:44 +01:00
<TextView
android:id="@+id/deviceMemoryDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal"
2016-08-17 18:56:27 +02:00
android:textColor="?android:attr/textColorSecondary"
2016-03-03 16:56:44 +01:00
tools:text="Free: 568 Mb"/>
</LinearLayout>
</LinearLayout>
<View
2016-03-26 18:42:04 +01:00
android:id="@+id/divSharedStorage"
2016-03-03 16:56:44 +01:00
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="fill_horizontal"
android:background="@color/divider_color"/>
<LinearLayout
android:id="@+id/sharedMemoryRow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:orientation="horizontal">
<ImageView
android:id="@+id/sharedMemoryImageView"
android:layout_width="wrap_content"
android:layout_height="56dp"
2020-02-24 15:17:23 +01:00
android:paddingRight="@dimen/content_padding"
2016-03-03 16:56:44 +01:00
android:scaleType="center"
2017-04-06 10:15:12 +02:00
android:src="@drawable/ic_action_phone"
2020-02-24 15:17:23 +01:00
tools:background="@color/color_warning"
android:paddingEnd="@dimen/content_padding" />
2016-03-03 16:56:44 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/sharedMemoryTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal"
android:text="@string/storage_directory_shared"
2016-08-17 18:56:27 +02:00
android:textColor="?android:attr/textColorPrimary"/>
2016-03-03 16:56:44 +01:00
<TextView
android:id="@+id/sharedMemoryDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal"
2016-08-17 18:56:27 +02:00
android:textColor="?android:attr/textColorSecondary"
2016-03-03 16:56:44 +01:00
tools:text="Free: 9 Gb"/>
</LinearLayout>
</LinearLayout>
<View
2016-03-09 16:03:40 +01:00
android:id="@+id/divExtStorage"
2016-03-03 16:56:44 +01:00
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="fill_horizontal"
android:background="@color/divider_color"/>
<LinearLayout
android:id="@+id/memoryStickRow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:orientation="horizontal">
<ImageView
android:id="@+id/memoryStickImageView"
android:layout_width="wrap_content"
android:layout_height="56dp"
2020-02-24 15:17:23 +01:00
android:paddingRight="@dimen/content_padding"
2016-03-03 16:56:44 +01:00
android:scaleType="center"
android:src="@drawable/ic_sdcard"
2020-02-24 15:17:23 +01:00
tools:background="@color/color_warning"
android:paddingEnd="@dimen/content_padding" />
2016-03-03 16:56:44 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/memoryStickTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal"
2016-07-04 17:36:16 +02:00
android:text="@string/storage_directory_card"
2016-08-17 18:56:27 +02:00
android:textColor="?android:attr/textColorPrimary"/>
2016-03-03 16:56:44 +01:00
<TextView
android:id="@+id/memoryStickDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal"
2016-08-17 18:56:27 +02:00
android:textColor="?android:attr/textColorSecondary"
2016-03-03 16:56:44 +01:00
tools:text="Free: 9 Gb"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>