Umieszczanie widoku tekstowego na górze widoku obrazu w systemie Android
mam
listview
, ma singielimageview
który można przewijać w pioniePróbuję umieścićtextview
na górzeImageview
Oba widoki muszą być widoczneCzy to możliwe ?Jeśli tak, jak to zrobić programowo?Jakie zmiany muszę wprowadzić?list_view_item_for_images.xml
<?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="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/flag"
android:layout_width="fill_parent"
android:layout_height="250dp"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:scaleType="fitXY"
android:src="@drawable/ic_launcher" />
</RelativeLayout>
Daje wyjście jak poniżej
Jak zrobić coś takiego jak poniżej
uwaga :: Dish 1 i 2 to textviews