From 9ccc4b0ff60a3e7b1f54aa844199d4aa56e24a2f Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Tue, 2 Apr 2019 16:09:25 +0200 Subject: [PATCH] DirectionsActivity: Move form out of the away (and return quickly) if query history is scrolled. --- oeffi/build.gradle | 1 + oeffi/res/layout/directions_content.xml | 86 ++++++++++--------- .../oeffi/directions/DirectionsActivity.java | 49 ++++++++++- 3 files changed, 94 insertions(+), 42 deletions(-) diff --git a/oeffi/build.gradle b/oeffi/build.gradle index 7edd3e2..96c8f1e 100644 --- a/oeffi/build.gradle +++ b/oeffi/build.gradle @@ -13,6 +13,7 @@ dependencies { compile 'de.schildbach.wallet:integration-android:2.0' compile 'androidx.annotation:annotation:1.0.2' compile 'androidx.recyclerview:recyclerview:1.0.0' + compile 'androidx.coordinatorlayout:coordinatorlayout:1.0.0' compile 'androidx.drawerlayout:drawerlayout:1.0.0' compile 'androidx.core:core:1.0.1' compile 'com.squareup.okhttp3:okhttp:3.12.1' diff --git a/oeffi/res/layout/directions_content.xml b/oeffi/res/layout/directions_content.xml index c9876e6..ba405e0 100644 --- a/oeffi/res/layout/directions_content.xml +++ b/oeffi/res/layout/directions_content.xml @@ -32,57 +32,65 @@ android:text="@string/directions_connectivity_warning" android:visibility="gone" /> - - - - - - + android:layout_weight="1" > - + android:layout_height="wrap_content" + android:layout_gravity="top" + android:background="@android:color/white" + android:elevation="3dp" > - + + - + android:layout_height="match_parent" > + + + + + android:orientation="vertical" > -