Java 项目的Android Listview模糊效果
我无法模糊listview项。我找到了正常图像模糊的解决方案,但它不适用于listviewJava 项目的Android Listview模糊效果,java,android,blur,Java,Android,Blur,我无法模糊listview项。我找到了正常图像模糊的解决方案,但它不适用于listview 我做了一些你需要的不同的事情,希望能对你有所帮助 <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_
我做了一些你需要的不同的事情,希望能对你有所帮助
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="300dp">
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"/>
<TextView
android:id="@+id/nombre_coche"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@color/background_footer"
android:maxLines="1"
android:padding="16dp"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" //IMPORTANT FOR YOU
android:textColor="@android:color/white" />
</FrameLayout>
西班牙信息提供自:
已更新
我认为在
TextView
上添加android:alpha=“0.5”
应该满足您的需求 你说它不适用于ListView是什么意思?你调用哪种方法以及布局构建如何?在加载背景图像之前调用模糊操作,我需要一个非常快速的解决方案,以便项目可以快速滚动。OP询问的是模糊,而不是alpha。