2012-02-22 94 views
-1

夥計們我是Android新手,實際上,我創建了一個帶有eclipse的android UI,它看起來像這樣(圖像),它不是一個真正的android UI,我怎麼能得到android真正的元素樣式?夥計們請幫我。我正在使用android 4.01項目。 我的main.xml如下Android UI問題

請看看這個截圖:

image 1

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

    <TextView 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:text="@string/hello" /> 

    <TextView 
     android:id="@+id/textView1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="TextView" /> 

    <Button 
     android:id="@+id/button1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="Button" /> 

    <ToggleButton 
     android:id="@+id/toggleButton1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="ToggleButton" /> 

    <CheckBox 
     android:id="@+id/checkBox1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="CheckBox" /> 

    <RadioButton 
     android:id="@+id/radioButton1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="RadioButton" /> 

    <Spinner 
     android:id="@+id/spinner1" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" style="@drawable/ic_launcher"/> 

</LinearLayout> 
+1

可以請你在這裏上傳圖片?我無法訪問鏈接,因爲我現在在工作! – Hiral 2012-02-22 13:20:43

+0

我被禁止在這裏上傳圖片老兄! :(你不能從這裏看到圖像嗎? – 2012-02-22 13:22:52

+0

它很難理解你的意思是「它不是一個真正的android UI,我怎麼能得到android真正的元素樣式?」。你在這裏給出的xml,isn 't那工作嗎? – Hiral 2012-02-22 13:22:56

回答

2

更改您的Android項目,以3.0或2.3,也許這將幫助你

+0

然後它是作品,謝謝你們.. – 2012-02-23 05:02:14