mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 769824: Styles aren't applied to AwesomeScreen lists. [r=mfinkle]
This commit is contained in:
parent
63da62f5e4
commit
ef7d125787
@ -248,8 +248,10 @@ RES_LAYOUT = \
|
||||
res/layout/autocomplete_list_item.xml \
|
||||
res/layout/awesomebar.xml \
|
||||
res/layout/awesomebar_actionbar.xml \
|
||||
res/layout/awesomebar_expandable_list.xml \
|
||||
res/layout/awesomebar_folder_row.xml \
|
||||
res/layout/awesomebar_header_row.xml \
|
||||
res/layout/awesomebar_list.xml \
|
||||
res/layout/awesomebar_row.xml \
|
||||
res/layout/awesomebar_suggestion_item.xml \
|
||||
res/layout/awesomebar_suggestion_row.xml \
|
||||
|
@ -26,6 +26,7 @@ import android.widget.Toast;
|
||||
import android.widget.SimpleCursorAdapter;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TabHost.TabContentFactory;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.Bitmap;
|
||||
@ -109,7 +110,7 @@ public class AllPagesTab extends AwesomeBarTab implements GeckoEventListener {
|
||||
|
||||
public ListView getListView() {
|
||||
if (mView == null) {
|
||||
mView = new ListView(mContext, null, R.style.AwesomeBarList);
|
||||
mView = (ListView) (LayoutInflater.from(mContext).inflate(R.layout.awesomebar_list, null));
|
||||
((Activity)mContext).registerForContextMenu(mView);
|
||||
mView.setTag(TAG);
|
||||
AwesomeBarCursorAdapter adapter = getCursorAdapter();
|
||||
|
@ -17,6 +17,7 @@ import android.app.Activity;
|
||||
import android.database.Cursor;
|
||||
import android.util.Log;
|
||||
import android.widget.SimpleCursorAdapter;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
import android.content.Intent;
|
||||
import android.widget.LinearLayout;
|
||||
@ -75,7 +76,7 @@ public class BookmarksTab extends AwesomeBarTab {
|
||||
|
||||
public ListView getListView() {
|
||||
if (mView == null) {
|
||||
mView = new ListView(mContext, null, R.style.AwesomeBarList);
|
||||
mView = (ListView) (LayoutInflater.from(mContext).inflate(R.layout.awesomebar_list, null));
|
||||
((Activity)mContext).registerForContextMenu(mView);
|
||||
mView.setTag(TAG);
|
||||
mView.setOnTouchListener(mListListener);
|
||||
|
@ -19,6 +19,7 @@ import android.widget.ListView;
|
||||
import android.database.Cursor;
|
||||
import android.view.MenuInflater;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
@ -91,7 +92,7 @@ public class HistoryTab extends AwesomeBarTab {
|
||||
|
||||
public ListView getListView() {
|
||||
if (mView == null) {
|
||||
mView = new ExpandableListView(mContext, null, R.style.AwesomeBarList);
|
||||
mView = (ExpandableListView) (LayoutInflater.from(mContext).inflate(R.layout.awesomebar_expandable_list, null));
|
||||
((Activity)mContext).registerForContextMenu(mView);
|
||||
mView.setTag(TAG);
|
||||
mView.setOnTouchListener(mListListener);
|
||||
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<ExpandableListView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="@style/AwesomeBarList"
|
||||
android:groupIndicator="@android:color/transparent"/>
|
7
mobile/android/base/resources/layout/awesomebar_list.xml
Normal file
7
mobile/android/base/resources/layout/awesomebar_list.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="@style/AwesomeBarList"/>
|
Loading…
Reference in New Issue
Block a user