Dies kann dumme Frage sein, aber ich konnte keine Lösung für mein Problem finden, lassen Sie mich mein Problem zu erklären versuchen, kleine quadratische Schaltfläche auf der rechten Seite des Textes wie im Bild unten ausgerichtet habe ich viele Dinge ausprobiert, aber nichts hat mir geholfen lassen Sie mich, was ich bisher versucht habe:Wie man kleine quadratische Taste rechts von Textview ausrichtet?
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/content_spare_request"
android:background="#fff"
android:layout_marginBottom="20dp"
android:layout_margin="10dp"
android:layout_below="@+id/root1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:id="@+id/spare_text"
android:layout_marginStart="2sp"
android:paddingLeft="10dp"
android:layout_marginTop="07dp"
android:text="@string/Spare"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/SForange"
android:textSize="16sp" />
<Button
android:id="@+id/btn_spare"
android:layout_width="20dp"
android:layout_height="match_parent"
android:minHeight="0dp"
android:minWidth="0dp"
android:background="@color/SForange"
android:layout_alignParentRight="true"
/>
<View
android:layout_width="match_parent"
android:layout_height="3dp"
android:id="@+id/view2"
android:layout_below="@+id/spare_text"
android:background="@color/SForange"
android:gravity="center" />
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:id="@+id/spare_recyclerview"
android:layout_below="@+id/view2"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/empty_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="75dp"
android:gravity="center_horizontal"
android:layout_below="@+id/view2"
android:visibility="visible"
android:text="No Data Available"
/>
</RelativeLayout>
Verwenden Sie 'DrawableRight' – hrskrs
Könnten Sie bitte @hrskrs dann erarbeiten, wie man klickbare –
Sie wollen die Plus-Taste auf der rechten Seite? –