Android emulator Emulator没有显示任何控件,需要帮助!

Android emulator Emulator没有显示任何控件,需要帮助!,android-emulator,Android Emulator,我是android开发新手。 我已经在main.xml中添加了一些控件,但是它们没有显示在模拟器上。 请告诉我我做错了什么。 这是我的xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_widt

我是android开发新手。 我已经在main.xml中添加了一些控件,但是它们没有显示在模拟器上。 请告诉我我做错了什么。 这是我的xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:gravity="center">

 <TextView   android:layout_width="fill_parent" 
             android:layout_height="wrap_content" 
              android:gravity="center" android:text="@string/app_name"          
           android:textSize="30dp"/>

<EditText android:id="@+id/editable"
             android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android.Text="Text goes here " android:layout_weight="1" android:hint="@string/display"/>       

<Button     android:id="@+id/button"
            android:layout_height="wrap_content" 
            android:layout_width="fill_parent" 
            android:text="@string/mainPageButton" 
            android:textSize="25dp"/>


</LinearLayout>

您有:

setContentView(R.layout.main);
在活动中的onCreate方法中