Layout change in support card and support dialog
1. Wrap the support_disclaimer_content by scrollview. 2. Change the layout in support_escalation_options using layout_weight. 3. Add styles in layout-sw300dp and layout-sw400dp The target scope is between 300dp->400dp, so I add the default style in sw400dp and changed style in sw300dp to cover it. Bug: 31399419 Test: Visual Change-Id: I117acb0c5b992bea2cded6cd48749c4ed7b04488
This commit is contained in:
@@ -13,24 +13,27 @@
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="24dp">
|
||||
|
||||
<com.android.settings.widget.LinkTextView
|
||||
android:id="@+id/support_disclaimer_text"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="24dp"/>
|
||||
android:orientation="vertical"
|
||||
android:padding="24dp">
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/support_disclaimer_do_not_show_again"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/support_disclaimer_do_not_show"
|
||||
android:textColor="?android:attr/textColorSecondary"/>
|
||||
<com.android.settings.widget.LinkTextView
|
||||
android:id="@+id/support_disclaimer_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="24dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
<CheckBox
|
||||
android:id="@+id/support_disclaimer_do_not_show_again"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/support_disclaimer_do_not_show"
|
||||
android:textColor="?android:attr/textColorSecondary"/>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
@@ -42,7 +42,8 @@
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
@@ -63,7 +64,8 @@
|
||||
android:textColor="?android:attr/textColorSecondary"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
|
||||
Reference in New Issue
Block a user