Android组件之使用ScrollView实现屏幕滚动【防止屏幕不够用】

来源:互联网 发布:淘宝卖虚拟赚钱吗 编辑:程序博客网 时间:2024/05/17 07:16

1 在LinearLayout外面包一层

    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"        android:layout_width="fill_parent"        android:layout_height="wrap_content" >    </ScrollView>
2 效果图

滑动前

2 滑动后



详细应该能看到其中的区别吧

原创粉丝点击