ScrollView in TableLayout

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

ScrollView in TableLayout

Postby ORF401 » Sat May 10, 2008 12:47 am

This is my layout xml file:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4.  
  5.    android:id="@+id/myTableLayout"
  6.  
  7.    android:layout_width="fill_parent"
  8.  
  9.    android:layout_height="fill_parent"
  10.  
  11.    >
  12.  
  13. </TableLayout>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


I've been attempting to add a scroll bar for some time now, but I've had no luck. I've tried putting the ScrollView inside TableLayout, outside TableLayout, but with no luck. Does anybody have any idea as to what I should do so I can get the scroll working? Thank you for your help, this has been bothering me for some time now.

Edit: Stuff is added to the table dynamically while the program is running. Possibly I need to add something to my java code, I'm not sure. Thanks!
ORF401
Once Poster
Once Poster
 
Posts: 1
Joined: Sat May 10, 2008 12:41 am

Top

Postby ebersmoll » Mon Jun 09, 2008 7:48 am

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3.  
  4.    android:layout_width="fill_parent"
  5.  
  6.    android:layout_height="wrap_content"
  7.  
  8.    android:scrollbarTrackVertical="@drawable/scrollbar_vertical_track"
  9.  
  10.    android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb"
  11.  
  12.    android:scrollbarFadeDuration="1000"
  13.  
  14.    android:scrollbarSize="12dip"
  15.  
  16.    android:background="@drawable/white"
  17.  
  18.    android:textColor="@drawable/black"
  19.  
  20.    >
  21.  
  22. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  23.  
  24.    android:orientation="vertical"
  25.  
  26.    android:layout_width="fill_parent"
  27.  
  28.    android:layout_height="fill_parent">
  29.  
  30. <TableLayout
  31.  
  32.        android:id="@+id/headertable"
  33.  
  34.        android:layout_width="fill_parent"
  35.  
  36.        android:layout_height="wrap_content"
  37.  
  38.        android:stretchColumns="1"
  39.  
  40.        android:collapseColumns="2">
Parsed in 0.003 seconds, using GeSHi 1.0.8.4



such a thing is up and running with me
Windmill windmill on the land
love forever love is free
ebersmoll
Freshman
Freshman
 
Posts: 7
Joined: Fri Apr 04, 2008 4:41 am
Location: Delhi

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests