圆形和方形的奇怪波纹效果
Strange ripple effect both rounded and square
我试图在 FragmentDialog
上添加 Round Ripple Effect
但我最终得到了这个:
现在的效果是圆形和方形!
为了添加圆形效果,我使用了:
android:background="?selectableItemBackgroundBorderless"
最奇怪的是,在遇到这个问题后,我创建了另一个项目只是为了检查可能有什么问题,不知何故,问题并没有出现在另一个项目上。
我只能说两个项目的xml(布局)和Java Class(DialogFragment)完全一样!
知道会发生什么吗?
我在 build.gradle (app module)
文件中发现了两个项目之间的区别。
我用的是什么:
compileSdkVersion 23
buildToolsVersion "23.0.3"
compile 'com.android.support:design:23.4.0'
我使用以下方法修复了它:
compileSdkVersion 24
buildToolsVersion "24.0.1"
compile 'com.android.support:design:24.1.1'
我试图在 FragmentDialog
上添加 Round Ripple Effect
但我最终得到了这个:
现在的效果是圆形和方形!
为了添加圆形效果,我使用了:
android:background="?selectableItemBackgroundBorderless"
最奇怪的是,在遇到这个问题后,我创建了另一个项目只是为了检查可能有什么问题,不知何故,问题并没有出现在另一个项目上。
我只能说两个项目的xml(布局)和Java Class(DialogFragment)完全一样!
知道会发生什么吗?
我在 build.gradle (app module)
文件中发现了两个项目之间的区别。
我用的是什么:
compileSdkVersion 23
buildToolsVersion "23.0.3"
compile 'com.android.support:design:23.4.0'
我使用以下方法修复了它:
compileSdkVersion 24
buildToolsVersion "24.0.1"
compile 'com.android.support:design:24.1.1'