diff options
author | Jin Cao <jinyan@google.com> | 2014-08-05 17:28:28 -0700 |
---|---|---|
committer | Jin Cao <jinyan@google.com> | 2014-08-08 18:08:13 -0700 |
commit | 5b317924c7c764954870501d99bfc57a243f6319 (patch) | |
tree | 889862967ea588f14b27f5c5338efd6d77fd8d3f /res/layout | |
parent | 094986e3c824d705909af10464954532c377adc3 (diff) | |
download | android_packages_apps_UnifiedEmail-5b317924c7c764954870501d99bfc57a243f6319.tar.gz android_packages_apps_UnifiedEmail-5b317924c7c764954870501d99bfc57a243f6319.tar.bz2 android_packages_apps_UnifiedEmail-5b317924c7c764954870501d99bfc57a243f6319.zip |
[KBNav TL] Basic navigation in TL
Support basic keyboard navigation in TL. CV is not implemented
so interaction between TL and CV once you open a conversation
is not guaranteed.
On TL, left arrow goes to minidrawer/drawer, right arrow goes
to CV if open, up/down works as expected, TAB goes to ComposeBtn.
On drawer, up/down as expected, right goes to TL, TAB goes to ComposeBtn.
On ComposeBtn, left/up/TAB goes back to TL, right/down does nothing.
Currently no way of accessing the action bar menu because I don't
know what id to set to focus.
b/16636060
Change-Id: Ia9bae322e41a53beed20702fba301fbfd9100aa3
Conflicts:
src/com/android/mail/ui/ConversationListFragment.java
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/conversation_list.xml | 2 | ||||
-rw-r--r-- | res/layout/conversation_view.xml | 6 | ||||
-rw-r--r-- | res/layout/folder_list.xml | 4 | ||||
-rw-r--r-- | res/layout/mini_drawer_recent_account_item.xml | 7 | ||||
-rw-r--r-- | res/layout/search_results_view.xml | 1 |
5 files changed, 9 insertions, 11 deletions
diff --git a/res/layout/conversation_list.xml b/res/layout/conversation_list.xml index 654092ce7..64f8fde8e 100644 --- a/res/layout/conversation_list.xml +++ b/res/layout/conversation_list.xml @@ -38,7 +38,7 @@ <include layout="@layout/conversation_list_empty_view" /> <com.android.mail.ui.SwipeableListView - android:id="@android:id/list" + android:id="@+id/conversation_list_view" android:layout_width="match_parent" android:layout_height="match_parent" style="@style/ConversationListFade" /> diff --git a/res/layout/conversation_view.xml b/res/layout/conversation_view.xml index 9bcd4f9ce..14289a9cd 100644 --- a/res/layout/conversation_view.xml +++ b/res/layout/conversation_view.xml @@ -28,8 +28,10 @@ android:id="@+id/conversation_webview" android:layout_width="match_parent" android:layout_height="match_parent" - style="@style/ConversationViewPaddingStyle" - android:scrollbars="none" /> + android:focusable="false" + android:focusableInTouchMode="false" + android:scrollbars="none" + style="@style/ConversationViewPaddingStyle" /> <!-- scrolling overlay views go here --> diff --git a/res/layout/folder_list.xml b/res/layout/folder_list.xml index 19336d858..3632f9c66 100644 --- a/res/layout/folder_list.xml +++ b/res/layout/folder_list.xml @@ -24,6 +24,7 @@ android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="match_parent" + android:nextFocusRight="@+id/conversation_list_view" android:fadingEdge="none" /> <com.android.mail.ui.MiniDrawerView @@ -42,8 +43,7 @@ android:paddingBottom="16dp" android:paddingLeft="20dp" android:paddingRight="20dp" - android:background="?android:attr/selectableItemBackground" - android:scaleType="fitCenter" /> + style="@style/MiniDrawerItemStyleBase" /> <ImageView android:id="@+id/dotdotdot" diff --git a/res/layout/mini_drawer_recent_account_item.xml b/res/layout/mini_drawer_recent_account_item.xml index 8a04bb35b..f348d190e 100644 --- a/res/layout/mini_drawer_recent_account_item.xml +++ b/res/layout/mini_drawer_recent_account_item.xml @@ -19,9 +19,4 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="68dp" - android:paddingTop="18dp" - android:paddingBottom="18dp" - android:paddingLeft="20dp" - android:paddingRight="20dp" - android:background="?android:attr/selectableItemBackground" - android:scaleType="fitCenter" /> + style="@style/MiniDrawerAccountStyle" /> diff --git a/res/layout/search_results_view.xml b/res/layout/search_results_view.xml index 9d8cfa3c2..2a02605a3 100644 --- a/res/layout/search_results_view.xml +++ b/res/layout/search_results_view.xml @@ -22,6 +22,7 @@ android:layout_width="match_parent" android:layout_height="@dimen/notification_view_height" android:background="@color/search_banner_bg" + android:focusable="false" android:minHeight="@dimen/notification_view_height" android:paddingLeft="@dimen/search_results_padding" android:paddingRight="@dimen/search_results_padding"> |