我的编辑文本显示提示,但它不显示光标和打字区域。我该怎么做才能显示光标和区域,而不仅仅是提示?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背景混淆。 –