Android ScrollView inside LinearLayout -
i have problem layout (buttons) in andoid. want display buttons inside scrollview scrollview must below relativelayout or other words, first 2 buttons scrollview not displayed on phone..
here layout:
<relativelayout android:layout_width="fill_parent" android:layout_height="wrap_content"> <textview android:textappearance="?android:textappearancelarge" android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margintop="58.0dip" android:text="@string/naziv" android:layout_alignparenttop="true" android:layout_centerhorizontal="true" /> </relativelayout> <scrollview android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/scrollview" > <linearlayout android:layout_gravity="center" android:orientation="vertical" android:paddingleft="30.0dip" android:paddingtop="90.0dip" android:paddingright="30.0dip" android:paddingbottom="20dp" android:layout_width="fill_parent" android:layout_height="wrap_content"> <button android:id="@+id/button0" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_veter" /> <button android:id="@+id/button4" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_plimovanje" /> <button android:id="@+id/button1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_trenutni_podatki" /> <button android:id="@+id/button5" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_video" /> <button android:id="@+id/button2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_mbp" /> <button android:id="@+id/button10" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_wsg"/> <button android:id="@+id/button11" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_ath" /> <button android:id="@+id/button12" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_sts" /> <button android:id="@+id/button13" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_w" /> <button android:id="@+id/button14" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_dotb" /> <button android:id="@+id/button15" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_ast" /> <button android:id="@+id/button16" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_caw" /> <button android:id="@+id/button17" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/gumb_pado" /> </linearlayout> </scrollview> </linearlayout>
how diplay scrollview below text "morska bioloska postaja..."?
thank you
you need remove android:layout_gravity="center"
linearlayout
inside scrollview
. might want remove android:paddingtop="90.0dip"
.
Comments
Post a Comment