Bug 734880: Bottom center area in tabs-tray should consume clicks. [r=mfinke]

This commit is contained in:
Sriram Ramasubramanian 2012-03-15 12:24:39 -07:00
parent e5c84b3aae
commit d5996d9ad4
2 changed files with 9 additions and 1 deletions

View File

@ -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) {

View File

@ -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">