Ich habe einen RecyclerView aufgebläht, der ein NetoworkImageView und 2 Textviews hat. Nach dem Aufblasen bekomme ich variable Größen für die Reihe, wie im Bild unten zu sehen ist.Aufgefüllter RecyclerView, der verschiedene Größen gibt
Wie könnte ich sie von fester Größe machen?
Dies ist das Layout I
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="10">
<com.android.volley.toolbox.NetworkImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:layout_weight="2"
android:baselineAlignBottom="true" />
<TextView
android:id="@+id/textView_Status"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="4"
android:gravity="center_vertical"
android:paddingLeft="13dp"
android:text="Testing"
android:textSize="17sp" />
<TextView
android:id="@+id/textView_Time"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="2.5"
android:gravity="center_vertical"
android:text="Time"
android:textSize="17sp" />
<Button
android:id="@+id/button"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:visibility="invisible" />
EDIT bin Aufpumpen:
Ich habe dieses auch versucht und ich bekomme etwas ähnliches wie das, das ich im Screenshot in meiner Frage geschrieben habe. – Zx5
Edited mein Code für die Ausrichtung verwenden Sie einfach übergeordnete Breite für textviews – sumit
Es hat funktioniert !! Ich musste die Größen bearbeiten, aber ich hatte die Idee dazu. Danke vielmals! – Zx5