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

  • SEARCH
  • Home
  • 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 6084797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:33:53+00:00 2026-05-23T11:33:53+00:00

I have a problem achiving a sertant effect in a app i am currently

  • 0

I have a problem achiving a sertant effect in a app i am currently working on. The senario is something like this

On my first activity i display a list, and once a item is clicked i display a new activity that holds more details about the item.

Now i want to implement pageing on the detailed page so the user can slide left or right and gets the next or previusly item displayed without having to go back to the list a select.

i got a adapter for the items so it is no biggy getting the information about what item is shown and what the “siblings are”

i have been playing around with the view flipper but as far as i can see it needs the “views” rendered in the stumic of the viewflipper and i dont dare render 300 items out onCreate. any tips on using 3 views and populate em onCreate??

i have called the same activity with and animation so it slides in plus and intent telling what data to show, but it must be poor preformance to do that.

Any ideas ?

if u want to see just that animation/function i want. Tjek out google latitude pageing on u friends detailed page.

//thx in advanced

  • 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-23T11:33:53+00:00Added an answer on May 23, 2026 at 11:33 am

    I’ve implemented the same behavior using ViewFlipper with loading the Views on demand.

    Here is a snapshot of what I was doing. It’s not exactly the same as you wanted, but you can follow the same approach.

    /**
         * starts a new activity.
         * @param activityToStart the activity class.
         */
        public static void startActivity(Class<?> activityToStart) {
            String name = activityToStart.getName();
            while (history.contains(name)) {
                name += "1";
            }
    
            View view = activity.getLocalActivityManager().startActivity(name,
                    new Intent(activity, activityToStart)).getDecorView();
    
            history.add(name);
            addView(view, name);
        }
    
         public void addView(View newView, String name) {
        // add its name to the history.
        history.add(name);
        // change the view.
        flipper.addView(newView);
        if(history.size() != 1) {
            flipper.setInAnimation(inFromUpAnimation());
    
            View oldView = getActivityAt(history.size() - 2);
            flipper.setOutAnimation(outFromBottomAnimation());
            flipper.showNext();
        }
    }
    
    private void back() {
       if(history.size() > 1) {
           View oldView = getActivityAt(history.size() - 1);
           flipper.setInAnimation(inFromBottomAnimation());
           setRemoveAnimation(oldView, outToUpAnimation(), history.remove(history.size() - 1));
           flipper.showPrevious();
       } else {
           finish();
       }
    }
    

    Here I’ve 3 functions (To start a new activity in your case you might change it to inflate the view if you want, the second that add the view, the third to remove the view when the user hit back).

    Hope this helps!

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

Sidebar

Related Questions

I'm working on an iPhone app and would like to have a simple text
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have problem with ActionLink. I'd like to pass to my ActionLink parameter for
I have problem with cakephp's Session->write method. If I set a value like $_SESSION['..']
I'm not sure if something like this is even possible in Python, but if
So have a problem achieving some special uni-code characters to display across multiple users
I have problem in some JavaScript that I am writing where the Switch statement
I have problem with return statment >.< I want to store all magazine names
I have problem with starting processes in impersonated context in ASP.NET 2.0. I am
I have problem when I try insert some data to Informix TEXT column via

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.