2016-03-31 39 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詢問模糊,而不是阿爾法。 –