2
I’m having a layout incompatibility with other versions of android.
on my android 8.0.0 the layout is like this
On another mobile with android 4.4.2
I’m using recyclerview,grid,cardview
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:design:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
//Glide
implementation 'com.github.bumptech.glide:glide:4.7.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
//searchView
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
//firebase
implementation 'com.google.firebase:firebase-core:12.0.1'
implementation 'com.google.firebase:firebase-messaging:12.0.1'
}
apply plugin: 'com.google.gms.google-services'
Didn’t fit the xml here, follows xml link: https://pastebin.com/ZsLUJ9Ky
What can be done to solve this problem? my project is compatible with android 4.1 up.
is looking like a problem in photo viewing, not a question of responsiveness.
– viana
I tried to change the name, format of the image and nothing helps.
– Harrison
What type of image are you using? png, bitmap, Base64?
– Felipe Campos
I am using png 40px
– Harrison
tried to put the image as an xml to see if it works?
– Felipe Campos
am without the Androidstudio to test, try putting
android:layout_gravity="center"
on the line101
– Gaspar
It didn’t work Gaspar :(
– Harrison
The layout works normal from api 23
– Harrison