请教简单布局问题 大家好,刚接触android,目前想实现这样一个简单界面,一个Multiline Text和一个按钮,Text在上方,Button在Text下方,想实现Text输入内容的时候,Button跟随Text的高度自动调整位置;或者Text固定大小,然后里面有个ScrollBar之类的,根据内容自动伸缩 两种实现任何一种都行,能提供个思路就可以,当然最好写下代码,感谢大家。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <EditText android:id="@+id/EditText01" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scrollHorizontally="true" /> <Button android:id="@+id/Button01" android:text="Button01" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout> ant 打包Android Error:No resource found that matches the given name 用过Rokon引擎的大神来帮忙下啊谢谢了 请教如何用android画图 android x86问题 提高Android用户体验 简述Android触摸屏手势识别3 android 监听home键无效是怎么回事? 计算机科学与技术专业毕设如何选题? 怎么获取HorizontalScrollView滚动条的宽度? fragment中 getActivity 报空指针 Android平台如何调用DLL文件 启动ADT时报这样的错,怎么解决?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<EditText android:id="@+id/EditText01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollHorizontally="true" />
<Button android:id="@+id/Button01"
android:text="Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>