Anyone idea on the best way of making a horizontally scrolling list

by dm1973 » Wed, 14 May 2008 15:17:31 GMT


Sponsored Links
 I am looking to make a horizontally scrolling list (like the iphones
picture view) where you can use your finger to drag the the image
around and when you let go it either scrolls to in the last drag
direction or it resets the image.  Has anyone doe this?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Google Maps API Key not working? Only Grid!

I just included the Google Maps API into my project but I can't get it
to work...

My debug.keystore is located in:

"C:\Users\<myusername>\.android"

I copied it to "E:\Android" and generated the MD5 fingerprint like
this:

"C:\Program Files\Java\jdk1.6.0_24\bin>keytool.exe -list -alias
androiddebugkey
keystore "E:\Android\debug.keystore" -storepass android -keypass
android"

This was the fingerprint I got (deleted the last 6 chars):

7F:CA:45:08:3C:71:36:8F:7B:F5:93:24:13:XX:XX:XX

Then I built my apiKey on the official website. This is what I got
(deleted the last 6 chars):

0gIn_B6b3tH9UYB7Wl1AimWyQND7IdayPxxxxxx


In my "main.xml" I included the code for displaying the map:

<com.google.android.maps.MapView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/mapview"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:clickable="true"
    android:apiKey="0gIn_B6b3tH9UYB7Wl1AimWyQND7IdayPxxxxxx"
/>

The permissions are set, too! But if I run my application it shows me
an empty map (Only the grid is shown)!
I tried it about 20 times without success. Any help here?

-- 

2. TextView showing tops of 2nd line when lines="1" or maxLines="1" in 3.0

I am using a ListView to create a specialized grid of images.
The xml for the list items is:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/cover_art"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="horizontal">
        <RelativeLayout
                android:id="@+id/album0"
                android:layout_width="150dip"
                android:layout_height="170dip"
                android:layout_marginLeft="1dip"
                android:layout_marginTop="1dip"
                android:background="@drawable/cover_art_background">
                <ImageButton
                        android:id="@+id/cover_art0"
                        android:layout_marginTop="10dip"
                        android:layout_width="130dip"
                        android:layout_height="130dip"
                        android:scaleType="fitCenter"
                        android:src="@drawable/mce_logo_small"
                        android:layout_centerHorizontal="true">
                </ImageButton>
                <TextView
                        android:id="@+id/album_title0"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:maxLines="1"
                        android:textColor="#000"
                        android:textSize="14dip"
                        android:textStyle="bold"
                        android:gravity="center_horizontal"
                        android:layout_below="@id/cover_art0"
                        android:layout_centerHorizontal="true">
                </TextView>
        </RelativeLayout>

followed by more RelativeLayouts to give a row of items.
As you can see, the TextView is set to maxLines="1". This works fine
in an Android 2.2 device (EVO), On the Xoom, the only 3.0 device I
have available, I am getting the very tops of what would be a second
line, if the text is long enough to go to a second line. I have tried
android:lines="1" also. The only way I can get rid of the vestigial
part of the second line is to change android:layout_height to
="20dip".
Sorry, I have not run it on the emulator. Don't ask!

-- 

3. Security Fixes in Gingerbread MR2

4. Where is Platform Developer Guide (http://pdk.android.com) ?

5. Android - Socket Client side

6. WebView with custom headers (in pre-Froyo)

7. Android Display service restart