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
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'm using a library called PageIndicatorView, which is a light library to indicate ViewPager's selected page with different animations and ability to customise it as you need. Till here everything is ok, until I started to realize that I need to do the following scenario to my "dots":
The dots are dynamic, and the number of them is conditioned by the number of images available on the viewpager. Can you tell how I can put these texts above my dots? Can you help me how to "fish", please?
Thank you very much.
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
Hi I am developing an application that needs to display list of items. Clicking (or Tapping) on an item should display a description text of the item right below the item. I am talking about something like a vertical accordion.
I want them dynamically created (created in code rather than the XML). That part was completed with ease. I inflated multiple SlidingDrawer in a LinearLayout to accomplish it.
But the problem is only one SlidingDrawer is displayed in the activity. This was accomplished by giving fixed heights to SlidingDrawer. This approach will not hold as I mentioned above that the list of items is dynamically generated and also the area in the activity where the description of the item must come remains blank.
I am now looking for alternative views for accomplishing this. As I am a beginner in Android Development I cant find any that will work in android versions 2.3 and later.
You can always take a look at the SlidingMenu. The project can be found on GitHub. I guess you need to modify the behaviour a bit.
I am looking to create a navigation or menu bar similar to the functionality of the one at the top of the Fox News app. I started to code this myself using a Gallery but I'm not sure how to hide the left and right arrows when they are not needed. I was also wandering if you would have to use images for the menu items or if you could just use TextView or buttons so I could change the text without having to modify an image. I have seen this type of navigation on several apps and I tried all types of searches trying to find code examples but I must not be using the correct name for this type of scrollable menu because I couldn't find anything. If anyone has an example or provide a link to an article I would greatly appreciate it.
Look into HorizontalScrollView. It is a Layout that will handle the smooth scrolling and is likely to be much less of a hassle to work with than Gallery for this operation (I just added one for a similar reason).
To handle the left/right, look into setOnTouchListener. I'm not sure if you can get the current scroll position without making a new child class of HorizontalScrollView to access protected methods. There may be other ways, however - I didn't need to add buttons so I didn't investigate.