Ich habe eine youtube URL kopiert und versucht, diese Youtube URL im Edittext auf den allerersten Klick, der in der Warnung Dialog ist und es funktioniert nicht.Android - Bearbeiten Text einfügen Option funktioniert nicht beim ersten Klick
Aber es funktioniert auf einen zweiten Klick, auch ich habe den Zwischenablage-Manager überprüft, um den Inhalt zu kopieren oder nicht, und ich kann den kopierten Inhalt in der Zwischenablage Objekt lesen.
Bitte finden Sie den folgenden XML-Code von mir habe ich etwas verpasst oder bitte lassen Sie mich wissen, welche Art von Lösung, die ich folgen muss, um dieses Problem zu beheben. Ich habe dieses Problem in den letzten 2 Tagen untersucht, um dieses Update zu erhalten, aber nichts funktioniert.
xml Code
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/frame_view"
android:layout_width="match_parent"
android:layout_height="64dp"
android:background="@color/colorPrimary"
android:scaleType="center">
<TextView
android:id="@+id/dialog_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:text="@string/title"
android:textAllCaps="true"
android:textAppearance="?android:textAppearanceMedium"
android:textColor="@color/white"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:id="@+id/view_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/frame_view"
android:orientation="vertical">
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dimen_size_20dp"
android:id="@+id/editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<EditText
android:gravity="center"
android:id="@+id/dialog_edittext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:maxLines="1"
android:textColor="@color/black"
android:textColorHint="@color/dark_gray"
android:hint="@string/video_link"
/>
<LinearLayout
android:orientation="horizontal"
android:padding="@dimen/dimen_size_20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/view_layout"
android:orientation="horizontal">
<Button
android:visibility="visible"
android:id="@+id/dialog_cancel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/ripple_effect"
android:text="@string/cancel"
android:textColor="@color/white" />
<View
android:id="@+id/view_divider"
android:visibility="visible"
android:background="@color/white"
android:layout_width="@dimen/dimen_size_1dp"
android:layout_height="match_parent"/>
<Button
android:id="@+id/dialog_save"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/ripple_effect"
android:text="@string/save"
android:textColor="@color/white" />
</LinearLayout>