0
하나의 youtube url을 복사했으며 경고 대화 상자 안에있는 첫 번째 클릭의 edittext에 해당 YouTube URL을 붙여 넣으려고했습니다. 작동하지 않습니다.Android - 편집 텍스트 붙여 넣기 옵션이 첫 번째 클릭에서 작동하지 않습니다.
두 번째 클릭에도 작동하며 클립 보드 관리자가 콘텐츠가 복사되었는지 확인했는지 확인하고 클립 보드 개체에서 복사 된 콘텐츠를 읽을 수 있습니다.
다음 XML 코드를 찾으십시오. 뭔가 놓쳤습니까? 아니면이 문제를 해결하기 위해 어떤 솔루션을 사용해야하는지 알려주세요. 이 문제를 해결하기 위해 지난 2 일 동안이 문제를 조사했지만 아무 것도 해결되지 않았습니다.
XML 코드
<?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>