navigationbar

How to overlap navigation bar by adding view in swift?

我们两清 提交于 2021-02-18 18:21:47
问题 I want to make a custom side bar by adding a new view to the view controller, the side bar will be in the yellow color background. I want my side bar also to overlap the navigation bar/item (green background color) in my view controller. but the navigation bar/item seems can't be overlapped by my side bar view, it seems only overlap the main view. I tried to find the answer in stackoverflow, I find this Overlap navigation bar on ios 6 with other view, but the answer is on the Objective-C, I

Show Navigation Bar on Android KitKat after hiding it

余生颓废 提交于 2021-02-16 13:51:09
问题 In my app I want to let the user hide or show the Navigation Bar (back, home, menu). The System Bar (battery, wifi, notifications) should always be hidden. I hide the System Bar with this code: getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); requestWindowFeature(Window.FEATURE_NO_TITLE); And I am successfully hiding the Navigation Bar with these flags: final static int flagsHide = View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI

Why do HTML elements with CSS sizes measured in pixels appear slightly larger on iOS?

天涯浪子 提交于 2021-02-10 22:29:15
问题 I am working on a website with a navigation bar using a simple unordered list. The CSS values for each of these HTML elements are measured in px. I have been using Inspect Element in Google Chrome to measure the upper padding of the ul tag that centres the list and the padding of the a tag so that the link is the same height as the navigation bar. When I view the page on a laptop/desktop with a largish screen, everything looks good. The light grey "selected link" background lines up perfectly

Why do HTML elements with CSS sizes measured in pixels appear slightly larger on iOS?

牧云@^-^@ 提交于 2021-02-10 22:27:35
问题 I am working on a website with a navigation bar using a simple unordered list. The CSS values for each of these HTML elements are measured in px. I have been using Inspect Element in Google Chrome to measure the upper padding of the ul tag that centres the list and the padding of the a tag so that the link is the same height as the navigation bar. When I view the page on a laptop/desktop with a largish screen, everything looks good. The light grey "selected link" background lines up perfectly

Remove left space in title view xamarin forms

淺唱寂寞╮ 提交于 2021-02-08 10:08:01
问题 I had an issue in removing the extra left space in title view as shown in the image below please see the screenshot here Ps: I'm using tabbed page and that bar is the navigation title view. 回答1: Set the xml below in your Toolbar.xml of Android part. app:contentInsetLeft="0dp" app:contentInsetStart="0dp" app:contentInsetStartWithNavigation="0dp" Do not forget to add the namespace of app in your Toolbar.xaml . xmlns:app="http://schemas.android.com/apk/res-auto" And check the code below, it need

Remove left space in title view xamarin forms

情到浓时终转凉″ 提交于 2021-02-08 10:05:16
问题 I had an issue in removing the extra left space in title view as shown in the image below please see the screenshot here Ps: I'm using tabbed page and that bar is the navigation title view. 回答1: Set the xml below in your Toolbar.xml of Android part. app:contentInsetLeft="0dp" app:contentInsetStart="0dp" app:contentInsetStartWithNavigation="0dp" Do not forget to add the namespace of app in your Toolbar.xaml . xmlns:app="http://schemas.android.com/apk/res-auto" And check the code below, it need

SwiftUI hiding a navigation bar only when looking at ContentView

我是研究僧i 提交于 2021-01-29 20:19:34
问题 I have a Content file and am hiding the navigation bar because it takes up space and pushes elements down. One of the buttons in the ContentView redirects (using a navigation link) to another view. In this other view, the navigationBar is still hidden....for simplicity sake, I'll cut out some of the code from ContentView: //this is the view that looks "fine" (i.e. the navigation bar takes up no space) struct ContentView: View { @State private var isPresentedSettings = false var body: some

SwiftUI hiding a navigation bar only when looking at ContentView

蓝咒 提交于 2021-01-29 16:44:02
问题 I have a Content file and am hiding the navigation bar because it takes up space and pushes elements down. One of the buttons in the ContentView redirects (using a navigation link) to another view. In this other view, the navigationBar is still hidden....for simplicity sake, I'll cut out some of the code from ContentView: //this is the view that looks "fine" (i.e. the navigation bar takes up no space) struct ContentView: View { @State private var isPresentedSettings = false var body: some

Android: can't change NavigationIcon of v7 Support Toolbar

早过忘川 提交于 2021-01-29 05:07:47
问题 I'm developing an Activity using SDK v22 (I use targetSDKVersion 22 e minSdkVersion 18 for backward compatibility). My activity uses a navigationbar called by the AppBar. I would like change the NavigationIcon over the app bar but I couldn't. I tried with "app:navigationIcon" setting in XML layout and with setNavigationIcon method. Any idea? Here my Activity Class code: public class MyActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { @Override

SwiftUI: How to get .serif (New York) font in NavBarTitle

不想你离开。 提交于 2021-01-28 07:50:47
问题 is there any simple solution on how to use Apples New York font within the navigationBarTitle? I tried the following, but without success: .navigationBarTitle(Text("TestTitle").font(.system(.largeTitle, design: .serif))) It just defaults back to the default SF font. Any help is greatly appeciated! Thanks! 回答1: Here is a demo of possible solution. Tested with Xcode 12 / iOS 14 init() { UINavigationBar.appearance().largeTitleTextAttributes = [.font: UIFont(descriptor: UIFontDescriptor