navigationbar

Color of status bar does not change as my navigationbar

拈花ヽ惹草 提交于 2019-12-11 15:28:36
问题 I bumped into an odd problem. Suddenly the color of my status bar does not change color to the same as my navigationbar in my tabbarcontroller. I've tried setting the color of the navigationbar self.navigationController!.navigationBar.barTintColor = UIColor(red: 57, green: 79, blue: 116) self.navigationController?.navigationBar.tintColor = UIColor.white self.navigationController?.navigationBar.isTranslucent = false self.navigationController?.navigationBar.titleTextAttributes =

keeping highlighted tab in navigation bars

纵然是瞬间 提交于 2019-12-11 13:44:50
问题 thanks for your time. I've been having a lot of trouble trying to highlighting the "active" tab on a navbar i am using. I'm trying to do this through CSS but the problem arises when I change pages. I will add the following code: function updateMenu(num) { var menuCode = ' <ul id="menu"> ' + ' <li><a href="software/menu.php" onclick="updateMenu(1);"'; if(num == 1){menuCode +=' class="current"';} menuCode += '>Software</a></li>' + ' <li><a href="users/menu.php" onclick="updateMenu(2);"'; if(num

Android. Hiding navigation bar sometimes fails

泄露秘密 提交于 2019-12-11 11:08:31
问题 The code below intended to toggle navigation bar visibility every time user clicks on screen. And it works fine except one scenario - very fast tap on screen. In some cases, when user clicks really fast, navigation bar stays on screen despite onClick event triggered. Here is the code of MainActivity : package com.example.ui_test; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android

How do I change the color of the navigation bar icons? (Android studio)

喜夏-厌秋 提交于 2019-12-11 08:52:57
问题 To avoid confusion as to what the navigationbar actually is, here's a As you can see, I've added a new color instead of the standard black color using: <item name="android:navigationBarColor">@color/colorBackground</item> But the icons are barely visible now, so I would like to change them into being black, or at least darker. I have searched SO and the webb but came up empty handed. Any ideas? 回答1: You cannot change the color of the buttons yourself. However you can try to set the

“Animation” in a navigation bar with Bootstrap 3

懵懂的女人 提交于 2019-12-11 06:57:56
问题 Below is my code and I'm trying to recreate this effect: (http://hideo-html5-css3-bootstrap-website-template.little-neko.com/files/index.html) [When you scroll down the navigaiton bar changes to half size and with some transparency or something like that.] Any ideas to remake it? Code: http://pastebin.com/r0pS4AYD Ps: My code has nothing special and I just want a point/direction to make it. 回答1: When the user scolls to an specific position, or in your case when he begins to scroll, you can

custom leftbarbuttonItem not showed in ios 11

送分小仙女□ 提交于 2019-12-11 06:53:44
问题 i had a problem with a custom LeftBarButtonItem when i clicked for the first time it showed the custom leftbarbutton but in the second time it's hidden !!!! this problem appear only in the ios 11 but in ios10 it's worked perfectly. Class A: - (void)setBackButton { if (_backTabBarItem == nil) { UIButton *backButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 30, 30)]; [backButton setImage:[UIImage imageNamed:@"icon_back"] forState:UIControlStateNormal]; [backButton setTitleColor:

android Q content above navigation bar

…衆ロ難τιáo~ 提交于 2019-12-11 06:27:43
问题 we are targeting our application at api 28 and draw content under status bar , for this we are using following flag and styles : window.addFlags(FLAG_LAYOUT_NO_LIMITS) <item name="windowNoTitle">true</item> <item name="android:windowTranslucentStatus">true</item> <item name="android:windowTranslucentNavigation">false</item> <item name="android:windowDrawsSystemBarBackgrounds">false</item> everything is okay under Q ( content lay out under status bar and above navigation bar). In android Q ,

Overlap navigation bar on ios 6 with other view

谁说胖子不能爱 提交于 2019-12-11 06:24:18
问题 For an iphone project with an "unique" design (with which i am not happy at all) I need to draw a custom view which partially overlaps the navigation bar of a controller in a UINavigationController. Target is iphone/ios 6 with a fixed device orientation (portrait). My currents solution is to disable the navigation bar programatically via self.navigationController.navigationBar.hidden = YES; in viewDidLoad of my controller and to draw a "fake" navigation bar and paint over this. This leads to

How can I fix the navigationbar title position in ios11

a 夏天 提交于 2019-12-11 06:06:03
问题 Here is the code [self presentViewController:viewController animated:YES completion:nil]; viewController is a UIImagePickerController When I presented in viewController , navigationbar title shifted. Please check the image. Does anyone know how can I fix it? 回答1: Using the following method to customize and change navigation bar button - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {

iOS Different navigation bar color on different pages

我是研究僧i 提交于 2019-12-11 05:29:54
问题 How would I change the navigation bar color based on what page the user is on? I would like to do something similar to what the Vine app uses in the explore category when the user taps a certain category and it turns into the color of the button in a fading format. Any thoughts on how to do this? 回答1: You can try to set the navigation bar tint color in the prepareForSegue: method (in your controller whit the four buttons) like this - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id