Ich möchte meinen Text in der Textansicht auf der rechten Seite ausrichten und auch sollte es in der Textansicht zentriert werden.wie Text der Textansicht auf der rechten Seite ausrichten und auch Text sollte in der Mitte der Textansicht sein
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="60dp"
android:gravity="right">
<ImageView
android:layout_height="60dp"
android:layout_width="60dp"
android:id="@+id/img_campaign"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingBottom="5dp"
android:paddingTop="5dp">
</ImageView>
<TextView
android:id="@+id/txt_campaign"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_gravity="center"
android:paddingLeft="5dp"
android:gravity="right"
android:text="Dummy TEXT Dummy TEXT "
android:textSize="20dp">
</TextView>
</LinearLayout>
Können Sie mit Ihrem Bildschirm erklären, was Sie wollen? wie von deiner Frage ist es schwer zu verstehen. –