navigationbar

No resource found that matches the given name: attr 'android:windowTranslucentNavigation'

浪尽此生 提交于 2019-12-24 02:47:05
问题 I'm trying to make the Navigation Bar transparent on devices with 4.4. However, the SDK does not find the resource. Here is res/values-v19/styles.xml file: <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="Theme.Myactionbar" parent="@android:style/Theme.Holo.Light"> <item name="android:windowTranslucentStatus">true</item> <item name="android:windowTranslucentNavigation">true</item> </style> </resources> Here is an image with the installed packages: In the

How to make the Navigation bar not move when window scrolled down CSS?

試著忘記壹切 提交于 2019-12-24 00:33:41
问题 On my website, i got the background image to stay always centered and the navigation to always stay on the same spot horizontally, so it does not matter the HORIZONTAL size, it's always on the same spot i did that by using: #nav { list-style: none; position:fixed; right:50%; margin-right:155px; margin-top:220px; } My issue is with the VERTICAL part. When the Window is small vertically and it gets scrolled down, the menu moves with the page, an i don't want that. I wanted to make it stay up

Navigation bar and Status bar issue in iOS 7

柔情痞子 提交于 2019-12-23 05:41:42
问题 I have created an application using XIB without Status Bar before for iOS7 , now i need to add Status bar on my app and Status bar background color should same as Navigation bar background color. So i have tried like (In my info.plist ) : 1) Set View controller-based status bar appearance to NO 2) Set Status bar style to UIStatusBarStyleLightContent here is my code for App Delegate : [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; [[UIApplication

Application.Current.MainPage vs Navigation.PushAsync() vs Navigation.PushModalAsync()

蹲街弑〆低调 提交于 2019-12-22 08:02:12
问题 I'm developing an Xamarin Forms App (PCL) that does NOT need a back button. That app has three pages : a SplashScreenPage to load data, a LoginPage if the user needs to login and a RootPage which is a MasterDetailPage . I was wondering what was the best option to navigate between pages (to avoid memory leaks for example): First solution: Application.Current.MainPage = new ContentPage(); Second solution: Navigation.PushAsync(new NavigationPage(new ContentPage())); then NavigationPage

Unable To Hide Navigation Bar during AlertDialog/LoginDialog

点点圈 提交于 2019-12-22 05:26:14
问题 I'm attempting to hide the navigation bar globally through my app running Android 4.2.2 I have managed to use the following (admitadly hackish) method of implementing: getWindow().getDecorView().setSystemUiVisibility(8); Which successfully removes the Navigation bar (the fact it is hackish is perfectly fine - this is for a kiosk so it will only be installed on a limited number of devices) Now I'm attempting to remove the navigation bar in places other than my MainActivity - such as when it

Angular 6 Material: mat-tab-link be selected by underlining bar

北慕城南 提交于 2019-12-22 04:47:18
问题 I have a mat-tab-nav-bar navigation bar for my website, but the mat-tab-link blue underlining bar won't chase the active button. It just stays at the first button, and doesn't move. The buttons do turn into active state though in the sense that the background color changes, and they route well to their corresponding pages. Here's the app.component.ts : import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app

How do you keep the Navigation Bar hidden when opening dialogs?

扶醉桌前 提交于 2019-12-21 17:52:40
问题 I have a theme that has a Theme.AppCompat.Dialog parent. The thing is all my activities keeps the navigation bar hidden, but when a dialog is opened, it returns with a sometimes black and sometimes transparent background color. Is there a way to keep it hidden during opening dialogs? 回答1: I finally solved this by overriding the show() method of the custom dialog that I have. @Override public void show() { // Set the dialog to not focusable. getWindow().setFlags(WindowManager.LayoutParams.FLAG

White navigationbar with grey icons

北城余情 提交于 2019-12-21 05:49:23
问题 How can I get this style in my android app? White navigationbar and grey icons. An example is when opening the application drawer. I have tried many options but without success. the application minSdkVersion is 21, lollipop. I have seen this solution, but I have not managed to apply it: Status bar turns white and does not show content behind it Thanks in advanced. 回答1: For API >= 23 Try : getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); OR in style :

Adding a title to the left side of the navigation bar

旧街凉风 提交于 2019-12-20 10:36:13
问题 Is it possible to add a title to the left side of the navigation bar? I know how I can add a title in the center but when I try to add one to the left side I see nothing. This is the code I have: self.navigationItem.leftBarButtonItem?.title = "Elapsed Time: 0:00" Thank you for the help. 回答1: Try this code: let leftItem = UIBarButtonItem(title: "Title", style: UIBarButtonItemStyle.plain, target: nil, action: nil) leftItem.isEnabled = false self.navigationItem.leftBarButtonItem = leftItem More

Add Navigation Bar in UICollectionView in swift 4, iOS 11

别等时光非礼了梦想. 提交于 2019-12-20 03:12:40
问题 After upgrading the iOS 11 and swift 4(Xcode 9), I got lots of UI problem. :( The most unsolvable problem is Navigation Problem. I put the Navigation Bar in UICollectionView Controller . Navigation bar height does not show properly and however I write the code. I set navigation bar height "100". I write this code in ViewDidLoad(). if #available(iOS 11.0, *) { print("IOS 11 Screen") UINavigationBar.appearance().largeTitleTextAttributes = [ NSForegroundColorAttributeName: UIColor.white, ]