Android front-end commonly used layout file upgrade summary (1)


Question one:

android.support.design.widget.CoordinatorLayoutReport red, do not display the page


insert image description here


Solution:

Put the xml layout file insideandroid.support.design.widget.CoordinatorLayout

replaced with androidx.coordinatorlayout.widget.CoordinatorLayout;



Question two:

android.support.v7.widget.CardViewReport red, do not display the page


Solution:

Replace the in the xmlandroid.support.v7.widget.CardView layout file with androidx.cardview.widget.CardView;



Question three:

android.support.design.widget.FloatingActionButtonReport red, do not display the page


Solution:

Replace the in the xmlandroid.support.design.widget.FloatingActionButton layout file with com.google.android.material.floatingactionbutton.FloatingActionButton;



Question four:

android.support.design.widget.TextInputLayoutReport red, do not display the page


Solution:

Replace the in the xmlandroid.support.design.widget.TextInputLayout layout file with com.google.android.material.textfield.TextInputLayout;



Question five:

android.support.v4.widget.NestedScrollViewReport red, do not display the page


Solution:

Replace the in the xmlandroid.support.v4.widget.NestedScrollView layout file with androidx.core.widget.NestedScrollView;



Question six:

android.support.v4.content.FileProviderReport red, do not display the page


Solution:

Replace the in the xmlandroid.support.v4.content.FileProvider layout file with androidx.core.content.FileProvider;

Guess you like

Origin blog.csdn.net/lizhong2008/article/details/130863251