我在一个名为“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>