Android 安卓用户界面问题
伙计们,我是Android新手实际上,我用eclipse创建了一个Android UI,它看起来像这样(图),它不是一个真正的Android UI,我怎样才能得到Android真正的元素样式?伙计们,帮帮我。我正在使用android 4.01项目。 我的main.xml如下所示 请看这个屏幕截图:Android 安卓用户界面问题,android,user-interface,android-xml,Android,User Interface,Android Xml,伙计们,我是Android新手实际上,我用eclipse创建了一个Android UI,它看起来像这样(图),它不是一个真正的Android UI,我怎样才能得到Android真正的元素样式?伙计们,帮帮我。我正在使用android 4.01项目。 我的main.xml如下所示 请看这个屏幕截图: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.
<?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>
将您的android项目更改为3.0或2.3,也许这会对您有所帮助您能在这里上传图片吗?我无法访问链接,因为我现在正在工作!我不允许在这里上传图片,伙计!:(你不能从这里看到图片吗?很难理解你所说的“它不是一个真正的android UI,我如何才能获得android真正的元素样式?”。您在这里提供的xml不起作用吗?这不是真正的android UI
是什么意思?这是android 4冰淇淋三明治附带的全新Holo主题。这是您可以获得的最纯粹的android UI…(顺便说一句:style=“@drawable/ic_launcher”
是错误的!您需要设置样式,而不是可绘制的!)谢谢,是吗?我怎样才能得到使用姜饼的主题呢?