Wie wird die Ansicht in Android auf der rechten Bildschirmseite ausgerichtet? Ich habe das benutzt aber nicht funktioniert bitte helfen?Wie richtet man die Ansicht auf der rechten Seite des Bildschirms in Android aus?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@+id/widget0"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="#FFFFFF" android:paddingLeft="10px" android:paddingTop="10px"
android:paddingBottom="10px" android:paddingRight="10px">
<LinearLayout android:id="@+id/heading" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="horizontal">
<ImageView android:id="@+id/widget30" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/logo_cpw">
</ImageView>
<EditText android:id="@+id/widget28" android:layout_width="134px"
android:layout_height="35px" android:text="EditText"
android:textSize="18sp" android:background="@drawable/rounded_edit_text_effects"
android:gravity="right" android:layout_alignParentRight="true" android:paddingRight="-10px">
</EditText>
</LinearLayout>
</RelativeLayout>
Ich habe AbsoluteLayout anstelle von Relativlayout verwendet, aber das hat auch nicht funktioniert. Bitte helfen Sie?
Ich denke, dass diese auch gut helfen: [http://stackoverflow.com/questions/4305564/android-layout-right-align](http://stackoverflow.com/questions/4305564/android-layout-right -ausrichten) – Soufiane