Ich möchte die Button
innerhalb der editText
. Ich befestige den Screenshot. Wie kann ich das machen? Bitte hilf mir.Ich möchte eine Schaltfläche in den Text bearbeiten in Android
Etwas wie folgt aus:
Ich möchte die Button
innerhalb der editText
. Ich befestige den Screenshot. Wie kann ich das machen? Bitte hilf mir.Ich möchte eine Schaltfläche in den Text bearbeiten in Android
Etwas wie folgt aus:
Sie unter Code verwenden können.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Enter search key" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_margin="5dp"
android:text="Verify"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<EditText
android:layout_gravity="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Mobile no" >
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Verify"/>
</EditText>
</LinearLayout>
Lesen Sie seine Frage richtig. Ich möchte den 'Button' im' editText'. –
Ya, ich habe dies über Code mit einigen Änderungen lyk, Thanx – dev
Ich weiß nicht, wie kann ich das tun? – dev