android初学小菜 我遇到一个问题 高手来帮忙 把androidmanifest.xml和main.xml都贴上来看下~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼主的代码完全正确,没有任何问题。我把楼主的代码拷贝后,自己完善了main.xml后,运行正常。建议楼主重新建一个工程试试。我的main.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" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" android:id="@+id/text" /> <RadioGroup android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/RadGroup" > <RadioButton android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="On" android:id="@+id/Rad1" /> <RadioButton android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Off" android:id="@+id/Rad2" /> </RadioGroup></LinearLayout> android --- google map 问题 Android 界面制作的问题.大侠请指导 如果在两个activity里面传递数值 wifi的困惑 关于用dom来解析xml的奇怪问题 如网易彩票中的大转盘怎么实现的 开发一个安卓浏览器打开.DLL后缀的网页,需要什么特殊的方法 我下载的最新的linux ADT+eclipse中没有NDK anr伴随屏幕变暗的问题 程序中用socket通信,自己手机测试没问题,为什么外省的同学手机收不到?? [Android] 怎样方便的修改系统源代码 如何获取活动进程的列表?
我把楼主的代码拷贝后,自己完善了main.xml后,运行正常。建议楼主重新建一个工程试试。
我的main.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"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
android:id="@+id/text"
/>
<RadioGroup
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/RadGroup"
>
<RadioButton
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="On"
android:id="@+id/Rad1"
/>
<RadioButton
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Off"
android:id="@+id/Rad2"
/>
</RadioGroup>
</LinearLayout>