navigationbar

Why navigation bar is appearing in fullscreen apps when clicked on popup menu

安稳与你 提交于 2019-12-04 07:38:47
I have a fullscreen app: MainActivity.java: public class MainActivity extends AppCompatActivity { @TargetApi(Build.VERSION_CODES.KITKAT) private void removeControlBar(){ View decorView = getWindow().getDecorView(); decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY); } @Override public void onResume(){ super.onResume(); removeControlBar(); } @Override protected void onCreate(Bundle

on single tap UIBarButton display toast and on double tap back action need to perform

北战南征 提交于 2019-12-04 06:46:28
问题 I have an UIBarButton in navigation bar, while clicking on back button (first tap) i need to display toast (like warning), on double tap i need to exit from the page in swift, Following codes used for displaying toast, its working fine, let toastLabel = UILabel(frame: CGRect(x: 20, y: self.view.frame.size.height-100, width: 350, height: 35)) toastLabel.backgroundColor = UIColor.black.withAlphaComponent(0.6) toastLabel.textColor = UIColor.white toastLabel.textAlignment = .center; toastLabel

Android Navigation Bar overlaying my view

♀尐吖头ヾ 提交于 2019-12-04 03:32:40
I have an issue with Android Navigation Bar on devices like Nexus etc. Simply at all devices, which do not have the hardware menu button. Let me explain the issue in more details. I have an application where there are 3 parts. Content, ActionBar and bottom panel with a SeekBar. ActionBar and bottom panel with a SeekBar are overlaying the content. Everytime I click on the content the ActionBar and bottom panel with a SeekBar disappear. Which works exactly the way it has to work. Here is a fragment of a code I use for hiding system UI: if (android.os.Build.VERSION.SDK_INT >= android.os.Build

Xamarin Forms Action Bar

做~自己de王妃 提交于 2019-12-04 00:50:25
Is there any way to remove Action Bar from Xamarin Forms - Portable (Xaml) in android? I want to remove less than sign (" < ") and the application icon which appears above the content page of Xamarin Forms xaml. You can remove navigation bar from Xaml using Xamarin.Forms using below code. NavigationPage.SetHasNavigationBar (this, false); Where this stands for current page / form instance. Hope this helps! NavigationPage.SetHasNavigationBar(this, false); The above mentioned is not the good solution. By using this code it disable the NavigationBar present in the page. We can achieve the real

How to disable navigationBar animation?

随声附和 提交于 2019-12-03 21:23:34
I have two UITableViewControllers such that when I click next on the first UITableViewController, the second UITableViewController gets pushed on the navigation stack and animates the transition like normal. I'd like to make it so when I push next, only the views animate, and the navigation bar doesn't (stays the same). I've gotten very close to doing this with the code below: - (void) viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; CATransition *navTransition = [CATransition animation]; navTransition.duration = .5; navTransition.timingFunction = [CAMediaTimingFunction

How to change the size of titleView in navigation bar. Because there's a gap between titleView and backButton in navigationBar

∥☆過路亽.° 提交于 2019-12-03 20:05:05
问题 I've added a search bar to my navigation.titleView self.navigationItem.titleView = searchBar There's also a BackBarButtonItem with title = "" self.navigationItem.backBarButtonItem?.title = "" But then there're gap between Back Button and SearchBar , like this: I Think that the gap appears here because there's space for title of backBarButtonItem (because my title is null "" but the space still there) So I want to ask how to omit that gap? I want to make my searchBar nearer my backBarIcon

How to hide React Native NavigationBar

穿精又带淫゛_ 提交于 2019-12-03 15:44:19
问题 I have NavigatorIOS under Navigator and would like to hide Navigator's NavigationBar to use NavigatorIOS's bar. Is there any way to do this? This is screenshot that I've seen. I need backend of NavigatorIOS.. The structure that I want to build is the following: ├── NavigatorRoute1 │ ├── NavigatorIOSRoute1 │ ├── NavigatorIOSRoute2 │ └── NavigatorIOSRoute3 └── NavigatorRoute2 The code that I have is the below. (Basically obtained from UIExplore examples. Navigator render: function(){ return (

iOS 11 - UINavigationItem titleView when using Large Titles mode

☆樱花仙子☆ 提交于 2019-12-03 13:21:09
问题 I'm trying to understand either it's a bug or it's the expected behavior. On iOS 10 and earlier we could set up a custom title, using navigationItem.titleView . On iOS 11 , when setting our navigationItem.largeTitleDisplayMode = .always and setting navigationItem.titleView = <Some cool UIButton> it's displaying both the normal navigation title bar and the large navigation title. Illustration: To sum up: How can we use custom titleView on our Large Navigation Title? EDIT : This is the expected

How to put a badge on customized UIBarButtonItem

荒凉一梦 提交于 2019-12-03 10:55:25
I have a navigation bar with two buttons, one is a back button the other a chat symbol. I write this code like this: UIBarButtonItem *_btn=[[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"back.png"] style:UIBarButtonItemStylePlain target:self action:@selector(goBackToPreviousView)]; self.navigationItem.leftBarButtonItem=_btn; self.navigationItem.leftBarButtonItem.tintColor = [UIColor blackColor]; UIBarButtonItem *_btn2=[[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"chat.png"] style:UIBarButtonItemStylePlain target:self action:@selector(startChat)]; self.navigationItem

Window animation overlaps navigation bar on Android 5.0

旧时模样 提交于 2019-12-03 07:10:22
问题 I'm implementing the Material Design bottom sheet design pattern in my app using a custom subclass of Dialog . The dialog is gravitated to the bottom of the screen and uses an y-translation window enter animation: <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:interpolator/decelerate_cubic"> <translate android:fromYDelta="100%" android:toYDelta="0" android:duration="250" /> </set> On earlier versions of Android, this looks great (if I say so