Android imageView drawable lag

时间:2017-05-13 14:38:38

标签: java android android-imageview

我使用https://github.com/apl-devs/AppIntro repo为我的Android APP制作介绍。

我在/drawable/文件夹中添加了3张图片。

  1. 1024x768 - 123 892个八位字节 - JPG
  2. 1024x768 - 98 304个八位字节 - JPG
  3. 1024x1024 - 585 728个八位字节 - PNG
  4. 但是当我用我的片段切换时,这已经滞后了很多。如果我删除这个可绘制的图片,那就行了......

    你可以试着帮我解决吗?

     addSlide(AppIntroFragment.newInstance("Welcome!",
                    "This is a demo of the AppIntro library.",
                    R.drawable.logov2_intro2,
                    Color.parseColor("#616161")));
    
            addSlide(AppIntroFragment.newInstance("Clean App Intros",
                    "This library offers developers the ability to add clean app intros at the start of their apps.",
                    R.drawable.tuto1_jpg,
                    Color.parseColor("#1565c0")));
    
            addSlide(AppIntroFragment.newInstance("Simple, yet Customizable",
                    "The library offers a lot of customization, while keeping it simple for those that like simple.",
                    R.drawable.tuto2_jpg,
                    Color.parseColor("#1976d2")));
    
            addSlide(AppIntroFragment.newInstance("Explore",
                    "Feel free to explore the rest of the library demo!",
                    R.drawable.logov2_intro2,
                    Color.parseColor("#616161")));
    

    由于

0 个答案:

没有答案