TextView 文字垂直滚动:

法一:

        android:layout_width="fill_parent"
        android:layout_height="80px"
        android:fadingEdge="vertical"
        android:scrollbars="vertical" >


                    android:id="@+id/rFileContent"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
             />
   

不能显示滚动条,不知道怎么显示。

法二:

android:maxLines = "AN_INTEGER"
android:scrollbars = "vertical"
然后在的代码中用:
yourTextView.setMovementMethod(new ScrollingMovementMethod());

更多相关文章

  1. android:maxLines="1"截取显示不全,用android:singleLine="true"
  2. Android(安卓)滚动字幕ScrollTextView
  3. android广播监听短信并显示内容
  4. Android(安卓)android:persistentDrawingCache的几个默认属性值
  5. Android设置文本框单行多行显示
  6. Android(安卓)ExpandableListView同时显示多种不同类型字列表
  7. 直播软件源码android ui LinearLayout中按扭平行显示
  8. Android使用AchartEngine绘制曲线图
  9. android > WebView > 布局

随机推荐

  1. 使刚打开页面时EditText不自动闪光标
  2. Android LinearLayout及TextView的布局方
  3. android edittext 限制输入框小数位数
  4. android内部培训视频_第一节
  5. android 计时器线程
  6. android greenDao3.2.2存储数据
  7. android:动态创建多个按钮 并给每个按键添
  8. android 预置apk so库 jar包等
  9. Android Studio之Instant Run
  10. Android - 信息列表页面【仿】淘宝App