From c97b9875bd293672f1888a70faaf725538693d6b Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 24 Feb 2021 19:03:52 -0800 Subject: [PATCH] cleanup: make TableLayout include less Scroller is allowed only one child and I guess I wanted the TableLayout to suffice, but having unrelated stuff in it sucked. So wrap it in a LinearLayout and move the unrelated stuff out. --- .../android/xw4/DictBrowseDelegate.java | 3 +- .../app/src/main/res/layout/dict_browser.xml | 126 +++++++++--------- 2 files changed, 66 insertions(+), 63 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java index 48970a3b6..635e68aa4 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java @@ -39,6 +39,7 @@ import android.widget.FrameLayout; import android.widget.ListView; import android.widget.SectionIndexer; import android.widget.Spinner; +import android.widget.TableLayout; import android.widget.TextView; import java.util.ArrayList; @@ -523,7 +524,7 @@ public class DictBrowseDelegate extends DelegateBase private void findTableRows() { - ViewGroup table = (ViewGroup)findViewById( R.id.config ); + TableLayout table = (TableLayout)findViewById( R.id.table ); int count = table.getChildCount(); int nFound = 0; for ( int ii = 0; ii < count && nFound < m_rows.length; ++ii ) { diff --git a/xwords4/android/app/src/main/res/layout/dict_browser.xml b/xwords4/android/app/src/main/res/layout/dict_browser.xml index 3b0193181..fb96b6e0d 100644 --- a/xwords4/android/app/src/main/res/layout/dict_browser.xml +++ b/xwords4/android/app/src/main/res/layout/dict_browser.xml @@ -45,64 +45,69 @@ android:paddingLeft="8dp" android:paddingRight="8dp" > - - - - - - - - - - - - - - - - - - - - - + android:background="#FF1F1F1F" + android:visibility="gone" + > + + + + + + + + + + + + + + + + + + + + + +