Merge "Use layout weight attr and scrollview in lock pattern screen."
This commit is contained in:
@@ -29,47 +29,54 @@
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
android:paddingTop="@dimen/confirm_credentials_top_padding">
|
||||
|
||||
<TextView
|
||||
style="@android:style/TextAppearance.Material.Headline"
|
||||
android:id="@+id/headerText"
|
||||
android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin"
|
||||
android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin"
|
||||
android:layout_marginTop="?attr/confirmDeviceCredentialsTopMargin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="?android:attr/colorAccent"/>
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="2">
|
||||
|
||||
<TextView
|
||||
style="@android:style/TextAppearance.Material.Body1"
|
||||
android:id="@+id/detailsText"
|
||||
android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin"
|
||||
android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Button
|
||||
style="@android:style/Widget.Material.Button.Borderless"
|
||||
android:id="@+id/cancelButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/cancel"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginTop="16dp"/>
|
||||
<TextView
|
||||
style="@android:style/TextAppearance.Material.Headline"
|
||||
android:id="@+id/headerText"
|
||||
android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin"
|
||||
android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin"
|
||||
android:layout_marginTop="?attr/confirmDeviceCredentialsTopMargin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="?android:attr/colorAccent"/>
|
||||
|
||||
<View android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="0.5"/>
|
||||
<TextView
|
||||
style="@android:style/TextAppearance.Material.Body1"
|
||||
android:id="@+id/detailsText"
|
||||
android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin"
|
||||
android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<Button
|
||||
style="@android:style/Widget.Material.Button.Borderless"
|
||||
android:id="@+id/cancelButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/cancel"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginTop="16dp"/>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<com.android.internal.widget.LockPatternView
|
||||
android:id="@+id/lockPattern"
|
||||
android:layout_width="312dp"
|
||||
android:layout_height="312dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="-46dp"
|
||||
android:layout_marginBottom="-46dp"/>
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="3"
|
||||
android:layout_gravity="center_horizontal"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
Reference in New Issue
Block a user