mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 00:18:51 -05:00
Merge pull request #1163 from kentnek/dev-list-footer
Added a blank footer view to the list of keys
This commit is contained in:
commit
0954b02812
@ -169,6 +169,22 @@ public class KeyListFragment extends LoaderFragment
|
|||||||
mStickyList.setDrawingListUnderStickyHeader(false);
|
mStickyList.setDrawingListUnderStickyHeader(false);
|
||||||
mStickyList.setFastScrollEnabled(true);
|
mStickyList.setFastScrollEnabled(true);
|
||||||
|
|
||||||
|
// Adds an empty footer view so that the Floating Action Button won't block content
|
||||||
|
// in last few rows.
|
||||||
|
View footer = new View(getActivity());
|
||||||
|
|
||||||
|
int spacing = (int) android.util.TypedValue.applyDimension(
|
||||||
|
android.util.TypedValue.COMPLEX_UNIT_DIP, 72, getResources().getDisplayMetrics()
|
||||||
|
);
|
||||||
|
|
||||||
|
android.widget.AbsListView.LayoutParams params = new android.widget.AbsListView.LayoutParams(
|
||||||
|
android.widget.AbsListView.LayoutParams.MATCH_PARENT,
|
||||||
|
spacing
|
||||||
|
);
|
||||||
|
|
||||||
|
footer.setLayoutParams(params);
|
||||||
|
mStickyList.addFooterView(footer, null, false);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Multi-selection
|
* Multi-selection
|
||||||
*/
|
*/
|
||||||
@ -909,5 +925,4 @@ public class KeyListFragment extends LoaderFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user