新手学习安卓怎样在RelativeLayout布局中怎样使textview与edittext分开。下面的程序做出来后还是没有分开

<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools=... <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.szy.textview.activity.MainActivity" >

<TextView
android:id="@+id/tv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello_world"
/>
<EditText
android:layout_width="0dp"
android:layout_height="0dp"
android:inputType="number"
android:maxLength="11"
/>
<EditText
android:id="@+id/et"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/phone"
android:inputType="number"
android:maxLength="11"
android:background="@drawable/shape"
/>
展开
 我来答
与猫地粉化1u
2015-04-30 · TA获得超过266个赞
知道小有建树答主
回答量:455
采纳率:0%
帮助的人:294万
展开全部
给EditText加上这条属性,具体数值自己改,还有其他方法的,我就不多说了
android:layout_marginTop="100dp"
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式