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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:30:55+00:00 2026-05-24T01:30:55+00:00

I have a ScrollView defined like this: <ScrollView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/scrollv android:layout_width=wrap_content android:layout_height=wrap_content> <com.test.myview android

  • 0

I have a ScrollView defined like this:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
       android:id="@+id/scrollv"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content">

       <com.test.myview android android:id="@+id/myview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>

</ScrollView>

And MyView is extended from View.

in MyView I have a Bitmap drawn with scale of 1.5. It seems as the scollview is working fine since the fading edges appear when I scroll up or down, but then the Image that is drawn in onDraw() (as drawBitmap(bm..)), is not scrolled to show the ‘hidden’ parts .. it scrolls for 2px’s and then stops.. when it gets to onScrollChanged(int, int, int, int) – I get that all of the values are 0 there.. I even try to explicitly set the scroll with scollTo or scrollBy methods, no help. So I suppose it’s the content that I am mistakening somehow…

Am I doing something wrong? The CustomView I use is basic View with more or less of the common methods overriden (onMeasure, onDraw, onTouchEvent…).

  • 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-24T01:30:55+00:00Added an answer on May 24, 2026 at 1:30 am

    You need to use a fixed width and height for your custom view.

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

Sidebar

Related Questions

I have posted my question to developer.appcelerator.com. http://developer.appcelerator.com/question/124915/device-orientation-does-not-reflect-scrollview-content-resizing ======================================================================= I have scrollview resize problem
I have a simple ViewController that looks like this: @interface MyViewController : UIViewController<UIScrollViewDelegate> {
I got stuck in here, I have a custom scrollview in a view this
I have a scrollview with both horizontal and vertical scrolling but I would like
I have a scrollView that I'd like to programmatically move based on the delta
This question relates to this question . I have a EF model like this
I have this scrollview eager to be filled up with buttons (4 per row),
I have a scrollview control that has a StackPanel (Orientation=Vertical) UI Element inside of
I have an app which contains a scrollview with several tableviews. Each tableview is
I have an app that shows a series of UIImageView s on a ScrollView

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.