I have a bafflingly simple problem. Inside a PopupWindow, I'm using a
layout that goes like this:

<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/
res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:fillViewport="true">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

(etc., contents of RelativeLayout, all TextViews)

</RelativeLayout>
</HorizontalScrollView>

The code to display it looks like this:

        li = (LayoutInflater)
parent.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        pw = new PopupWindow(li.inflate(R.layout.sheet, null),
ViewGroup.LayoutParams.WRAP_CONTENT,
                        ViewGroup.LayoutParams.WRAP_CONTENT);

        /* ... some stuff to set the TextView text snipped ... */

        pw.showAsDropDown(parent.findViewById(R.id.sheet_anchor));

The window pops up fine and initially everything looks correct. When I
try scrolling with gestures, the scrollbar appears and moves back and
forth, but the contents of the RelativeLayout don't scroll at all.
There's also a gap in the popup that appears and chases the scrollbar
back and forth, a little to the left of it.

Anyone know what's going on here?

-- 
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