Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2892267a authored by Vinod Krishnan's avatar Vinod Krishnan Committed by Android Git Automerger
Browse files

am 03dc824d: Changing layout to make button animations work

* commit '03dc824d':
  Changing layout to make button animations work
parents d995d15f 03dc824d
Loading
Loading
Loading
Loading
+56 −56
Original line number Diff line number Diff line
@@ -15,12 +15,9 @@
-->
<FrameLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/confirmation"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        >
        android:layout_height="match_parent">

    <ScrollView
            android:id="@+id/scrolling_container"
@@ -32,6 +29,7 @@
        <LinearLayout
                android:id="@+id/content"
                android:orientation="vertical"
                android:paddingBottom="@dimen/conf_diag_button_container_height"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

@@ -62,6 +60,8 @@
                    android:gravity="center"
                    android:fontFamily="sans-serif-condensed-light"
                    android:textAppearance="@style/GrantPermissions.TitleText"/>
        </LinearLayout>
    </ScrollView>

    <!-- TODO: Change this to use a ViewStub instead of show/hiding the two layouts -->
    <FrameLayout android:layout_width="match_parent"
@@ -72,14 +72,14 @@
        <FrameLayout
            android:id="@+id/horizontal_button_bar"
            android:layout_width="match_parent"
                        android:layout_height="72dp">
            android:layout_height="@dimen/conf_diag_button_container_height">
            <Button
                android:id="@+id/horizontal_deny_button"
                android:layout_width="54dp"
                android:layout_height="54dp"
                android:layout_gravity="top|left"
                            android:layout_marginLeft="16dp"
                            android:layout_marginTop="9dp"
                android:layout_marginLeft="@dimen/conf_diag_2button_margin_side"
                android:layout_marginTop="@dimen/conf_diag_2button_margin_top"
                android:background="@drawable/cancel_button"/>

            <Button
@@ -87,8 +87,8 @@
                android:layout_width="54dp"
                android:layout_height="54dp"
                android:layout_gravity="top|right"
                            android:layout_marginRight="16dp"
                            android:layout_marginTop="9dp"
                android:layout_marginRight="@dimen/conf_diag_2button_margin_side"
                android:layout_marginTop="@dimen/conf_diag_2button_margin_top"
                android:background="@drawable/confirm_button"/>
        </FrameLayout>

@@ -96,10 +96,12 @@
            android:id="@+id/vertical_button_bar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/conf_diag_3button_margin_left"
            android:layout_marginBottom="@dimen/conf_diag_3button_margin_bottom"
            android:visibility="gone">
            <LinearLayout
                android:id="@+id/buttonPanel"
                            android:layout_width="match_parent"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="vertical">
                <Button
@@ -116,6 +118,4 @@
            </LinearLayout>
        </FrameLayout>
    </FrameLayout>
        </LinearLayout>
    </ScrollView>
</FrameLayout>
+25 −0
Original line number Diff line number Diff line
<?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.
-->

<resources>
    <!-- Dimensions for the Grant permissions Confirmation Dialog -->
    <dimen name="conf_diag_button_container_height">96dp</dimen>
    <dimen name="conf_diag_2button_margin_side">36dp</dimen>
    <dimen name="conf_diag_2button_margin_top">12dp</dimen>
    <dimen name="conf_diag_3button_margin_left">36dp</dimen>
    <dimen name="conf_diag_3button_margin_bottom">12dp</dimen>

</resources>
+3 −0
Original line number Diff line number Diff line
@@ -26,4 +26,7 @@

    <!-- Copied from wearable support -->
    <color name="circular_button_disabled">#757575</color>

    <!-- Copied from wearable Clockwork Settings -->
    <color name="cw_dark_gray">#424242</color>
</resources>
+6 −1
Original line number Diff line number Diff line
@@ -22,7 +22,12 @@

    <dimen name="action_dialog_z">16dp</dimen>

    <!-- Confirmation Dialog -->
    <!-- Dimensions for the Grant permissions Confirmation Dialog -->
    <dimen name="conf_diag_floating_height">16dp</dimen>
    <dimen name="conf_diag_button_container_height">72dp</dimen>
    <dimen name="conf_diag_2button_margin_side">16dp</dimen>
    <dimen name="conf_diag_2button_margin_top">9dp</dimen>
    <dimen name="conf_diag_3button_margin_left">16dp</dimen>
    <dimen name="conf_diag_3button_margin_bottom">9dp</dimen>

</resources>
+4 −8
Original line number Diff line number Diff line
@@ -16,13 +16,14 @@
  -->

<resources>
    <style name="Settings" parent="Theme.Leanback">
    <style name="Settings" parent="@android:style/Theme.DeviceDefault.NoActionBar">
        <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Permissions</item>
        <item name="android:windowBackground">@color/cw_dark_gray</item>
        <item name="android:colorBackground">@color/cw_dark_gray</item>
    </style>

    <style name="GrantPermissions" parent="Theme.Leanback">
    <style name="GrantPermissions" parent="Settings">
        <item name="android:windowIsFloating">true</item>
        <item name="android:windowAnimationStyle">@style/Animation.Snackbar</item>
        <item name="android:windowElevation">@dimen/action_dialog_z</item>
    </style>

@@ -39,11 +40,6 @@
        <item name="android:lineSpacingMultiplier">1.221</item>
    </style>

    <style name="Animation.Snackbar" parent="@android:style/Animation">
        <item name="android:windowEnterAnimation">@anim/snackbar_enter</item>
        <item name="android:windowExitAnimation">@anim/snackbar_exit</item>
    </style>

    <!-- Copied from WearableSupport lib -->
    <style name="TextAppearance.WearDiag" parent="android:TextAppearance.Medium">
        <item name="android:textColor">#FFFFFF</item>
Loading