【发布时间】:2016-10-25 08:45:44
【问题描述】:
【问题讨论】:
-
对你的上图进行不透明处理......比如 android:alpha="0.2"
-
这对我有帮助,你能详细说明一下吗
标签: android android-layout background-color opacity
【问题讨论】:
标签: android android-layout background-color opacity
Use frame layout as a main layout .It will overlaps your layout.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#a8a3841a"
>
<LinearLayout
android:id="@+id/wraper"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:background="#e7a3841a"
android:orientation="horizontal">
<View
android:id="@+id/vwVerticalColourBar"
android:layout_width="5dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:background="@color/grey2"
android:gravity="center_vertical"/>
<TextView
android:id="@+id/label"
style="@style/item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginLeft="8dp"
android:gravity="left"/>
<TextView
android:id="@+id/label2"
style="@style/subitem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginLeft="8dp"
android:gravity="left"/>
</LinearLayout>
</FrameLayout>
希望对你有所帮助。
【讨论】: