<android.support.v7.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:clickable="true"
        android:layout_margin="16dp"
        android:padding="10dp"
        app:cardCornerRadius="6dp"
        android:foreground="?android:attr/selectableItemBackgroundBorderless"
        app:cardElevation="3dp">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="10dp"
            android:ellipsize="end"
            android:maxLines="4"
            android:text="撑着油纸伞,独自
               彷徨在悠长、悠长
               又寂寥的雨巷,
               我希望逢着
               一个丁香一样的
               结着愁怨的姑娘。"
            android:textSize="18sp" />


    </android.support.v7.widget.CardView>

点击会有水波纹效果.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2021-10-25
  • 2021-09-14
猜你喜欢
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2021-10-27
  • 2022-02-05
  • 2021-12-12
相关资源
相似解决方案