小弟我layout的XML有什么有关问题呢
我layout的XML有什么问题呢?

我希望绿色盖掉蓝色,按钮在右下角,或者绿色比蓝色的区域还宽,按钮在右边的屏幕之外,通过左右的滚动条才能拉到。
问题在哪里呢?
<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"
android:background="@color/RED"
tools:context=".MainActivity" >
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/BLUE"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/GREEN"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/YELLOW"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:text="@string/hello_world"
/>
</RelativeLayout>
</HorizontalScrollView>
</RelativeLayout>
我希望绿色盖掉蓝色,按钮在右下角,或者绿色比蓝色的区域还宽,按钮在右边的屏幕之外,通过左右的滚动条才能拉到。
问题在哪里呢?
- 1(原)Android理论梳理-No1异步处理之Handler相干机制
- 2android GPS 获取定位坐标信息解决方法
- 3Android学习笔记19:含有通知栏的进度条的Android下载文件
- 4android 语言定做
- 5Android快速开发必不可少的11个工具类
- 6eclipse中怎么修改项目名称 具体操作
- 7ScrollView里嵌套ListView,怎么禁用ListView的滚动事件,或者触发ListView滚动时调用父元素ScrollView的滚动事件
- 8listview 动态添加,该如何解决
- 9Android带明白按钮的EditText
- 10FBReaderJ学习笔记(3):Footer底部状态栏更改
- 上一篇:想要兑现开发一个小的安卓系统
- 下一篇:android监听缺息
文章评论
相关解决方案