Hello, doing customView. Common issue: scroll bars not shown. Defined
*compute() methods. Shall I call in class constructor:

+
initializeScrollbars(context.obtainStyledAttributes(android.R.styleable.View));

?

If so, than how to define R.styleable.View in xml?
I tried this:


<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="View">
        <attr name="android:scrollX"/>
        <attr name="android:scrollY"/>
        <attr name="android:scrollbarAlwaysDrawHorizontalTrack"/>
        <attr name="android:scrollbarAlwaysDrawVerticalTrack"/>
        <attr name="android:scrollbarDefaultDelayBeforeFade"/>
        <attr name="android:scrollbarFadeDuration"/>
        <attr name="android:scrollbarSize"/>
        <attr name="android:scrollbarStyle"/>
        <attr name="android:scrollbars"/>
        <attr name="android:fadeScrollbars"/>
        <attr name="android:isScrollContainer"/>
</declare-styleable>
</resources>

But initializeScrollbars call rises exception. How to define
R.styleable.View properly?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to