我的編輯文本顯示提示,但它不顯示光標和打字區域。我該怎麼做才能顯示光標和區域,而不僅僅是提示?edittext光標和編輯區域不顯示
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main_menu"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:background="@drawable/numberborder"
tools:context="com.example.light.primenumbercompanion.MainMenu">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/checker"
android:layout_width="230dp"
android:layout_height="wrap_content"
android:gravity="center"
android:textColor="@color/black"
android:textStyle="bold"
android:layout_marginTop="37dp"
android:layout_marginLeft="20dp"
android:layout_marginBottom="37dp"
android:text="@string/checker"
android:textSize="20sp"/>
<TextView
android:id="@+id/checkerQeustion"
android:layout_below="@id/checker"
android:layout_width="230dp"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:textStyle="bold"
android:layout_marginLeft="20dp"
android:layout_marginBottom="5dp"
android:text="@string/checkerQuestion"/>
<EditText
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginBottom="5dp"
android:id="@+id/checkerInput"
android:layout_below="@id/checkerQeustion"
android:hint="@string/checkerInput"
android:inputType="number"/>
</RelativeLayout>
我覺得用戶將不知道在哪裏輸入數量
沒有什麼錯,我在這裏找到。我可以看到光標和默認的edittext下劃線邊框。你能添加截圖嗎?它可能是'@ drawable/numberborder'造成背景與默認的edittext背景混淆。 –