mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
fix brokenness (black-on-black text in lookup dialog) on 2.2 and
beyond by copying in layout for built-in list items and hard-coding white text color. This is risky/fragile but I can't find another fix.
This commit is contained in:
parent
dc84cfcb97
commit
ff82c20b2c
3 changed files with 45 additions and 2 deletions
|
@ -12,6 +12,7 @@
|
|||
android:layout_width="fill_parent"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:gravity="center"
|
||||
android:textColor="#FFFFFFFF"
|
||||
/>
|
||||
|
||||
<ListView android:id="@+id/list"
|
||||
|
|
40
xwords4/android/XWords4/res/layout/select_dialog_item.xml
Normal file
40
xwords4/android/XWords4/res/layout/select_dialog_item.xml
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/* //device/apps/common/res/layout/select_dialog_item.xml
|
||||
**
|
||||
** Copyright 2006, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!--
|
||||
This layout file is used by the AlertDialog when displaying a list of items.
|
||||
This layout file is inflated and used as the TextView to display individual
|
||||
items.
|
||||
-->
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@android:id/text1"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="14dip"
|
||||
android:paddingRight="15dip"
|
||||
android:ellipsize="marquee"
|
||||
android:textColor="#FFFFFFFF"
|
||||
/>
|
||||
|
||||
<!-- this guy's private -->
|
||||
<!-- android:textColor="@android:color/bright_foreground_light" -->
|
|
@ -55,8 +55,10 @@ public class LookupView extends LinearLayout
|
|||
private static String[] s_lookupNames;
|
||||
private static String[] s_lookupUrls;
|
||||
private static ArrayAdapter<String> s_urlsAdapter;
|
||||
private static final int LIST_LAYOUT = android.R.layout.simple_list_item_1;
|
||||
|
||||
private static final int LIST_LAYOUT = // android.R.layout.simple_list_item_1;
|
||||
// android.R.layout.select_dialog_item;
|
||||
R.layout.select_dialog_item;
|
||||
|
||||
private static int s_lang = -1;
|
||||
|
||||
private String[] m_words;
|
||||
|
|
Loading…
Reference in a new issue