Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float offset = 0.22f * getResources().getDisplayMetrics().widthPixels;
- float width = getResources().getDisplayMetrics().widthPixels - offset;
- DrawerLayout.LayoutParams params =
- (android.support.v4.widget.DrawerLayout.LayoutParams) navView.getLayoutParams();
- params.width = (int) width;
- navView.setLayoutParams(params);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement