fix last item visibility in long list
This commit is contained in:
parent
0535b3a401
commit
1688e42cf2
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue