Search

Change drawer width in sketchware

Instagram Follow on Instagram
To change the width of a drawer, follow these steps:


01.Start a new project on sketchware.

02.Now add more blocks as shown in the image below.

-You must enter this source code, source direct block.

LinearLayout _nav_view = (LinearLayout) findViewById(R.id._nav_view);

android.support.v4.widget.DrawerLayout.LayoutParams params = (android.support.v4.widget.DrawerLayout.LayoutParams)_nav_view.getLayoutParams();

params.width = (int)getDip((int)_num);

params.height = android.support.v4.widget.DrawerLayout.LayoutParams.MATCH_PARENT;

_nav_view.setLayoutParams(params);

03.Now on create activity or on button, on oneClick, create one more block as in the image below.

04.Edit Drawer_main custom view.

05.now save and run.


I helped you with some help, now give me some help. Try this one
http://evassmat.com/8jO7
http://fainbory.com/3o8J


Here's more help. If you want to post your ad or share Adlink and earn money, go to Adfly with this link.
https://join-adf.ly/21268483


share this post



Post a Comment

0 Comments