Dear All,

I am trying to implement a custom view which can scroll vertically. My
XML layout is as follows

<FrameLayout
                android:id="@+id/passmenu"
                android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        >
                                <com.example.customview
                                        android:id="@+id/customView"
                                                
android:layout_width="fill_parent"
                                                
android:layout_height="fill_parent"
                                                />
                                <LinearLayout
                                android:id="@+id/menu_button"
                                android:orientation="horizontal"
                                android:layout_width="fill_parent"
                        android:layout_height="50px"
                        android:gravity="center"
                        android:layout_gravity="bottom"
                        >
                                        <Button
                                        android:id="@+id/ok"
                                        android:text="Ok"
                                        android:layout_width="0sp"
                                        android:layout_height="wrap_content"
                                        android:layout_weight="1"
                                        android:textSize="14sp"
                                        android:visibility="visible"
                                        android:layout_gravity="left"
                                        />
                                        <Button
                                        android:id="@+id/Exit"
                                        android:text="Exit"
                                        android:layout_width="0sp"
                                        android:layout_height="wrap_content"
                                        android:layout_weight="1"
                                        android:textSize="14sp"
                                        android:visibility="visible"
                                        android:layout_gravity="right"
                                        />
                        </LinearLayout>
        </FrameLayout>

I need to implement scrolling in the custom view which extends View.
I've tried all the options by embedding it the custom view in a
ScrollView. Embedding the whole FrameLayout in a ScrollView. Putting a
LinearLayout with vertical orientation around the CustomView and
embedding it in Scrolliew. But nothing makes the view to scroll.
Can anyone pleas tell me how can i implement scrolling in a custom
view.

I also saw a class Scroller. How can I use it to scroll my view.

Thanks in advance.
Androidguy

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