2016-03-31 38 views
-1

我有问题模糊listview项目。我发现了正常图像模糊的解决方案,但它不适用于listview。Android Listview模糊效果项目

ListView Items

+0

你是什么意思,它不适用于ListView?你打电话的方法是什么?你的布局是如何构建的? – speedDeveloper

+0

在加载背景图像之前模糊操作调用,我需要一个非常快速的解决方案,以便项目可以快速滚动。 – user1214083

+0

使用渐变... – Piyush

回答

-1

我做了一些不同的东西,你需要,希望对大家有所帮助!从提供

<?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> 

shows that

西班牙语信息:http://www.hermosaprogramacion.com/2015/07/tutorial-para-crear-un-gridview-en-android/

修订

我认为,增加对TextViewandroid:alpha="0.5"应该做你在找什么!

+1

OP询问模糊,而不是阿尔法。 –