2012-02-22 117 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