LinearLayout中的模糊背景图片

3

我在一个名为“Umano”的应用程序中看到了这种效果(如下图所示)。背景图片(我认为)是从URL加载并作为布局的背景添加,但是你可以看到图片被模糊了。如何更改我的代码(如下所示),使我能够实现这种效果?

图片链接

我的XML代码:

<LinearLayout
       android:id="@+id/dragView"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:background="#eeeeee"
       android:clickable="true"
       android:focusable="false"
       android:orientation="vertical" >

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="68dp"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/name"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:paddingLeft="10dp"
                    android:text="Product Details"
                    android:textSize="14sp" />
             </LinearLayout>
</LinearLayout>

1
你可以设置线性布局的背景 android:background="#80000000" 来实现透明度。 - Shoeb Ahmed Siddique
如果我有一张像图片中所示的图像怎么办?@ShoebAhmedSiddique - Nehara Ranathunga
2个回答

2

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接