Bug 747566 - Make tab tray d-pad navigable. r=sriram

This commit is contained in:
Eitan Isaacson 2012-04-25 17:09:12 -07:00
Родитель 3b1c4ed726
Коммит 1a21db7acc
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -60,6 +60,8 @@ public class TabsTray extends GeckoActivity implements Tabs.OnTabsChangedListene
mWaitingForClose = false; mWaitingForClose = false;
mList = (ListView) findViewById(R.id.list); mList = (ListView) findViewById(R.id.list);
mList.setItemsCanFocus(true);
mListContainer = (TabsListContainer) findViewById(R.id.list_container); mListContainer = (TabsListContainer) findViewById(R.id.list_container);
ImageButton addTab = (ImageButton) findViewById(R.id.add_tab); ImageButton addTab = (ImageButton) findViewById(R.id.add_tab);

Просмотреть файл

@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:focusable="true"
android:nextFocusLeft="@+id/close"
android:id="@+id/info" android:id="@+id/info"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="100dip" android:layout_height="100dip"
@ -49,6 +51,7 @@
android:shadowDy="1"/> android:shadowDy="1"/>
<ImageButton android:id="@+id/close" <ImageButton android:id="@+id/close"
android:nextFocusRight="@+id/info"
android:layout_width="34dip" android:layout_width="34dip"
android:layout_height="34dip" android:layout_height="34dip"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"