Am trying to achieve something like the image in this url
I have implemented that behavior with this library
And i have succedded. What i want is to add another horizontally-scrollable layer under the one shown. Imagine an app that has the days of the week as the primary scroller and some specific tv channels in the second scroller; The idea is to allow the user to pick the day and then the channel to check whats on.
This is the best approximation i can give for what i want, but i dont know how to implement the second scroller. Can i do it with tabs?
You can use this library
ViewPageIndicator
Related
Probably many of you Also Me have problem with creating ViewPager with bottom dots With Number, like this:
How do you create such an Android ViewPager With Dot and Number?
I am Creating Quiz Application and I Want to Add This Type Of Indicator with Next And Previous Button
Usually you'll have to build this yourself.
You can also use one of several libraries that does what you need.
For example, there's this one and also this one and this one as well...
You can find many more here
Hope this helps.
I want to create a set of pages in an Android app that swipe horizontally and use tickmarks to indicate the position of the current page within the set of 12 pages that I have.
The design pattern of using tickmarks like this is mentioned in the Android design documentation.
http://developer.android.com/training/design-navigation/descendant-lateral.html
See figure 7
Are tick marks implemented as part of class within Android or do I need to create my own? Has anyone implemented tick marks who would be happy to share their code?
If you don't want to use a third party or you are rushing, you may want to use a RadioGroup as the tickmark or page indicator with each of the RadioButton corresponds to each page, You may put a text label on each page and the radio button group must be in horizontal orientation just like the tickmark.
It will also add some intuitive function because when the user tick a radio button it will go directly to the intended page without needing to traverse all of the pages.
This library by JakeWharton looks like it will do the job.
http://viewpagerindicator.com
I want to make a layout where you can swipe right and left to change the view content. However, I don't need to change the layout, I just need to change the texts in the TextViews and some visibility changes when swiping right or left. Do I need a ViewPager for that? And if yes, could you give me a link to some example.
I'm just a bit lost, I don't know what to google (and that's about the only problem google can't help you with:)
take a look at TextSwitcher or even a ViewSwitcher if you just want to change the text and you can check gestures out for the swipe action, if you decided to use ViewPager you can check the example provided above, or search google for more examples I am sure you will find lots.
Can't find how to implement such control and don't know even it's name:
Every 1, 2 and 3 elements are the same custom controls (let name them items). Items should be slideable in both directions by finger and (will be great) also by tapping according dots below control. It is important to see the whole single item at the screen (not part of 1st and part of 2nd like with ListView).
Is it implementable on Android? If so, please, show how to do this and tell me the name of this control.
Here is a sample with the same that follows your requirement
Android - ViewPagerIndicator Demo
Try: ImageSwitcher,ViewFlipper,ViewSwitcher.
ViewPager sounds like what you want:
http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html
(You'll have to implement the clickable dots yourself, but it should be easy enough, using the ViewPagers setCurrentItem() method)
use example as given on
http://evgeni-shafran.blogspot.in/2011/08/tutorial-custom-gallery-circular-and.html
At the top there is the favorites/styles/all channels
i don't know what that widget/control is i need to know what it is
i am certain i saw it before i just can't seem to find it again.
then there is a listview which is easy to implement no help needed there
then the same control again, i need to know how to build it.
it looks like a native Android control, i know how i can make one just like it using image buttons but i am sure i am missing something.
P.S. this is an image from sky.fm app on android
EDIT: I Do no need help with the ListView i already did that
What i do need help with is how to make the "favorites/styles/all channels" buttons if there is a way to do natively.
If there isn't a way to do natively, and you are sure just say there isn't a way to do natively ( that would be a good answer )
the perfect answer would be a working code, but i am not lazy i am already implementing the code my self
There's no native control for this. It's probably a Button or maybe ToggleButton. You could create a background xml with different states for selected true or false. And when you click the button toggle the selected state.
Top might be a custom tab layout, or just a bunch of buttons with custom styling.
Main part looks like a listview with complex row views.
Bottom almost definately is a bunch of buttons.
You can implement it using ClickableListAdapter.There is also tab implementation.try it.
Just make it using image buttons and put filters in your ListView, or create your own filter form scratch !