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.
Related
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.
I'm totally new to Android development. I even don't know the name of components yet, something that make a bit harder to find how can I reach my goals.
Now my main goal is to desing a screen with a bottom tabbed bar, where the user can click in the tabs and the body of the screen changes, like the Spotify's do.
This image shows exactly what I'm looking for with those five icons at the bottom.
You are looking for navigation bottom bar.
Link for design guidelines:
https://material.io/guidelines/components/bottom-navigation.html
Link for example library implementation: https://github.com/aurelhubert/ahbottomnavigation
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
I want to achieve the two tabs as below using titanium for android.
These are not the normal tabs, so how do I achieve them ?
Thanks !!
These seem to be buttons on a toolbar and not tabs.
As there is no support for Android toolbars in Titanium (I'm not sure if Android a thing called toolbar) you will have to fake it.
To get the same results on Android you would have to use regular createView and add background and different buttons in it. you will also have to make the buttons work.
Use two Buttons and a ViewFlipper that contains different ListViews.
custom tabgroup class working on android and iphone may be useful to you. See the screen shots for android and for iphone also.
am working an android native app , and searching for a way to develop a Tab Bar like the one in this video :
http://www.youtube.com/watch?v=unKs-b80aTU&feature=player_embedded
Maybe take a look at this example, it could give you some ideas on creating a Scrollable TabHost:
http://code.google.com/p/mobyfactory-uiwidgets-android/