Ich versuche, eine Textansicht in Bildmitte anzuzeigen, aber nicht in LinearLayout.
Wie TextView in Bildmitte ausrichten
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/kurtis"
android:layout_width="0dp"
android:layout_height="325dp"
android:layout_weight="0.5"
android:scaleType="fitXY"
android:src="@mipmap/kurtis" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_text="Testing" />
<ImageView
android:id="@+id/salwars"
android:layout_width="0dp"
android:layout_height="325dp"
android:layout_marginLeft="10dp"
android:layout_weight="0.5"
android:scaleType="fitXY"
android:src="@mipmap/salwar" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_text="Testing"/>
Jeder habe Idee mir bitte helfen.
Ich habe meine Frage bearbeitet, das ist mein Problem.
Ich werde vorschlagen, dass Sie Relative Layout verwenden und dann in layout_centerInParent ausgerichtet haben. –