Bug 713402: Tabs not shown in awesomescreen in honeycomb. [r=mfinkle]

This commit is contained in:
Sriram Ramasubramanian 2012-01-27 11:58:18 -08:00
parent cdf2c28d24
commit e2bd61acc0
2 changed files with 4 additions and 9 deletions

View File

@ -70,6 +70,7 @@ import android.widget.ExpandableListView;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.ListView;
import android.widget.TabWidget;
import android.widget.Toast;
import java.util.Map;
@ -117,6 +118,9 @@ public class AwesomeBar extends Activity implements GeckoEventListener {
mText = (AwesomeBarEditText) findViewById(R.id.awesomebar_text);
}
TabWidget tabWidget = (TabWidget) findViewById(android.R.id.tabs);
tabWidget.setDividerDrawable(null);
mAwesomeTabs = (AwesomeBarTabs) findViewById(R.id.awesomebar_tabs);
mAwesomeTabs.setOnUrlOpenListener(new AwesomeBarTabs.OnUrlOpenListener() {
public void onUrlOpen(String url) {

View File

@ -27,13 +27,4 @@
<item name="android:layout_weight">1</item>
</style>
<!-- TabWidget -->
<style name="TabWidget">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">48dip</item>
<item name="android:background">@drawable/tabs_tray_bg_repeat</item>
<item name="android:divider">@android:color/transparent</item>
<item name="android:tabStripEnabled">false</item>
</style>
</resources>