Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
my Scrollbar is moving out of the lay out .. how to fix that..
I tried scroll bar size .. but its not working..
i dont know where i am strucking.. this is my code..

<br />
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android"><br />
    android:layout_width="wrap_content"<br />
    android:layout_height="wrap_content"<br />
    android:layout_marginTop="10dp"<br />
    android:removed="@drawable/pop_up_peopleup"<br />
    android:paddingLeft="10dp" ><br />
<br />
    <textview><br />
        android:id="@+id/txt_list"<br />
        android:layout_width="wrap_content"<br />
        android:layout_height="30dp" /><br />
<br />
    <scrollview><br />
        android:id="@+id/scroller"<br />
        android:layout_width="wrap_content"<br />
        android:layout_height="wrap_content"<br />
       ><br />
<!--         android:layout_marginTop="30dip" --><br />
      <br />
<!--         android:fadingEdgeLength="5dip" --><br />
<!--       android:scrollbars="none" > --><br />
<br />
        <linearlayout><br />
            android:id="@+id/tracks"<br />
            android:layout_width="wrap_content"<br />
            android:layout_height="wrap_content"<br />
            android:layout_weight="1"<br />
       <br />
            android:orientation="vertical"<br />
            android:paddingBottom="10dp"<br />
            android:paddingLeft="10dp"<br />
            android:paddingRight="25dp"<br />
            android:paddingTop="0dp" /><br />
    </linearlayout></scrollview><br />
<br />
    <ImageView<br />
        android:id="@+id/arrow_up"<br />
        android:layout_width="wrap_content"<br />
        android:layout_height="wrap_content"<br />
        android:src="@drawable/arrow_up"<br />
        android:visibility="gone" /><br />
<br />
    <ImageView<br />
        android:id="@+id/arrow_down"<br />
        android:layout_width="wrap_content"<br />
        android:layout_height="wrap_content"<br />
        android:layout_below="@id/scroller"<br />
        android:layout_marginTop="-4dip"<br />
        android:src="@drawable/arrow_down"<br />
        android:visibility="gone" /><br />
<br />
</textview></relativelayout>
Posted
Updated 3-Jun-14 9:44am
v3
Comments
ridoy 3-Jun-14 15:54pm    
That is a very very weird design i should say! You should use layout_weight for an specific layout and then need to set scrollbar match_parent.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900