Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6102877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:39:52+00:00 2026-05-23T13:39:52+00:00

Good day everyone. I am creating a calendar component, and I’m working in the

  • 0

Good day everyone.

I am creating a calendar component, and I’m working in the month view. I have created a view named MonthView, and I am adding a couple instances of this to a ViewFlipper:

viewFlipper = new ViewFlipper(getContext());
viewFlipper.addView(new MonthView(viewFlipper.getContext()));
viewFlipper.addView(new MonthView(viewFlipper.getContext()));

I have implemented the fling gesture so that I change views when sliding my finger left or right. This will cyclically update and display the months.

Now, I need to give the fling gesture a smoothly effect when touching and slowly sliding my finger. The same we get when we use a Slider instead a ViewFlipper.

The problem with Scroller is that the effect is not cyclic. Once I get to the last view, I have to slide in the other direction.

I need someone help me find how to give a scroll-like effect to the ViewFlipper, or how to make a Scroller cyclic.

Thanks in advance.

Extra comment:

I have already implemented a ViewFlipper with 2 views. I update the views by using the SimpleOnGestureListener.onFling(…) method, and the behavior I got is something like this:

Imagine I always slide from rigth to left, like flipping a book’s page to read the next one, and also imagine there is a caption in the header of the view that is displayed after flipping.

View # 0 –> Caption: January 2011

View # 1 –> Caption: Febrary 2011

View # 0 –> Caption: March 2011

View # 1 –> Caption: April 2011

View # 0 –> Caption: May 2011

If at this point I slide from left to right, the result will be something like:

View # 1 –> Caption: April 2011

View # 0 –> Caption: March 2011

The ability to cyclically move forward or backward, giving the user the idea of having infinite views, but using only a couple is characteristic of ViewFlipper, and that’s what I can’t loose.
That’s why I need a way to add the cool scroll effect without loosing what I’ve got.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:39:53+00:00Added an answer on May 23, 2026 at 1:39 pm

    Then you can use ViewFlinger!

    viewflinger this an android widget (extends ViewGroup) that allows to group a set of views that can be swiped horizontally. It offers a smoother transition that cannot be accomplished using ViewFlipper. This is based on the Workspace class on the iosched project, which is based in the class with the same name of the Launcher app.

    Download: 1.0.2 | Sources | JavaDoc

    If you use Maven, you can use it as an artifact from this repository: http://mvn.egoclean.com/. Also, you would want to look this video where I show how it looks like: http://www.youtube.com/watch?v=gqIXq5x7iLs (sorry for my accent which sucks)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day everyone. I am working on a Firefox extension, and I want to
Good day everyone. I have been having the same problem all day at work
Good day everyone! I have a problem regarding my date. It needs to be
Good day everyone. I have a question about making and using derived classes of
Good day everyone. I have an audio class, that plays a .wav file. But
Good day everyone, I have the following XML data : <?xml version=1.0 encoding=utf-8 ?>
Good day everyone. Suppose we have a collection and a document which looks something
Good day everyone, I have an HTACCESS file that contains the following: Options +FollowSymlinks
Good day to everyone! I have: ClassA.h class ClassA { .... public: priority_queue<OBJECT*, vector<OBJECT*>,
Good day everyone! So currently I'm working on a project with video processing, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.