Ok...its a minor problem.    My activity uses "wrap_content" and it
centes, so it sizes as needed.  The problem is that when I put 10
EditText boxes on the screen, the top two are off screen top side, and
you cant scroll to them.  I can scroll to the bottom with no
problems.  I added a padding on the top to get data to show, but the
window is still off the top.

I can live with my fix, but would like to know how to  correct the
problem. The window should have a little margin around all sides.  It
works fine if I have less data.  And, if I type enough data into an
EditBox, it expands to fill the window as expected.  I tried setting
margins, but that didnt work.

Hers is my stat code for the view.. the myShape file just sets the
corners
*****************************************************************
<ScrollView
  android:id                     ="@+id/ScrollView01"
  android:layout_width    = "wrap_content"
  android:layout_height   = "wrap_content"
  android:layout_gravity  = "center"
  android:scrollbars       = "none"
  xmlns:android   = "http://schemas.android.com/apk/res/android"; >
  <RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android";
        android:id              ="@+id/ItemViewID"
        android:orientation     ="horizontal"
        android:layout_width    ="wrap_content"
        android:layout_height   ="wrap_content"
        android:layout_gravity  ="center"
        android:background      ="@drawable/myshape"
        android:paddingLeft     ="5dp"
      android:paddingRight      ="5dp"
      android:paddingTop        ="625dp"
      android:paddingBottom     ="5dp"
 >

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to