From 1688e42cf2208c7b5134fdeda9ecf9435865ecc5 Mon Sep 17 00:00:00 2001 From: veliymolfar Date: Tue, 3 Mar 2020 15:11:54 +0200 Subject: [PATCH] fix last item visibility in long list --- OsmAnd/res/layout/fragment_import.xml | 1 - .../net/osmand/plus/settings/ImportSettingsFragment.java | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/OsmAnd/res/layout/fragment_import.xml b/OsmAnd/res/layout/fragment_import.xml index b8fba79615..8a469f97d0 100644 --- a/OsmAnd/res/layout/fragment_import.xml +++ b/OsmAnd/res/layout/fragment_import.xml @@ -16,7 +16,6 @@ android:focusable="false" android:groupIndicator="@android:color/transparent" android:listSelector="@android:color/transparent" - android:paddingBottom="@dimen/dialog_button_ex_height" osmand:layout_behavior="@string/appbar_scrolling_view_behavior" /> = 21) { AndroidUtils.addStatusBarPadding21v(app, root); } + final int buttonsHeight = app.getResources().getDimensionPixelSize(R.dimen.dialog_button_ex_height); + expandableList.setPadding(0, 0, 0, buttonsHeight * 2); + expandableList.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() { + @Override + public boolean onGroupClick(ExpandableListView expandableListView, View view, int i, long l) { + expandableList.setPadding(0, 0, 0, buttonsHeight); + return false; + } + }); return root; }