为甚EditText只显示一部分
还有背景蓝色为甚会覆盖其他控件颜色<RelativeLayout
android:id="@+id/cfc000"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="#0000FF"
android:padding="10px">
<TextView
android:id="@+id/cfc001"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="hello cfc:"/>
<EditText
android:id="@+id/cfc002"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/cfc001"
android:layout_marginTop="10px"/>
<Button
android:id="@+id/cfc003"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="确定"
android:layout_alignRight="@id/cfc002"
android:layout_below="@id/cfc002"/>
<Button
android:id="@+id/cfc004"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="取消"
android:layout_toLeftOf="@id/cfc003"
android:layout_below="@id/cfc002"
android:layout_marginRight="50px"
android:paddingTop="20px"/>
</RelativeLayout>
android开发控件layoutrelativelayout
还有背景蓝色为甚会覆盖其他控件颜色<RelativeLayout
android:id="@+id/cfc000"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="#0000FF"
android:padding="10px">
<TextView
android:id="@+id/cfc001"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="hello cfc:"/>
<EditText
android:id="@+id/cfc002"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/cfc001"
android:layout_marginTop="10px"/>
<Button
android:id="@+id/cfc003"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="确定"
android:layout_alignRight="@id/cfc002"
android:layout_below="@id/cfc002"/>
<Button
android:id="@+id/cfc004"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="取消"
android:layout_toLeftOf="@id/cfc003"
android:layout_below="@id/cfc002"
android:layout_marginRight="50px"
android:paddingTop="20px"/>
</RelativeLayout>
android开发控件layoutrelativelayout
解决方案 »
- 求助,可不可以利用智能手机上的传感器来区分手机是在室内还是室外
- 太诡异了!点击SDK Manager居然说jdk找不到!
- 求教,如何打包.apk?
- 写了一个 贪吃蛇小程序 结果出错 请大家帮忙看下
- android测试中,出现空指针怎么办?如何防止空指针错误。
- 天天酷跑外挂谁会?android版
- Gson 和Map数组的相互转化
- Activity如何获取BroadcastReceiver从服务器请求回来的值
- 在logcat里发现输出了异常,我点那行红字异常,它就打开了JavaPerspective视图,并且自动跳了到个这视图,我想让它仍保持在DDMS视图100分
- 页面activity跳转小问题
- 求教
- 如何android开发时,放置一张写好的数据库的表
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
你是给RelativeLayout设置的背景色,所有包含在这个RelativeLayout的View都会用这个背景色啊。