Fix appearance and a11y of account setup navigation buttons
b/13341957 Change-Id: I3664c83ef6c9016448fa6691bb27146fcb8144b4
This commit is contained in:
parent
7dfbd2e14d
commit
2857b5d093
|
@ -14,9 +14,11 @@
|
|||
limitations under the License.
|
||||
-->
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<ImageButton
|
||||
style="@style/accountSetupNavButton"
|
||||
android:contentDescription="@string/previous_action"
|
||||
android:id="@+id/previous"
|
||||
android:layout_marginTop="@dimen/setup_buttons_padding_top"
|
||||
android:layout_marginRight="@dimen/setup_buttons_padding_right"
|
||||
|
@ -25,6 +27,8 @@
|
|||
android:src="@drawable/ic_nav_arrow_back"
|
||||
android:text="@string/previous_action"/>
|
||||
<ImageButton
|
||||
style="@style/accountSetupNavButton"
|
||||
android:contentDescription="@string/next_action"
|
||||
android:id="@+id/next"
|
||||
android:layout_below="@+id/previous"
|
||||
android:layout_marginTop="@dimen/setup_buttons_vertical_spacing"
|
||||
|
|
|
@ -19,17 +19,21 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/setup_buttons_padding_bottom">
|
||||
<ImageButton
|
||||
android:id="@+id/previous"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:src="@drawable/ic_nav_arrow_back"
|
||||
android:text="@string/next_action"
|
||||
android:layout_alignParentLeft="true"/>
|
||||
style="@style/accountSetupNavButton"
|
||||
android:contentDescription="@string/previous_action"
|
||||
android:id="@+id/previous"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:src="@drawable/ic_nav_arrow_back"
|
||||
android:text="@string/next_action"
|
||||
android:layout_alignParentLeft="true"/>
|
||||
<ImageButton
|
||||
android:id="@+id/next"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:src="@drawable/ic_nav_arrow_forward"
|
||||
android:text="@string/next_action"
|
||||
android:layout_alignParentRight="true"/>
|
||||
</RelativeLayout>
|
||||
style="@style/accountSetupNavButton"
|
||||
android:contentDescription="@string/next_action"
|
||||
android:id="@+id/next"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:src="@drawable/ic_nav_arrow_forward"
|
||||
android:text="@string/next_action"
|
||||
android:layout_alignParentRight="true"/>
|
||||
</RelativeLayout>
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
|
||||
</style>
|
||||
|
||||
<!-- Navigation buttons on the account setup screens -->
|
||||
<style name="accountSetupNavButton">
|
||||
<item name="android:background">@android:color/transparent</item>
|
||||
</style>
|
||||
|
||||
<!-- Cancel/Done buttons on the account settings (server settings) fragments -->
|
||||
<style name="accountSettingsButton">
|
||||
<item name="android:layout_width">160sp</item>
|
||||
|
|
Loading…
Reference in New Issue