Files
app_Settings/res/layout/storage_internal_format.xml
Arc Wang 87ef94e9f2 Make 'Format as portable' scrollable
ScrollView can't work within CoordinatorLayout,
replace it with NestedScrollView.

Bug: 213559304
Test: manual
    1. Create virtual disk by below command.
         adb shell sm set-virtual-disk true
    2. Settings -> Storage -> select the virtual disk.
    3. Format it as Phone storage.
    4. Click option menu -> Format as portable.
Change-Id: Ie5e51fb3c52431e1c94c2bcaaeb88fc05dfc993d
2022-01-11 15:40:25 +08:00

54 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<TextView
android:id="@+id/body"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/sud_description_margin_top"
android:paddingBottom="@dimen/sud_description_margin_bottom"
android:paddingStart="@dimen/sud_layout_margin_sides"
android:paddingEnd="@dimen/sud_layout_margin_sides"
android:lineSpacingExtra="@dimen/sud_description_line_spacing_extra"
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
android:textColor="?android:attr/textColorPrimary" />
</androidx.core.widget.NestedScrollView>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="4dp">
<Button
android:id="@+id/confirm"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/storage_menu_format"
android:textColor="@android:color/white"
android:backgroundTint="@color/storage_wizard_button_red" />
</FrameLayout>
</LinearLayout>