
DagobertDokate
Dauer-User
- 137
Hallo Leute,
ich habe ein Problem:
Ich habe folgendes List item:
Wie bekomme ich es hin, das sich das Play icon mittig über das ImageIcon legt? Die beiden Bilder haben unterschiedlich große aspek ratio, wobei das Playicon imo höher ist, als das eigentliche Bild...
Ich weis nicht mehr weiter
lg. Dagobert
ich habe ein Problem:
Ich habe folgendes List item:
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/news_stream_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/title"
style="@style/default_item_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/arrow"
android:paddingBottom="5dp"
android:paddingTop="5dp"
android:text="@string/lorem_ipsum" />
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/title"
android:layout_marginLeft="5dp"
android:layout_toLeftOf="@+id/arrow"
android:paddingBottom="10dp"
android:scaleType="fitXY"
android:src="@drawable/aaa" />
<ImageView
android:id="@+id/arrow"
style="@style/default_list_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/image"
android:layout_alignParentRight="true"
android:layout_below="@+id/title"
android:src="@drawable/arrow_list" />
<ImageView
android:id="@+id/play"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_alignBottom="@+id/image"
android:layout_alignLeft="@+id/image"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_alignRight="@+id/image"
android:layout_alignTop="@+id/image"
android:scaleType="fitXY"
android:src="@drawable/background_eagle" />
</RelativeLayout>
Ich weis nicht mehr weiter
lg. Dagobert