i just did ListView like this:
All source: ListView
Now i want to add navigation bar like iPhone on top of this window:
I was searching for some source how to do but just kind find. Maybe someone have bookmarked good tutorial how to do this ?
Actually you don't have to do this for yourself. Just use a nice lib like ActionBarSherlock - it supports that NavigationMode for the ActionBar.
Related
I'm working on a android keyboard app. The only problem I couldn't get around is slider tabbed view like this:
I don't know how to implement tabs with view pager in an input method service. It's fairly easy to do with activities and fragments but no idea about how to get it done in a custom keyboard.
Can anyone point me in right direction?
Is there any available library for this or a nice hack?
I'd really appreciate your help at this point.
regards,
For implementing sliding tabs with ViewPager you can refer this link or in Android studio you can select from samples available while creating a new Activity.
If you want to add library support for it you can implement this library.
Mind the min sdk version of the library to avoid any trouble in future.
I want to create some thing like drawer menu that open from bottom of screen.
some thing like blow image. Also I want to know is that any special name?
You can use BottomSheet library. It works on Android 2.1+
https://github.com/soarcn/BottomSheet
It's called a SlidingDrawer. It was on the SDK but got deprecated a while back.
That said, this thrid-party library should do the job just as good. I've used it in multiple projects.
I'm working on a little project and I was wondering if this type was of spinner is a default in android, since they use this picture in their android development guides? If not, how would one go about making one like this?
The view you are looking at is NOT a spinner, it's a NumberPicker. Take a look at the official Android Docs here; http://developer.android.com/reference/android/widget/NumberPicker.html
Is there any built-in solution when a TabHost have a high number of tabs and dont fit in the screen like the "More ..." option in iOs?
In android you usually approach this using a horizontalScrollView to hold the tabs, or better yet use a viewpager like the Google+ or Google Play app.
Take a look at http://viewpagerindicator.com/ to see an implementation and a library of this functionality
I know that Android's Youtube app is not open source, but I pulled apart the apk with apktool and found that they have a class, YoutubeListView used frequently in their app. Is there already an open source implementation of the Youtube Player Activity's title/ fling view/ layout? I know of similar views like Joao Machete's FlingAndScrollViewer, but I need it to be rigge to a title menu and work as smoothly as that on the Youtube app. If there is no open source implementation, either how hard would it be to convince Google to release just that component's source, or to implement it myself?
Thanks
Btw, the footer in this layout is what I am talking about. It has titles like Info & Related videos that can be clicked and it scrolls to them, and it can be scrolled left and right.
I've come to the conclusion that there is no such view. It would be best to make my own custom layout.