Android Question The images are grainy.

Discussion in 'Android Questions' started by anallie0, Feb 23, 2015.

  1. anallie0

    anallie0 Active Member Licensed User


    I have a problem I can not solve and that it never happened.
    When I open an app, where load two png images in a scrollview, they see perfectly.
    If I close and reopen, the opening time is very long and the images are grainy.
    In the scroll view the images load only the first time the opening of Activity.
    It happens even in images inserted directly as a background of a panel or inside a imageview.

    Does anyone know what can be the reason?

    Screenshot_2015-02-23-13-42-57.jpg Screenshot_2015-02-23-13-44-51.jpg
  2. DonManfred

    DonManfred Expert Licensed User

    Memory problem and the images are loaded downsampled?
    eps and thedesolatesoul like this.
  3. anallie0

    anallie0 Active Member Licensed User

    Memory I have plenty of
  4. Erel

    Erel Administrator Staff Member Licensed User

    Check the logs. There might be more information there. What is the size of this image (width and height)?
  5. anallie0

    anallie0 Active Member Licensed User

    there are not error in to logs
    sometimes appears:
    Downsampling image two to lack of memory.

    I have an image in the panel of 2000x3000 pixels
    in the scroll two images of 700x400 pixels
  6. anallie0

    anallie0 Active Member Licensed User

    now I reduced the image to 600 and 400 pixels and it seems to proceed normally
  7. KZero

    KZero Active Member Licensed User

    it will be much better if you made panel with 2 labels and imageview inside it
    fill the labels with the text in this image and put the small gears shape in the imageview
    then put this panel in the scrollview
  8. DonManfred

    DonManfred Expert Licensed User

    You can also consider to use the HTMLTextview library i recently released.

    You also can wait a few days. This week i will (probably) release a wrapper for this library.

    btw: It´s the one i used in Chit-chat-thread about 1000 Imageviews in one Activity.
    Last edited: Feb 24, 2015
    KZero likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice