0
添加到我的背景圖片我想一個透明覆蓋添加到Android的我的背景圖片,像下面我想一個透明覆蓋android系統
我的代碼
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.bykar.bykar_provider.WaitingForActivationActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription=""
android:scaleType="centerCrop"
android:src="@drawable/map_bg"
tools:ignore="ContentDescription" />
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
/>
</RelativeLayout>
難道我寫的東西錯了?我測試你的代碼,它在我的android studio中工作。所以我發佈了這個答案?我能知道我答案的理由不正確嗎? – Anonymous