Android的ListView的scrollbarStyle [英] android ListView scrollbarStyle

查看:150
本文介绍了Android的ListView的scrollbarStyle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道在Android任何文件:scrollbarStyle?我希望看到每个4个值的例子瓦特/截图如果可能的话。我看到外面与放大器之间的差异;里面的类型,但什么样的插图和放大器;一开始的部分一回事呢?我不似乎看到insideOutset与功放之间的差; insideInset例如,同样的,我没有看到outsideOutset与功放之间的差; outsideOutset。

Does anyone know of any documentation on the android:scrollbarStyle? I'd like to see examples of each of the 4 values w/ screenshots if possible. I see the difference between outside & inside types, but what are the Inset & Outset parts all about? I dont seem to see a difference between insideOutset & insideInset for example, likewise, I don't see a difference between outsideOutset & outsideOutset.

在此先感谢! 本

推荐答案

有像outsideOutset和insideOutset没有值。可能的四个值是 insideOverlay,insideInset,outsideOverlay,outsideInset
该文件是在有以下两个链接...

There are no values like outsideOutset and insideOutset. Possible four values are insideOverlay, insideInset, outsideOverlay, outsideInset
the documentation is there at following two links...

<一个href="http://developer.android.com/reference/android/view/View.html#attr_android:scrollbarStyle">http://developer.android.com/reference/android/view/View.html#attr_android:scrollbarStyle

<一个href="http://developer.android.com/reference/android/view/View.html#SCROLLBARS_INSIDE_INSET">http://developer.android.com/reference/android/view/View.html#SCROLLBARS_INSIDE_INSET

我不明白的文件正确。 因此,采取从ApiDemos滚动演示的参考,我想这一点。但我发现,在 insideInset和outsideOverlay 没有区别。
这两个数值差异,或者它应该有两个为插图重叠

I couldn't understand the documentation properly. So taking reference from ApiDemos Scrollbar demo, I tried this. But i found that there is no difference in insideInset and outsideOverlay.
These two values are diff, either it should have both as Inset or Overlay

更新scrollbar3.xml是

updated scrollbar3.xml is

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<ScrollView
    android:id="@+id/view1"
    android:layout_width="100dip"
    android:layout_height="120dip"
    android:padding="8dip"
    android:scrollbarStyle="insideOverlay"
    android:background="@android:color/white"
    android:overScrollMode="never">
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#ffffff"
        android:background="@android:color/darker_gray"
        android:text="@string/scroll_text" />
</ScrollView>

<ScrollView
    android:id="@+id/view2"
    android:layout_width="100dip"
    android:layout_height="120dip"
    android:padding="8dip"
    android:scrollbarStyle="insideInset"
    android:background="@android:color/white"
    android:overScrollMode="never">
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#ffffff"
        android:background="@android:color/darker_gray"
        android:text="@string/scroll_text" />
</ScrollView>

<ScrollView
    android:id="@+id/view3"
    android:layout_width="100dip"
    android:layout_height="120dip"
    android:padding="8dip"
    android:scrollbarStyle="outsideOverlay"
    android:background="@android:color/white"
    android:overScrollMode="never">
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#ffffff"
        android:background="@android:color/darker_gray"
        android:text="@string/scroll_text" />
</ScrollView>

<ScrollView
    android:id="@+id/view4"
    android:layout_width="100dip"
    android:layout_height="120dip"
    android:padding="8dip"
    android:scrollbarStyle="outsideInset"
    android:background="@android:color/white"
    android:overScrollMode="never">
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#ffffff"
        android:background="@android:color/darker_gray"
        android:text="@string/scroll_text" />
</ScrollView></LinearLayout>

我希望有人会看到这一点,并澄清...

I hope someone will see this and clarify...

这篇关于Android的ListView的scrollbarStyle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆