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 8806301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:05:47+00:00 2026-06-14T02:05:47+00:00

I have downloaded the source code from github . It works fine. I want

  • 0

I have downloaded the source code from github. It works fine. I want to implement this type of application, but my problem is here in the class PageProvider it has:

private int[] mBitmapIds = { R.drawable.obama, R.drawable.road_rage,R.drawable.taipei_101, R.drawable.world }

If I am adding some more images in this array from my drawable folder, those images are not shown when I am running this code.

Tried to add more images for page curl effect. And tell me what I am doing wrong.

  • 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-06-14T02:05:48+00:00Added an answer on June 14, 2026 at 2:05 am

    You have to replace:

        @Override
        public int getPageCount() {
            return 5;
        }
    

    with:

        @Override
        public int getPageCount() {
            return mBitmapIds.length;
        }
    

    Then, modify the calls to “loadBitmap” method (within the “updatePage” method) replacing the last parameter (it has a fixed number) with the “index” variable. Furthermore, you can get rid of the whole switch and configure the pages like you wish (just extract the code from the switch-case you want).

    UPDATE1

    Use this method:

        @Override
        public void updatePage(CurlPage page, int width, int height, int index) {
            Bitmap front = loadBitmap(width, height, index);
            page.setTexture(front, CurlPage.SIDE_BOTH);
            page.setColor(Color.argb(127, 255, 255, 255), CurlPage.SIDE_BACK);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody have any experience with as3-spod? I downloaded the source code from github
I have downloaded source code for some software from svn on Linux and want
I have downloaded demo for Kal calendar from source code API at github and
I have downloaded the source code and using this logview to view log4net logs.
I downloaded the source code from this tutorial after a failed attempt to make
Recently, I downloaded a copy of mysql source code from their source tree. but
I have downloaded some Java source code from a book. It contains many directories
When I look through the source code files I have downloaded from the PHP
all I have downloaded source code from google android website following google's guide. My
I am new to orchard CMS. I have downloaded the source code from http://orchardproject.net/

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.