Я начинаю с android. Я занимаюсь разработкой приложений, и я хочу этот эффект:Android add traslucid overlayer to image
Я думаю, что это фоновое изображение, наложение йоту traslucid цвет, и textView
.
Моя раскладка такова:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/backgroundImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:contentDescription="Description" />
<ImageView
android:id="@+id/overlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="#AAFF0000"
android:contentDescription="Description" />
<TextView
android:id="@+id/textoOpcion"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="TextView" />
</RelativeLayout>
Но это не работает.
Любая идея для этого?
Спасибо.
«Но это не работает» не является описанием проблемы. –
Извините, мой бедный английский, я хотел сказать, что я не мог получить эффект, который я хотел. – hlastras