Ich möchte innerhalb der cardview ein Imageview auf der rechten Seite setzen, sondern Ausrichten funktioniert nicht ... mir bitteWie richtet man ein ImageView auf der rechten Seite aus?
Layout-
<FrameLayout
android:id="@+id/framelayout"
android:layout_height="match_parent"
android:layout_width="match_parent"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/lin1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="05dp"
android:layout_marginTop="15dp"
android:id="@+id/casardviewvisit">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#482048"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/omg"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20dp"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginLeft="20dp"
android:layout_gravity="center"
android:text="Add Order"/>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/sent"
android:layout_gravity="right"
android:id="@+id/imageButtsdon" />
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</framelayout>
schlage ich versuche, wie auf diese Weise bin, aber es funktioniert nicht, und ich weiß nicht, warum dies nicht
funktioniert
Sie Textview layout_width = 0DP machen kann gezeigt, layout_weight = 1 ... Sag mir, wenn es für yah funktioniert – Sheychan
yup es funktioniert perfekt thanq so sehr. –