navigationbar

How can I remove border bottom of UINavigationBar?

試著忘記壹切 提交于 2020-01-23 19:15:05
问题 I want to remove the bottom border from UINavigationBar , but I don't know how to remove it. 回答1: Actually, that is the shadow of the navigation bar. To get rid of it, just set it to an empty image: navigationController.navigationBar.shadowImage = UIImage() Note: You must set it to an empty UIImage() ; nil won't work for some reason. 回答2: You need to set a custom shadow image to show instead of the default one. Note: a custom background image must also be set. navController.navigationBar

NavigationBarTitle color change for watchOS in SwiftUI

时光怂恿深爱的人放手 提交于 2020-01-13 18:30:14
问题 In the image above id like to change -02:49 to a color such as Color.blue I've tried: struct ContentView: View { var body: some View { PlayerView().accentColor(Color.blue) } } and I've also tried adding it in the actual PlayerView as follows: struct PlayerView: View { var body: some View { VStack{ .... }.navigationBarTitle(Text(“-2:49”)) .accentColor(.blue) } } I've also tried: struct PlayerView: View { var body: some View { VStack{ .... }.navigationBarTitle(Text(“-2:49”).foregroundColor(

Showing content behind status and navigation bar

怎甘沉沦 提交于 2020-01-12 16:49:24
问题 This looks like a duplicate question but I am not able to do it. I want complete transparent(not translucent) status bar as well as navigation bar and want the content to appear behind them. activity_details.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"

Navigation buttons hiding Windows Phone 8.1

十年热恋 提交于 2020-01-11 05:16:26
问题 I'm building a Windows Phone 8.1 application, and I'm facing the following problem. There are phones that don't have hardware navigation buttons(those for back, home and search). Those phones will shrink whole UI when virtual navigation bar appears, I don't want that to happen. So what can I do to prevent this? Internet seams not to know the answer(or I haven't searched good enough). This is what I mean when I say virtual navigation buttons. 回答1: You need to set the ApplicationViewBoundsMode

Draw bitmaps on top of the Navigation bar in Android

一世执手 提交于 2020-01-11 03:33:06
问题 In my application, I need to draw a bitmap on top of all the apps running. I created a view which is invisible and overlays on top of all the apps. with this overlay view I can draw bitmaps at the given position , But I am unable to draw the bitmap on top of the Navigation Bar.I used the following layout parameters. WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY, WindowManager.LayoutParams.FLAG_FULLSCREEN |WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |WindowManager.LayoutParams.FLAG_NOT

Android 8 - How to know what side the Navigation Bar is when going from LANDSCAPE to REVERSE_LANDSCAPE?

牧云@^-^@ 提交于 2020-01-06 05:51:12
问题 In Android 8, when the phone goes to LANDSCAPE the navigation will be on the right side of the screen, and when its in REVERSE_LANDSCAPE , it'll be on the left side. What I did to find out which side of the screen it is on was to have the root View of my activity and check it's size and position in these ways: if (rootView.width == deviceScreenWidth) { // device is tablet and the navigation bar is at the bottom, or // its a samsung device with no navigation bar } else if (rootView

Xcode 10 NavigationBar icons not appearing on some devices

本秂侑毒 提交于 2020-01-05 07:08:10
问题 I am using Xcode 10 today, during development and testing I noticed that icons did not appear in iPhone 5s, iPhone 6s, iPhone 7s, just work on iPhone X, I set this icons by using xCode storyboard , I attached images to make my question more clear. Thanks. * please check the NavigationBar * iPhone 6s iPhone X 回答1: Unfortunately, this bug with xCode 10, sometimes icons not appears not only in Navigation in all the app views, but some people also said: "The fix was setting color profile to sRGB.

How to fix the position of bottom navigation view menu items?

这一生的挚爱 提交于 2020-01-04 07:47:12
问题 I have a bottom navigation view in my home page, there are four menu items. On onCreate(), the four menu items are not in fixed position, the label is shown only when it is tapped on and it changes the position. I want them to remain fixed in position with their labels visible, not changing position upon touching. Here are my xml codes: <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"

Unable to remove Navigation Bar - Android Tablet: 4.2.2

淺唱寂寞╮ 提交于 2020-01-03 05:15:22
问题 I'm attempting to remove the navigation bar programatically using the most commonly found method on the internet - however the navigation bar continues to appear. I've debugged the method and it is not throwing an exception - so I'm really not sure why we can't seem to hide the Navigation Bar using the following code: (any suggestions are greatly appreciated) Source: try { Process proc = Runtime.getRuntime().exec(new String[]{"su","-c","service call activity 42 s16 com.android.systemui"});

iOS 7: How to set UIBarButtonItem backButtonBackgroundImage for UIControlStateHighlighted?

☆樱花仙子☆ 提交于 2020-01-02 00:53:08
问题 I am trying to set the background image for back button in normal and highlighted states. - (void)configureBackButtonInNavigationItem:(UINavigationItem *)item { UIBarButtonItem *backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"back" style:UIBarButtonItemStyleBordered target:nil action:NULL]; [backBarButtonItem setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]} forState:UIControlStateNormal]; [backBarButtonItem setTitleTextAttributes:@