偶然发现,当android 5.0在按如下方式使用ImageButton时,会有自带的阴影,如图:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:orientation="vertical" >

    <ImageButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_launcher" />

</LinearLayout>
View Code

相关文章:

  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2021-06-11
  • 2021-11-17
  • 2021-11-25
  • 2021-10-22
猜你喜欢
  • 2021-05-01
  • 2021-12-02
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-04-27
  • 2022-02-03
相关资源
相似解决方案