Skip to content

Commit 760f5ee

Browse files
committed
* add option to add stickyFooter
1 parent 1eaa9c2 commit 760f5ee

File tree

1 file changed

+9
-2
lines changed
  • library/src/main/java/com/mikepenz/materialdrawer

1 file changed

+9
-2
lines changed

library/src/main/java/com/mikepenz/materialdrawer/Drawer.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,17 @@ public Result build() {
383383
mListView.setPadding(0, mActivity.getResources().getDimensionPixelSize(R.dimen.tool_bar_top_padding), 0, 0);
384384
}
385385

386-
slider.addView(mListView, new ViewGroup.LayoutParams(
386+
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
387387
ViewGroup.LayoutParams.MATCH_PARENT,
388388
ViewGroup.LayoutParams.MATCH_PARENT
389-
));
389+
);
390+
params.weight = 1f;
391+
mSliderLayout.addView(mListView, params);
392+
}
393+
394+
//sticky footer view
395+
if (mStickyFooterView != null) {
396+
mSliderLayout.addView(mStickyFooterView);
390397
}
391398

392399
// set the header (do this before the setAdapter because some devices will crash else

0 commit comments

Comments
 (0)