Are tickmarks for swipe views navigation available to use in Android? - android

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

Related

How do you create a View Pager with dot Indicator with Number?

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.

Navigation drawer in Android

I know it should be in the style sheet area for this, but when I created a new Android app using Android Studio, it has a user logo and user information in a green box. This is what I want to edit.
First it should ask them to login if first time using the app.
But let's deal with one thing at a time, and first is me getting use to where Google puts things.
If you look at your layout activiy you will find a "NavigationView", there are 2 attributes there you need "header" and "menu".
You can see in this answer how.to get the views inside the "header" file: https://stackoverflow.com/a/33631797/4017501
There is another alternative. The "NavigationView" is a ViewGroup. So you can use it as such. Delete thee "header" and "menu" attribute and add the closing brackets as if were a ViewGroup:
<NavigationView></NavigationView>
Now you can simply put a fragment inside and then find every view and handle your logic from the fragment, is a more direct and customizable approach.

Android: ViewPager needed?

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.

How to: Put a TabbedLayout inside a ViewPager

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

Implement gallery-like slider control

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

Categories

Resources