fix last item visibility in long list

This commit is contained in:
veliymolfar 2020-03-03 15:11:54 +02:00
parent 0535b3a401
commit 1688e42cf2
2 changed files with 9 additions and 1 deletions

View file

@ -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" />
<LinearLayout

View file

@ -127,6 +127,15 @@ public class ImportSettingsFragment extends BaseOsmAndFragment
if (Build.VERSION.SDK_INT >= 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;
}