toolbar

How to catch navigation icon click on toolbar from fragment?

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a dialog fragment in which I have toolbar in layout. I want to make back button(Navigation Icon) working in toolbar and exit the fragment when clicked. But I am unable to catch the click event on the toolbar's navigation icon in the (dialog)fragment. Here is how I am getting toolbar : toolbar = (Toolbar) rootView.findViewById(R.id.toolbar); toolbar.setNavigationIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha); toolbar.setTitle(itemType); ((AppCompatActivity)getActivity()).setSupportActionBar(toolbar); Here is my layout file for the

TinyMCE Toolbar location

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can the Toolbar be displayed on a defined Place (div with specific id)? I tried theme_advanced_toolbar_location : "external" and setting the position of the "mceExternalToolbar" (like suggested here: TinyMCE - external toolbar position ) but don't really like this solution since it uses fixed positioning.... Is there a option how to where to place the div. The docu says for theme_advanced_toolbar_location: .. adds the toolbar to a DIV element and sets the class of this DIV to "mceExternalToolbar". ... but not if you can change the div.

Toolbar : overflow menu button always showing

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Problem : after updating the support library and using Toolbars, the overflow menu button is always showing on devices with and without hardware menu button What I Need : I want the overflow menu button to show only when the device has no hardware menu button menu.xml <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" > <item android:id="@+id/action_settings" app:showAsAction="never" android:title="@string/action_settings"/> <item android:id="@+id/import_data" app:showAsAction

ReportViewer - modify toolbar?

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Do anyone have good ideas of how to modify the toolbar for the WinForms version of the ReportViewer Toolbar? That is, I want to remove some buttons and varius, but it looks like the solution is to create a brand new toolbar instead of modifying the one that is there. Like, I had to remove export to excel, and did it this way: // Disable excel export foreach ( RenderingExtension extension in lr . ListRenderingExtensions ()) { if ( extension . Name == "Excel" ) { //extension.Visible = false; // Property is readonly... FieldInfo fi =

android.widget.Toolbar cannot be converted to android.support.v7.widget.Toolbar

匿名 (未验证) 提交于 2019-12-03 02:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a toolbar.xml: <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/color_primary" android:elevation="4dp" android:theme="@style/ThemeOverlay.AppCompat.Dark" /> I have an include tag to another of my activity layouts: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"

Fix bottom bar in CoordinatorLayout

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a CoordinatorLayout which contains AppBarLayout and a FrameLayout which contains fragments. One of this fragment contains a TabLayout at Top, one List trough RecyclerView and at the Bottom one "homemade" toolbar. The AppBarLayout is configured with app:layout_scrollFlags="scroll|enterAlways" My problem is that both "toolbars" are hiding when scroll, the AppBarLayout and my "homemade" toolbar at the bottom. This is the current behaviour I would like to fix the bottom "homemade" toolbar to keep visible but I can't achieve it. This is

How to make a responsive nav-bar using angular material 2?

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to create a navigation bar using angular material 2 that collapses in small screens like mobile devices and tablets. I was only able to find md-button but not md-menu-bar as was in angular material 回答1: Here is what I used to build my responsive nav-bar using Angular2+ Material 2 and flex-layout in angular-cli app. (Please visit Install Angular Material and Angular CDK ) 1) Install flex-layout npm install @angular / flex - layout - save 2) Include flex-layout in your app.module.ts import { FlexLayoutModule } from "

iOS 11 &amp; iPhone X: UINavigationBar&#039;s toolbar spacing incorrect when embedded in UITabBarController

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am experiencing an annoying problem testing the newest iOS 11 on the iPhone X simulator. I have an UITabBarController and inside each tab there is a UINavigationController , each UINavigationBar has defined also a bottom toolBar ( setToolbarHidden: ), and by default they show up at the bottom, just over the tabBar. It has been working fine so far and seems to work fine also in the upcomming iPhone 8 and 8 Plus models, but on the iPhone X there is a gap between the toolBar and the tabBar. My guess is that the toolBar doesn't realize that is

Android Material Design profile page [closed]

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm new to android and material design. Could some one please help me point to any websites that help me build a profile screen as below as per Google's material design guidelines? 回答1: I was about to write a blog on this screen briefing about CoordinatorLayout . Anyways.. You can have my fully working code.: activity_scrolling.xml: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools=

More than 1 rightBarButtonItem on navigation bar

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to have two rightBarButtonItems on navigation bar. One for Edit and the other for Add. Obviously I can't make it using Interface Builder. Does anybody know how to do it programmatically? Thanks! 回答1: This is now included in iOS 5 and is called rightBarButtonItems, notice the plural Here is the text from the apple docs : rightBarButtonItems An array of custom bar button items to display on the right side of the navigation bar when the receiver is the top navigation item. @property(nonatomic, copy) NSArray *rightBarButtonItems