ScrollView cycle?

by Michael Dorin » Fri, 23 Apr 2010 00:07:01 GMT


Sponsored Links
 Anyway to have a ScrollView cycle back to the beginning when the end
is reached....or to the end when trying to scroll past the beginning?

Thanks,

-Mike

--



ScrollView cycle?

by ~ TreKing » Fri, 23 Apr 2010 01:41:32 GMT


 



See this thread:


Sponsored Links


Other Threads

1. AppWidget on Homescreen: How to focus ImageView or TextView with trackball?

Hi,

I coded an AppWidget the user can add to his homescreen. There are a
bunch of images (ImageView) in it that perform different actions like
starting Activities on click (realised with PendingIntents). To make
it easier to navigate through the AppWidget I'd like to use the
trackball (as it works with the SearchWidget or FacebookWidget) but I
just can't make it work.
Here's my layout code for the AppWidget:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:id="@+id/relativeLayoutLevel1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
    android:background="@drawable/widget_bg"
        android:focusable="true"
        android:focusableInTouchMode="true">

    <RelativeLayout android:id="@+id/SpotX"
android:addStatesFromChildren="true" android:gravity="center"
android:layout_width="67dip" android:layout_height="67dip"
android:background="@layout/backgroundchange"
android:layout_marginLeft="22dip" android:layout_marginTop="34dip"
android:clickable="true" android:focusable="true"
android:focusableInTouchMode="true">
                <ImageView android:id="@+id/Button1"
android:layout_centerHorizontal="true" android:maxWidth="48dip"
android:maxHeight="48dip" android:src="@drawable/appazaar_logo"
android:layout_width="48dip"    android:layout_height="48dip"
android:paddingTop="1dip" android:focusable="true"
android:focusableInTouchMode="true"/>
                <TextView android:id="@+id/Text1"
android:layout_centerHorizontal="true" android:layout_below="@id/
Button1" android:maxWidth="66dip" android:layout_width="66dip"
android:layout_height="19dip" android:text="Appazaar"
android:maxLines="1" android:textColor="#111111"
android:typeface="sans" android:textSize="13dip"
android:gravity="center_horizontal" android:focusable="true"
android:focusableInTouchMode="true"/>
        </RelativeLayout>
...
</RelativeLayout>

So I want to be able to navigate through a bunch of these "Spots" that
are all relativeLayouts. How can I make that work out?
I'd be really happy about every hint or idea!

Cheers

Moritz

-- 

2. DOM, SAX or XMLPullParser ? Any suggestions ?

> I was wondering whether anybody, who has experience using the

I saw one study (sorry, don't have the link handy) that indicated that on
Android SAX and XPP were roughly equivalent in terms of performance. XPP
really shines with the "binary XML" that resources get turned into as part
of the APK packaging process. DOM, as you indicated, is much slower,
though it has its uses.

There is a link to some sample code on the main xmlpull.org site:

http://xmlpull.org/v1/download/unpacked/doc/quick_intro.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 

3. Filtering urls within an activity's intent-filter?

4. Filtering urls within an activity's intent-filter?

5. Filtering urls within an activity's intent-filter?

6. Avail. Nexus One

7. loading files(images) from sdcard in webView