Responsiveness - Android studio

2

I'm having a layout mismatch with other versions of android.

In my android 8.0.0 the layout stays that way

Onanothermobilewithandroid4.4.2

I'musingrecyclerview,grid,cardview

dependencies{implementationfileTree(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'//Glideimplementation'com.github.bumptech.glide:glide:4.7.1'annotationProcessor'com.github.bumptech.glide:compiler:4.7.1'//searchViewimplementation'com.miguelcatalan:materialsearchview:1.4.0'//firebaseimplementation'com.google.firebase:firebase-core:12.0.1'implementation'com.google.firebase:firebase-messaging:12.0.1'}applyplugin:'com.google.gms.google-services'

Itdidnotfitthexmlhere,followxmllink: link

What can be done to solve this problem? my project has compatibility with android 4.1 up.

    
asked by anonymous 17.05.2018 / 16:19

1 answer

1

I was able to solve the problem, follow the solution.

no build gradle add:

implementation 'com.android.support:gridlayout-v7:27 +'

// (I put 27+ pq my sdk is 27)

the errors that generate in xml change from android to app

and any references you make to the activities switch from Gridlayout to android.support.v7.widget.GridLayout

    
21.05.2018 / 13:35