performance - Lag/Animation issues on newer android versions (Marshmallow and up) -
i've made app various custom views , multiple fragments; problem animations/translations perfect on android lollipop, on marshmallow , nougat there lag/delay when clicking on buttons , opening pages , animations bit slow well.
i'm not sure problem , how can solved; if required, here gradle file:
apply plugin: 'com.android.application' android { compilesdkversion 25 buildtoolsversion "25.0.2" defaultconfig { applicationid "com.app.myapp" minsdkversion 19 targetsdkversion 25 versioncode 1 versionname "1.0" testinstrumentationrunner "android.support.test.runner.androidjunitrunner" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:support-v4:25.3.1' compile 'com.android.support:recyclerview-v7:25.3.1' compile 'com.android.support:cardview-v7:25.3.1' compile 'de.hdodenhof:circleimageview:2.1.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.wefika:flowlayout:0.4.1' compile 'com.github.lecho:hellocharts-library:1.5.8@aar' compile 'com.github.stfalcon:chatkit:0.2.2' compile 'uk.co.chrisjenx:calligraphy:2.3.0' testcompile 'junit:junit:4.12' }
edit: 1 thing forgot mention: lag apparent on first actions mostly. example, on first press of chat button, chat fragment loaded , there delay , animation not perfect button; on first card swipe right, there slight stutter; on first vertical swipe after horizontal card swipe, vertical viewpager animation snaps place etc.
Comments
Post a Comment