0
HI,Wie strecke ich das Bild auf die Breite des Layouts?
Ich möchte mein Bild auf die Layoutbreite strecken, wie kann ich dies mit XML-Layouts tun?
<LinearLayout android:layout_width="700dp"
android:layout_height="310dp" android:orientation="vertical">
<TextView android:id="@+id/widget37" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="Welcome Ramesh Kumar,"
android:paddingTop="5dp" android:textSize="10dp" android:textColor="#02284D"
android:gravity="left">
</TextView>
<TextView android:id="@+id/widget37" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="Employee Id: 152490"
android:textSize="10dp" android:textColor="#02284D" android:gravity="left">
</TextView>
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="150dp" android:layout_x="10dp">
<ImageView android:id="@+id/bannert30"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:src="@drawable/front_screen" android:scaleType="fitEnd"
android:layout_alignParentLeft="true">
</ImageView>
</RelativeLayout>
Dies ist mein Code bitte helfen?