java - How do I remove the extra pixels at the top of a ScrollView? -


i have been working on app allows create truth table , save html use in word. have app working fine trying clean bit. have following layout code allow scroll table while still keeping name row @ top:

    <relativelayout         android:id="@+id/rellayout"         android:layout_width="wrap_content"         android:layout_height="fill_parent" >          <tablelayout             android:id="@+id/nametable"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_margin="1dp" >              <tablerow                 android:id="@+id/namerow"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content" />         </tablelayout>          <scrollview             android:id="@+id/scrollview1"             android:layout_width="wrap_content"             android:layout_height="fill_parent"             android:scrollbarstyle="insideoverlay"             android:scrollbars="vertical" >              <tablelayout                 android:id="@+id/truthtablelayout"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_margin="1dp"                 android:background="#000000" >             </tablelayout>         </scrollview>     </relativelayout> </horizontalscrollview> 

this works fine me overall, when scroll table doesn't fade , instead shows few pixels above name row. question how can make pixels go away?

because don't have reputation post images, here link screenshot of i'm talking about. http://i.imgur.com/4kwc32o.png

for starters margin here:

   <tablelayout         android:id="@+id/nametable"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_margin="1dp" > 

should 0 on top. if need side margins should be:

   <tablelayout         android:id="@+id/nametable"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_marginright="1dp"         android:layout_marginleft="1dp" > 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -