Android Tab Bar With Navigation Controller Application - android

I'm iOS developer, with iOS I can use UITabbarcontroller and UINavigatorcontroller when I want to make Tab bar with Navigator app. Now I'm moving to Android, could you please tell me how to do this, where can I find tutorial with source code?
Thank you.

I had the same problem but using this tutorial it made everything easier. This is for the custom tab bar controller at the bottom of the screen. Since Android SDK has theres on the top you can use this link to create a custom one on the bottom.
http://kpbird.blogspot.com/2011/05/androidbottom-tabbar-control.html

Try answer from this question
Separate Back Stack for each tab in Android using Fragments
here's a github link from the thread https://github.com/iamjayanth/FragmentTabStudy

Related

How to add buttons to android navigation bar (not bottom bar)

How can I learn how to cuztomize the android navigation bar?
I know that it is not recommended because of the material ui commandments (but I wanna do it anyways).
There is a few applications out there who supports this - and I was looking into them to see if I can learn it from them.
Lichess
I know a chess app called lichess which added 2 buttons in each side of the navigation bar - and the code is open source on github, but I can't find where the specific buttons are implemented. Also many things in the app is developen in typescript and scala with a wierd html dls.
Edit
I see that lichess is implemented in webview and they might just have created their own "fake" navigation bar in typescript.
CustomNavigationBar
Also there is another app called CuztomNavigationBar which should be able to change the settings for the android navigation bar on a global scale, so that it will persist after the app is closed.
This code is not open source so I cannot find out how he did it. Here is a tutorial how to use his app
Thank you in advance
Here is a image of the bottombar on lichess.

How to make a bottom App Bar for the whole app on Android?

I have implemented successfully a bottom app bar on my MainActivity.
However, I wish it to be used on the whole app as well.
Is there a clean code solution that uses that bar on other activities as well?
thanks in advance!
I'll suggest you to use Fragments in your app if you want a single BottomAppBar.
This article seems to be a good introdutction: https://proandroiddev.com/fragments-swapping-with-bottom-bar-ffbd265bd742

How do I create an android navigation bar that pushes aside the current view to right?

I need a navigation bar that doesn't slideIn above the current view (the usual overlapping stype), instead it should be as in new ebay app (as if scrolling the wallpaper in homescreen with more than one page). Is it possible to add this effect to material-design-navigation-view? How do I do it?
You can use Sliding Menu Library for your requirement. Here is the link to that library
Sliding Menu Library
And if you are using Android Studio then see this link to add it in your project
Importing in Android Studio
There is no default way to really do this. However, this thread of StackOverflow will help you: push activity on the right when open drawer
Another GitHub library that may suit your need is: Material Drawer. You can download the demo on Google Play Store (same name). A similar approach is the Persistent Header Drawer

iOS Tab Replacement in Android

What is complete replacement of iOS Tabs Replacement in Android.
I Know that Android is Android and we don't Imitate other platforms on Android. I have Studied Pure Android
But All I want to have the replacment of iOS tabs in Android with following features.
1.) Stores Navigation flow for each tab, As in iOS there is navigation controller for each tab and we can have the previous state for each tab while switching from tab to tab.
2.) Desirable but not necessary- Double click on tab button will refresh the view with the root view as per in iOS.
3.) The animation while switching from tab to tab or with in Tab does not swipe the complete Tabs(including the TAB Bar). It means only the content of each Tab should be replaceable with separate Activity or something like this.
4.) In short User Experience must be similar to iOS Tab Bar.
What I have Tried so far.
1.) Added Tabs with TabHost on bottom of screen.But I Haven't got the stack navigation for each Tab separately.
(Something like: https://github.com/AdilSoomro/Iphone-Tab-in-Android)
2.) Also I have an idea of Using Stack (Java Collection Framework.) But that will be a headache to maintain all the stack by my self.
So, Guys In short:
Do you have any ideas of any Third Party Library, that I can use in my project without much problem to achieve all the features mentioned above?
Any help would be appreciated.
Thanks.
This one is best to implement iOS like tabs in Android
Like this:
You can use the native tabs and style it to seem like iOS ones.
Use Fragments, and store/reload the "Natigation flow" at the onPause/onRestore methods in each Fragment or in the FragmentActivity when you change form one fragment to an other.
BTW, please don't do that. If you studied Pure Android, what's the point do you want to achieve? Android is Android and iOS is iOS, do not mix them please.
UPDATE: 3 September 2017
An other, and imho better, approach to do so is make use of the Bottom Navigation. Take a look to materialdocs to learn how to use it.

Creating a title bar above a tabgroup in Titanium

I'm working on something in Titanium, and am having some difficulty trying to achieve this.
On the Android version, the tabgroup seems to be fixed to the top. I'm fine with that, but I do want the app's logo bar to be above that.
I'm trying to achieve something similar to what Twitter has for their Android app. They have their logo and a compose tweet button that exist above the tabgroup. Here's a screenshot for clarity:
Is this even possible? If it can't be done with native tabGroups, is there some workaround that I could implement?
Thanks in advance!
You can't do it with a tabGroup in Titanium - they don't have a navBar in Android. With a lot of work, you can create your own by creating a base window, adding tab graphics (view) with click handlers, and they open new windows with a top: attribute that is below the tabs. Good luck.

Categories

Resources