2c42b3f95a
When the keyboard is shown in the tablet layout, position the card correctly by using linear layout with 2 invisible weighted views. Bug: 29420837 Change-Id: I85008800f16a4a8c6b7b2f8f78d702ac5674434a
50 lines
1.7 KiB
XML
50 lines
1.7 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:id="@+id/suw_pattern_bg"
|
|
style="@style/SuwGlifCardBackground"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical">
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:visibility="invisible" />
|
|
|
|
<com.android.setupwizardlib.view.IntrinsicSizeFrameLayout
|
|
style="@style/SuwGlifCardContainer"
|
|
android:layout_width="@dimen/suw_glif_card_width"
|
|
android:layout_height="wrap_content"
|
|
android:height="@dimen/suw_glif_card_height">
|
|
|
|
<include layout="@layout/suw_glif_list_template_content" />
|
|
|
|
</com.android.setupwizardlib.view.IntrinsicSizeFrameLayout>
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:visibility="invisible" />
|
|
|
|
</LinearLayout>
|