Fix appearance and a11y of account setup navigation buttons

b/13341957

Change-Id: I3664c83ef6c9016448fa6691bb27146fcb8144b4
This commit is contained in:
Tony Mantler 2014-03-06 10:46:30 -08:00
parent 7dfbd2e14d
commit 2857b5d093
3 changed files with 28 additions and 15 deletions

View File

@ -14,9 +14,11 @@
limitations under the License. limitations under the License.
--> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<ImageButton <ImageButton
style="@style/accountSetupNavButton"
android:contentDescription="@string/previous_action"
android:id="@+id/previous" android:id="@+id/previous"
android:layout_marginTop="@dimen/setup_buttons_padding_top" android:layout_marginTop="@dimen/setup_buttons_padding_top"
android:layout_marginRight="@dimen/setup_buttons_padding_right" android:layout_marginRight="@dimen/setup_buttons_padding_right"
@ -25,6 +27,8 @@
android:src="@drawable/ic_nav_arrow_back" android:src="@drawable/ic_nav_arrow_back"
android:text="@string/previous_action"/> android:text="@string/previous_action"/>
<ImageButton <ImageButton
style="@style/accountSetupNavButton"
android:contentDescription="@string/next_action"
android:id="@+id/next" android:id="@+id/next"
android:layout_below="@+id/previous" android:layout_below="@+id/previous"
android:layout_marginTop="@dimen/setup_buttons_vertical_spacing" android:layout_marginTop="@dimen/setup_buttons_vertical_spacing"

View File

@ -19,17 +19,21 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/setup_buttons_padding_bottom"> android:layout_marginBottom="@dimen/setup_buttons_padding_bottom">
<ImageButton <ImageButton
android:id="@+id/previous" style="@style/accountSetupNavButton"
android:layout_height="wrap_content" android:contentDescription="@string/previous_action"
android:layout_width="wrap_content" android:id="@+id/previous"
android:src="@drawable/ic_nav_arrow_back" android:layout_height="wrap_content"
android:text="@string/next_action" android:layout_width="wrap_content"
android:layout_alignParentLeft="true"/> android:src="@drawable/ic_nav_arrow_back"
android:text="@string/next_action"
android:layout_alignParentLeft="true"/>
<ImageButton <ImageButton
android:id="@+id/next" style="@style/accountSetupNavButton"
android:layout_height="wrap_content" android:contentDescription="@string/next_action"
android:layout_width="wrap_content" android:id="@+id/next"
android:src="@drawable/ic_nav_arrow_forward" android:layout_height="wrap_content"
android:text="@string/next_action" android:layout_width="wrap_content"
android:layout_alignParentRight="true"/> android:src="@drawable/ic_nav_arrow_forward"
</RelativeLayout> android:text="@string/next_action"
android:layout_alignParentRight="true"/>
</RelativeLayout>

View File

@ -32,6 +32,11 @@
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item> <item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</style> </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 --> <!-- Cancel/Done buttons on the account settings (server settings) fragments -->
<style name="accountSettingsButton"> <style name="accountSettingsButton">
<item name="android:layout_width">160sp</item> <item name="android:layout_width">160sp</item>