toolbar

Is there a standard for toolbar icon dimensions based on DPI?

夙愿已清 提交于 2020-02-25 13:17:49
问题 I have a 32 pixel toolbar: Is there a known standard for using different pixel heights for the toolbar based on different DPI configurations? If so, can you please point in in the right direction of this resource? The only thing I have located about this concept is here and I quote the example pseudo code: UINT smallToolbarID; if ( DPI == smaller ) { smallToolbarID = 16x16; largeToolbarID = 32x32 } else if ( DPI == medium ) { smallToolbarID = 20x20; largeToolbarID = 40x40 } else if ( DPI ==

Is there a standard for toolbar icon dimensions based on DPI?

空扰寡人 提交于 2020-02-25 13:17:25
问题 I have a 32 pixel toolbar: Is there a known standard for using different pixel heights for the toolbar based on different DPI configurations? If so, can you please point in in the right direction of this resource? The only thing I have located about this concept is here and I quote the example pseudo code: UINT smallToolbarID; if ( DPI == smaller ) { smallToolbarID = 16x16; largeToolbarID = 32x32 } else if ( DPI == medium ) { smallToolbarID = 20x20; largeToolbarID = 40x40 } else if ( DPI ==

Extjs - Toolbar button menu dropdown with submenus. It's possible?

前提是你 提交于 2020-02-23 09:11:29
问题 I've already done a toolbar with buttons that have a dropdown menu but I need more submenu levels. It's possible to do that? Example: toolbarbutton -> menu 1 lv 1 menu 2 lv 1 menu 3 lv 1-> submenu 1 lv 2 submenu 2 lv 2 menu 4 lv 1 and so on... 回答1: Have a look at this example! You can achieve using the Ext.menu.Menu class. Here is an Example: { text: 'Main Menu', menu: { xtype: 'menu', items: [{ text: 'Menu One', iconCls: 'edit' }, { text: 'Menu Two', menu: { xtype: 'menu', items: [{ text:

Extjs - Toolbar button menu dropdown with submenus. It's possible?

拈花ヽ惹草 提交于 2020-02-23 09:10:46
问题 I've already done a toolbar with buttons that have a dropdown menu but I need more submenu levels. It's possible to do that? Example: toolbarbutton -> menu 1 lv 1 menu 2 lv 1 menu 3 lv 1-> submenu 1 lv 2 submenu 2 lv 2 menu 4 lv 1 and so on... 回答1: Have a look at this example! You can achieve using the Ext.menu.Menu class. Here is an Example: { text: 'Main Menu', menu: { xtype: 'menu', items: [{ text: 'Menu One', iconCls: 'edit' }, { text: 'Menu Two', menu: { xtype: 'menu', items: [{ text:

Extjs - Toolbar button menu dropdown with submenus. It's possible?

放肆的年华 提交于 2020-02-23 09:10:19
问题 I've already done a toolbar with buttons that have a dropdown menu but I need more submenu levels. It's possible to do that? Example: toolbarbutton -> menu 1 lv 1 menu 2 lv 1 menu 3 lv 1-> submenu 1 lv 2 submenu 2 lv 2 menu 4 lv 1 and so on... 回答1: Have a look at this example! You can achieve using the Ext.menu.Menu class. Here is an Example: { text: 'Main Menu', menu: { xtype: 'menu', items: [{ text: 'Menu One', iconCls: 'edit' }, { text: 'Menu Two', menu: { xtype: 'menu', items: [{ text:

Material Design学习(二)——滑动菜单

瘦欲@ 提交于 2020-02-20 17:58:03
拷贝一份昨天的项目,并改名 day20_SlidingMenu 一、 DrawerLayout 抽屉布局 DrawerLayout 是个抽屉布局,可以放入两个子控件。第一个子控件是主屏幕显示的内容,第二个子控件是滑动菜单中显示的内容 主布局: <?xml version="1.0" encoding="utf-8"?> < androidx.drawerlayout.widget.DrawerLayout xmlns: android = " http://schemas.android.com/apk/res/android " xmlns: app = " http://schemas.android.com/apk/res-auto " android: id = " @+id/drawer_layout " android: layout_width = " match_parent " android: layout_height = " match_parent " > < FrameLayout android: layout_width = " match_parent " android: layout_height = " match_parent " > < androidx.appcompat.widget.Toolbar android: id = " @

Toolbar title with custom view

偶尔善良 提交于 2020-02-20 08:09:04
问题 I am attempting to show both a title, using setTitle and a custom view in my toolbar. I am not treating it as an actionbar, instead as nothing more than a view. I am adding both the titles and custom view in Java toolbar = (Toolbar) view.findViewById(R.id.toolbar); if (title != null) { toolbar.setTitle(title); toolbar.setTitleTextColor(getResources().getColor(android.R.color.white)); } if (subtitle != null) { toolbar.setSubtitle(subtitle); toolbar.setSubtitleTextColor(getResources().getColor

blog主题——樱花

北城余情 提交于 2020-02-14 18:19:36
贮存一下,blog代码 QAQ 页脚html <!--live2d--> <script src="https://blog-static.cnblogs.com/files/zouwangblog/autoload.js"></script> <!--live2dend--> <!--放大图片--> <link rel="stylesheet" type="text/css" href="https://blog-static.cnblogs.com/files/zouwangblog/zoom.css"> <script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.2.0/js/transition.js"></script> <script src="https://blog-static.cnblogs.com/files/zouwangblog/zoom.js"></script> <script type='text/javascript'>$('#cnblogs_post_body img').attr('data-action', 'zoom');</script> <!-

安卓开发笔记——打造属于自己的博客园APP(二)

ぐ巨炮叔叔 提交于 2020-02-13 02:12:50
  最近事情比较多,博客更新又落下了,平时有个习惯,喜欢睡前看看博客园里博友的文章,但一直感觉APP市场上下载下来的博客园客户端用起来并不是很舒服,近来发现博客园也有对外开放的数据接口,所以打算自己写个博客园的客户端。   近来谷歌推出了一套全新的UI设计规范——Material Design,不清楚的朋友看看《 Material design非官方中文指导手册 》,相比之前谷歌在Android Holo风格上平平淡淡的表现不同,Material Design现在是被Google所比较重视的。在推出这门全新设计语言后,谷歌上自家的应用很快就使用Material Design全新设计了,如Play商店,Google Map,Google+等等。   打算赶一下潮流,紧跟谷歌的步伐遵循Material Design设计规范开发这个APP,也刚好让自己熟悉下Android5.0后的新特性。这个APP会慢慢做下来,逐步完善所需功能,我也不确定会写几篇文章,反正有空闲的时候就拿出来写写吧。    初步打算实现用户的登陆,分类查看文章内容,新闻内容,包括用户信息的浏览,关注,偏好文章的收藏以及离线阅读功能,大家如果有什么好的建议,可以在文章评论给我留言,虚心请教。 好了,言归正传,先来看下今天要实现的效果:(UI主框架的搭建) 如果在过去,我们要实现上图的效果

flask-debugtoolbar

有些话、适合烂在心里 提交于 2020-02-12 11:53:09
作用:用于做调试用。 官网 http://www.pythondoc.com/flask-debugtoolbar/index.html 安装 pip install flask-debugtoolbar 配置 from flask_debugtoolbar import DebugToolbarExtension app = Flask(__name__) toolbar = DebugToolbarExtension() toolbar.init_app(app) 使用 只要app.debug = True在模板中会显示调试工具栏! 来源: https://www.cnblogs.com/liuweida/p/12298203.html