0
Когда я использую EditText в моем экране макета, его показать мне, как этотEditText не показывает хорошо
Я не подавал любую тему или какой-либо стиль к деятельности или EditText.
Может ли кто-нибудь знать решение?
Вот мой код Компоновка
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#00529B">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:padding="20dip">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:text=""
android:hint="Member ID"
android:ems="10"
android:maxLines="1"
android:id="@+id/txt_member_id"
android:gravity="center" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:text=""
android:hint="Mobile Number"
android:ems="10"
android:id="@+id/txt_mobile"
android:maxLength="10"
android:maxLines="1"
android:gravity="center" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:text=""
android:ems="10"
android:hint="Key"
android:maxLines="1"
android:id="@+id/txt_key"
android:gravity="center" />
<Button
android:text="Button"
android:background="@drawable/button_style"
android:textColor="@color/button_text_color"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/btn_login" />
</LinearLayout>
</LinearLayout>
Вот мой build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-alpha1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
как мы должны не видеть код? –
где ваш xml-файл? – Rustam
вы используете предварительный просмотр Android 2.2? –