try another item layout -- need to fix the background instead.

This commit is contained in:
Andy2 2011-09-21 05:47:12 -07:00
parent 617de4eb7e
commit c44a884184

View file

@ -1551,7 +1551,7 @@ public class BoardActivity extends XWActivity
private View buildLookupDlg() private View buildLookupDlg()
{ {
init_lookup(); initLookup();
LinearLayout layout = LinearLayout layout =
(LinearLayout)Utils.inflate( this, R.layout.wordlist_view ); (LinearLayout)Utils.inflate( this, R.layout.wordlist_view );
@ -1566,7 +1566,8 @@ public class BoardActivity extends XWActivity
ListView list = (ListView)layout.findViewById( R.id.words ); ListView list = (ListView)layout.findViewById( R.id.words );
adapter = new ArrayAdapter<String>( this, adapter = new ArrayAdapter<String>( this,
//android.R.layout.select_dialog_item, //android.R.layout.select_dialog_item,
android.R.layout.simple_list_item_1, // android.R.layout.simple_list_item_1,
android.R.layout.select_dialog_item,
m_words ) ; m_words ) ;
list.setAdapter( adapter ); list.setAdapter( adapter );
OnItemClickListener oicl = new OnItemClickListener() { OnItemClickListener oicl = new OnItemClickListener() {
@ -1598,11 +1599,11 @@ public class BoardActivity extends XWActivity
private String curLangCode() private String curLangCode()
{ {
init_lookup(); initLookup();
return m_langCodes[m_gi.dictLang]; return m_langCodes[m_gi.dictLang];
} }
private void init_lookup() private void initLookup()
{ {
if ( null == m_langCodes ) { if ( null == m_langCodes ) {
Resources res = getResources(); Resources res = getResources();