zoukankan      html  css  js  c++  java
  • Android小功能之垂直滚动条

    
    
     1 <?xml version="1.0" encoding="utf-8"?>  
     2 <ScrollView  
     3     xmlns:android="http://schemas.android.com/apk/res/android"  
     4     android:layout_width="fill_parent"  
     5     android:layout_height="fill_parent"  
     6     android:scrollbars="vertical"  
     7     android:fadingEdge="vertical">  
     8     <LinearLayout  
     9         android:layout_width="fill_parent"  
    10         android:layout_height="fill_parent"  
    11         android:orientation="vertical"  
    12         >  
    13     </LinearLayout>  
    14 </ScrollView>

    activity中经常只是一个LinearLayout,但这样的话,如果activity内容超过一屏,无法滚动查看下面的内容。这时只需在外面嵌套一个ScrollView就可以了

    转自:http://blog.csdn.net/yuxiaohui78/article/details/8167571

    我的GitHub:https://github.com/lelelongwang
  • 相关阅读:
    jQuery-css
    了解jQuery
    jQuery属性
    jQuery常用效果
    jQuery_$工具方法
    jQuery选择器
    jQuery核心对象
    $
    jQuery两把利器
    JavaScriptDOM
  • 原文地址:https://www.cnblogs.com/longjunhao/p/4235930.html
Copyright © 2011-2022 走看看