materialdrawer

How to change the humberger icon in toolbar?

前提是你 提交于 2021-01-28 19:51:47
问题 I am using mikepenz drawer library but I want to change default humburger icon and back arrow icon with my own drawable icon. I have tried many times but I am unable to change the icon with my own icon . Can anyone help me ? new DrawerBuilder() .withActivity(this) .withTranslucentStatusBar(false) .withActionBarDrawerToggle(false) .withToolbar(toolbar) .addDrawerItems( //pass your items here ) .build(); CODE TO SHOW THE HUMBURGER ICON: getSupportActionBar().setDisplayHomeAsUpEnabled(false);

mikepenz material drawer can not load url for drawer item

馋奶兔 提交于 2019-12-25 06:38:42
问题 I use mikepenz material drawer too, but I met issue about loading URL to update drawer item icon, but still failed. I can not solve it. https://github.com/mikepenz/MaterialDrawer please help me. Thanks 回答1: As of the latest version of the MaterialDrawer it is now recommend to use the AbstractDrawerImageLoader and overwrite the specific methods. Using glide: //initialize and create the image loader logic DrawerImageLoader.init(new AbstractDrawerImageLoader() { @Override public void set

Android build mini navigation drawer with Icons

夙愿已清 提交于 2019-12-24 06:05:23
问题 I want to build a fixed mini nav drawer in android. will will always be visible an not extendable, with icons only. Something like https://github.com/mikepenz/MaterialDrawer Mini Drawer. I try used his library, but I can't figured out how to make it fixed. here is my code: private Drawer result = null; private MiniDrawer miniResult = null; result = new DrawerBuilder() .withActivity(this) .withToolbar(toolbar) .withTranslucentStatusBar(false) .addDrawerItems( new PrimaryDrawerItem().withName(

AngularDart Material Design 应用布局

↘锁芯ラ 提交于 2019-12-18 19:48:09
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 自述 应用布局 应用程序布局是一个样式,指令和组件系统,当它们一起使用时,可以提供材质外观和感知应用程序的层叠关系。 它根据材料规格提供应用栏,抽屉和导航样式。 构建 样式由包提供:angular_components/app_layout / layout.scss.css。 要在Angular组件中使用这些样式,只需将其添加为Component注解中的styleUrls值即可。 建议在任何特定于组件的样式之前添加样式,以便您可以根据需要轻松覆盖样式值。 @Component( selector: 'my-component', templateUrl: 'my_component.html', styleUrls: const [ 'package:angular_components/app_layout/layout.scss.css', 'my_component.scss.css']) class MyComponent {} 应用栏 应用栏具有以下类,可以一起使用来创建标题: class 描述 material-header 头部标题的容器元素。 shadow 材质标题上的修饰符可以将阴影应用于标题。 dense-header 使主要使用鼠标和键盘界面的应用栏更加密集。 material

How to set user avatar for Navigation drawer via url in android?

ⅰ亾dé卋堺 提交于 2019-12-13 16:02:20
问题 This is my header.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="@dimen/nav_header_height" android:background="@drawable/side_nav_bar" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android

MaterialDrawer How to customize mini drawer

安稳与你 提交于 2019-12-12 02:38:26
问题 I am trying to figured out how to customize MaterialDrawer by https://github.com/mikepenz/MaterialDrawer At moment the width is too big. I want to make width smaller with bigger icons to cover the spaces and change the background color. This App will be for tablet only. thanks. Here is my drawer: <LinearLayout android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/toolbar"> <RelativeLayout android:layout_width="match

MaterialDrawer library turns a translucent status bar into a opaque one

梦想与她 提交于 2019-12-12 02:27:28
问题 I am using MaterialDrawer library for adding a drawer to my activities. The activities must have translucent status bar. Like the picture below: This is the top part of my activity, when the library has not added to it yet. When I add a drawer using the library: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); DrawerMenu.addTo(this); } } And the