Activities Navigation Drawer - android-activity

I'm trying to create a global navigation drawer in my application.
I need the navigation drawer to move from activity to activity.
I found a great idea (here, on stackoverflow) to make a base activity that manages the navigation drawer and extend the base activity in my other activities.
I tried to do it but when I'm choosing activity the application crashes.
this is the cause:
Caused by: java.lang.IllegalArgumentException: No view found for id...
How can I fix it?
Thanks in advance!

Related

Nested navigation with flow_builder in Flutter

Good day! I wanted to implement navigation in my app with flow_builder package. I have bottom navigation bar with several tabs in it and inside each of the tab's route I have several nested routes. I have made a small example application and I have a problem with tab transitions, namely if you navigate to a route within a tab and try to change tab again the navigation stack changes very strangely. Am I using this package properly and is it even possible to implement such navigation with it? My sample app
[Edit]
I have nested FlowBuilder() inside each tab and now everything seems to work fine. However, I am not sure whether it is appropriate solution.

Present small ViewController on tabbarcontroller

Im having a tabbarcontroller with more than 5 tabs on it. I tried MS Teams like UI. But unable to present it as a small VC presenting on top of tabbarcontroller. I tried presenting views on tabbar item click but
Unable to fire the tabbar select event on first tap on the button
Unable to present over the currently selected view controller
Unable to present on top of tabbar controller(view hiding the tabbar)
#Microsoft Teams app
Please help me out to implement the same behaviour or comment if u know any library to perform this.
You should check Aiolos project on GitHub. It will allow you to show/interact with panels and you also be able to configure offset in Panel.Configuratio.magrins. Another way is to use custom transitions

Loading view in UINavigationController that only appears for a given subview and disappears for others

My application consists of a tabbar controller with several tabs, each with a navigation controller in them. One of these nav controllers contains a table populated via a web service. I'd like to have an overlay on the table (or a different view) that says the service is not reachable if it isn't reachable. However, I only want this overlay on the table, and not on other tabs.
What is the best way to do this? My current solution is a loading view that appears for the table when it appears, or when there is a change in reachability and this loading view disappears on viewdiddissapear. I like being able to put a semi-transparent loading view on top of the table so you can see the old data I guess....
Are there better/alternate ways to do this?
My recommendation is using an activity indicator with a transparent background.
Here is a complete tutorial and sample code (from Jeff LaMarche).
http://iphonedevelopment.blogspot.com/2010_02_01_archive.html

How does one use one shared iAd banner using a Navigational Controller? iPhone/iPad

Basically I have an app that involves a navigation controller that moves between table views and scroll views. I wish to place iAds under the navigation bar but before the content of the page.
I assumed that in the mainwindow_iphone.xib I could just move down the view down from the navigation bar and have the app delegate handle the ads but apparently you cannot separate the navigational bar like this.
How would I go about implementing this? I would prefer to avoid having a separate banner load on each page.
If anyone needs anymore information from me, feel free to ask!
Thank you.

UINavigation controller problem

I'm developing an iPhone application and I'm trying to do this:
I want an application with tree views. The view shown first, doesn't have a navigation bar. If the user tap on a button, I need to open the second view with a navigation bar and a table view. The user can also add new items to the table view. If the user do so, the application will show the third view where the user can add fields (this view has also a navigation bar).
It may seem simple, but for me it is not. I don't know how to use the UINavigationController and have not found yet a similar example for what I do (paragraph translated by google).
UPDATE
I don't know how where to put UINavigationController.
How can I do that? Can I use a UIViewController to call a UINavigationController?
Thank you.
take a look at the Recipes example (it also uses core data which may confuse things a little) http://developer.apple.com/iphone/library/samplecode/iPhoneCoreDataRecipes/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008913
There is also a simpler starting point here http://developer.apple.com/iphone/library/samplecode/TableViewSuite/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007318 but the Recipe example covers just about everything you need.
EDIT:added the following
For the very simplest example use XCode to build a new application - a navigation based application (sorry, I'm in front of a PC today so that is from memory). That will give you a blank application with the navigation controller created. You then use the navigation controller to push and pop your view controllers
ViewController Programming Guide