зеркало из https://github.com/mozilla/gecko-dev.git
Bug 734880: Bottom center area in tabs-tray should consume clicks. [r=mfinke]
This commit is contained in:
Родитель
66c85976b7
Коммит
47d68447ae
|
@ -72,6 +72,13 @@ public class TabsTray extends Activity implements Tabs.OnTabsChangedListener {
|
|||
}
|
||||
});
|
||||
|
||||
RelativeLayout toolbar = (RelativeLayout) findViewById(R.id.toolbar);
|
||||
toolbar.setOnClickListener(new Button.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
// Consume the click event to avoid enclosing container consuming it
|
||||
}
|
||||
});
|
||||
|
||||
LinearLayout container = (LinearLayout) findViewById(R.id.container);
|
||||
container.setOnClickListener(new Button.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
android:layout_height="2dp"
|
||||
android:background="@drawable/tabs_tray_list_divider"/>
|
||||
|
||||
<RelativeLayout android:layout_width="fill_parent"
|
||||
<RelativeLayout android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="50dip"
|
||||
android:background="@drawable/tabs_tray_bg_repeat">
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче