Java 我的活动透明度在旧版本的android上降低了
我目前正在编写一个程序,在我的一项活动中,屏幕上的所有图标都降低了透明度,几乎可以看穿 这只发生在Android 5.0及更低版本上。我用模拟器测试了这一点,安卓5.0以上的一切都非常好Java 我的活动透明度在旧版本的android上降低了,java,android,xml,Java,Android,Xml,我目前正在编写一个程序,在我的一项活动中,屏幕上的所有图标都降低了透明度,几乎可以看穿 这只发生在Android 5.0及更低版本上。我用模拟器测试了这一点,安卓5.0以上的一切都非常好 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.andro
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/clockinoutbtn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:background="@drawable/rounded_corners"
android:backgroundTint="#357780">
<ImageView
android:id="@+id/clockInOutImgView"
android:layout_width="65dp"
android:layout_height="65dp"
android:layout_above="@+id/clockinorouttext"
android:layout_centerHorizontal="true"
app:srcCompat="@drawable/chimetimewhite" />
<EditText
android:id="@+id/clockinorouttext"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="5dp"
android:backgroundTint="#357780"
android:enabled="false"
android:gravity="center"
android:inputType="none"
android:text="CLOCK WORKER IN/ OUT"
android:textColor="#FFF"
android:textSize="20sp"
android:textStyle="normal" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/personnellogbtn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:background="@drawable/rounded_corners"
android:backgroundTint="#1E3059">
<ImageView
android:id="@+id/personnellogimgview"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_above="@+id/personnellogtext"
android:layout_centerHorizontal="true"
app:srcCompat="@drawable/personnellogwhite" />
<EditText
android:id="@+id/personnellogtext"
android:enabled="false"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="5dp"
android:backgroundTint="#1E3059"
android:gravity="center"
android:inputType="none"
android:text="PERSONNEL LOG"
android:textColor="#FFF"
android:textSize="20sp"
android:textStyle="normal" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/addnewworkerbtn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:background="@drawable/rounded_corners"
android:backgroundTint="#357780">
<ImageView
android:id="@+id/addworkerimgview"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_above="@+id/addworkertext"
android:layout_centerHorizontal="true"
app:srcCompat="@drawable/addnewworkerwhite" />
<EditText
android:id="@+id/addworkertext"
android:enabled="false"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="5dp"
android:backgroundTint="#357780"
android:gravity="center"
android:inputType="none"
android:text="ADD NEW OPERATIVE"
android:textColor="#FFF"
android:textSize="20sp"
android:textStyle="normal" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/timesheetsbtn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:background="@drawable/rounded_corners"
android:backgroundTint="#1E3059">
<ImageView
android:id="@+id/timesheetsimgview"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_above="@+id/timesheettext"
android:layout_centerHorizontal="true"
app:srcCompat="@drawable/timesheetswhite" />
<EditText
android:id="@+id/timesheettext"
android:enabled="false"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="5dp"
android:backgroundTint="#1E3059"
android:gravity="center"
android:inputType="none"
android:text="TIMESHEETS"
android:textColor="#FFF"
android:textSize="20sp"
android:textStyle="normal" />
</RelativeLayout>
</LinearLayout>
非常感谢您的任何想法。谢谢你一些截图将是apreciated@litelite这就是安卓5.0和安卓5.1的区别