2016-06-16 4 views
0

zeigt Wenn ich EditText in meinem Layout-Bildschirm verwenden, its me zeigt wie dieseEditText ist nicht gut

enter image description here

ich jedes Thema nicht angewendet haben oder irgendeine Art von Stil zu Aktivität oder EditText.

Kann jemand die Lösung kennen?

Hier ist mein Layout-Code

<?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> 

Hier ist meine 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 
} 

}

+1

wie sollen wir um ohne den Code zu sehen? –

+0

Wo ist Ihre XML-Datei? – Rustam

+0

verwenden Sie Android Studio 2.2 Vorschau? –

Antwort