From 8420e628e196490a1817a9ba2058f4b331c6fdbf Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Thu, 31 Dec 2015 21:30:54 +0100 Subject: [PATCH] DroidFish: Improved handling of movelist scrolling when navigation bar is enabled/disabled and when the analysis view gets smaller/larger. --- DroidFish/res/layout-land/main.xml | 30 +++++++++--------- DroidFish/res/layout/main.xml | 30 +++++++++--------- DroidFish/res/layout/main_left_handed.xml | 30 +++++++++--------- .../org/petero/droidfish/MoveListView.java | 9 +++++- .../petero/droidfish/MyRelativeLayout.java | 31 +++++++++++++++++++ .../org/petero/droidfish/MyScrollView.java | 5 ++- 6 files changed, 86 insertions(+), 49 deletions(-) create mode 100644 DroidFish/src/org/petero/droidfish/MyRelativeLayout.java diff --git a/DroidFish/res/layout-land/main.xml b/DroidFish/res/layout-land/main.xml index 9ab591d..e0da02e 100644 --- a/DroidFish/res/layout-land/main.xml +++ b/DroidFish/res/layout-land/main.xml @@ -75,10 +75,23 @@ android:fontFamily="monospace" android:typeface="monospace" android:textSize="12sp"/> - + + + - - - - + diff --git a/DroidFish/res/layout/main.xml b/DroidFish/res/layout/main.xml index 80d0206..651326a 100644 --- a/DroidFish/res/layout/main.xml +++ b/DroidFish/res/layout/main.xml @@ -69,10 +69,23 @@ android:layout_height="32dp"> - + + + - - - - + diff --git a/DroidFish/res/layout/main_left_handed.xml b/DroidFish/res/layout/main_left_handed.xml index e76932a..6e2f7f4 100644 --- a/DroidFish/res/layout/main_left_handed.xml +++ b/DroidFish/res/layout/main_left_handed.xml @@ -70,10 +70,23 @@ android:fontFamily="monospace" android:typeface="monospace" android:textSize="12sp"/> - + + + - - - - + 0) height = Math.min(height, parentHeight * 3 / 4); }