首页 > 技术文章 > 66. Nested ScrollView

L1nus 2017-09-21 22:13 原文

First . Rewrite activity_main.xml layout file and change root element android.support.v4.widget.NestedScrollView

Second .  File -> Progect Structure -> cardView ->apply 

Third . Creat LinearLayout in NestedScrollVIew , and add CardView in the vertical LinearLayout .

Fourth . Import imageView , by plugin Batch Drawable Import , 

Fifth , Add ImageView element in CardView element ,

Note : xmlns:card_view = "http://schemas.android.com/apk/res-auto"用来为cardView设置圆角。

  

 

推荐阅读