问题1:为什么滚动条出现后不能垂直滚动阅读文本下方的被遮挡的文字,就是不会滚动.
问题2:滚动条消失后就重现不了.
代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:context=".MainActivity" > <TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="false"
android:background="#fff"
android:textColor="#000"
android:textSize="20dp"
android:layout_margin="10dp"
android:scrollbars="vertical"
android:scrollbarStyle="outsideOverlay"
android:scrollbarFadeDuration="2000"
android:padding="10dp"
android:text="@string/hello_world" /></LinearLayout>
textview布局
问题2:滚动条消失后就重现不了.
代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:context=".MainActivity" > <TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="false"
android:background="#fff"
android:textColor="#000"
android:textSize="20dp"
android:layout_margin="10dp"
android:scrollbars="vertical"
android:scrollbarStyle="outsideOverlay"
android:scrollbarFadeDuration="2000"
android:padding="10dp"
android:text="@string/hello_world" /></LinearLayout>
textview布局
解决方案 »
- 打包出现conversion to dalvik format failed with error 1
- Android是否能够操作独立的sqlite数据库文件
- android模拟器程序运行时出现The application has stopped unexpectedly,please try again
- 有懂android的兄弟姐妹伐?有项目合作,待遇优厚
- 中科创达这公司如何
- 为什么手机锁屏后调用了oncreate 而同一程序用平板锁屏就不调用oncreate
- 为什么sqlite 查询不到数据??急,在线等!!
- 模拟器启动不了
- java.lang.NumberFormatException: null,这个异常好奇怪哈!!
- MTK IMEI 文件mp0b_001如何生成
- button的背景使用9.patch图片时,设置的text文字不显示,why?
- 首页滑动显示效果实现?
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="false"
android:background="#fff"
android:textColor="#000"
android:textSize="20dp"
android:layout_margin="10dp"
android:scrollbars="vertical"
android:scrollbarStyle="outsideOverlay"
android:focusable="true"
android:padding="10dp"
android:text="@string/hello_world" />
</ScrollView>
</LinearLayout>是这样吗?如果是这样那还是没效果