mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
Go back to using a built-in list item resource. Mine was
white-on-white on several OS versions. Need to test further to try to reproduce the conditions that had me trying to manage contrast myself. Or use a dialog-themed Activity for lookup dialog -- prev checkins say that was too slow but that might be fixable....
This commit is contained in:
parent
9d153b500c
commit
6a635d1631
4 changed files with 5 additions and 44 deletions
|
@ -7,7 +7,7 @@
|
|||
android:layout_height="fill_parent"
|
||||
>
|
||||
|
||||
<ListView android:id="@+id/list"
|
||||
<ListView android:id="@+id/lookup_list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:drawSelectorOnTop="false"
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
<?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" -->
|
|
@ -56,8 +56,8 @@ public class LookupView extends LinearLayout
|
|||
private static String[] s_lookupUrls;
|
||||
private static ArrayAdapter<String> s_urlsAdapter;
|
||||
private static final int LIST_LAYOUT = // android.R.layout.simple_list_item_1;
|
||||
// android.R.layout.select_dialog_item;
|
||||
R.layout.select_dialog_item;
|
||||
android.R.layout.select_dialog_item;
|
||||
//R.layout.select_dialog_item;
|
||||
|
||||
private static int s_lang = -1;
|
||||
|
||||
|
@ -90,7 +90,7 @@ public class LookupView extends LinearLayout
|
|||
|
||||
m_wordsAdapter = new ArrayAdapter<String>( m_context, LIST_LAYOUT,
|
||||
m_words );
|
||||
m_list = (ListView)findViewById( R.id.list );
|
||||
m_list = (ListView)findViewById( R.id.lookup_list );
|
||||
m_list.setOnItemClickListener( this );
|
||||
|
||||
m_doneButton = (Button)findViewById( R.id.button_done );
|
||||
|
|
|
@ -71,6 +71,7 @@ for PACK_UNSIGNED in $FILES; do
|
|||
zipalign -v 4 $PACK_UNSIGNED $PACK_SIGNED
|
||||
[ -n "$XW_WWW_PATH" ] && cp $PACK_SIGNED $XW_WWW_PATH
|
||||
cp $PACK_SIGNED ${PACK_SIGNED%.apk}_$(git describe).apk
|
||||
echo "created ${PACK_SIGNED%.apk}_$(git describe).apk"
|
||||
done
|
||||
|
||||
if [ -n "$TAGNAME" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue