Wednesday 15 July 2015

android - Having some problems with scrollview -



android - Having some problems with scrollview -

i'm beginner working on android app , need utilize scroll view can have plenty space set many questions on screen. set scroll view, when go graphical layout can see first questions, , still don't have plenty space set rest of them.it's can't scroll downwards add together more. possible it? using eclipse google android bundle installed.

here's xml code:

<scrollview xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="match_parent"> <relativelayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" > <textview android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:layout_margintop="16dp" android:text="surse de venit:" android:textappearance="?android:attr/textappearancemedium" /> <textview android:id="@+id/textview2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignbaseline="@+id/textview1" android:layout_alignbottom="@+id/textview1" android:layout_alignparentright="true" android:layout_marginright="18dp" android:text="(ron)" android:textappearance="?android:attr/textappearancesmall" /> <textview android:id="@+id/textview3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@+id/textview1" android:layout_below="@+id/textview1" android:layout_margintop="35dp" android:text="@string/x1" android:textappearance="?android:attr/textappearancesmall" /> <textview android:id="@+id/textview5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@+id/textview4" android:layout_below="@+id/textview4" android:layout_margintop="24dp" android:text="@string/x3" android:textappearance="?android:attr/textappearancesmall" /> <textview android:id="@+id/textview4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@+id/textview3" android:layout_below="@+id/textview3" android:layout_margintop="21dp" android:text="@string/x2" android:textappearance="?android:attr/textappearancesmall" /> <edittext android:id="@+id/x1txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignbaseline="@+id/textview3" android:layout_alignbottom="@+id/textview3" android:layout_alignleft="@+id/textview2" android:layout_alignright="@+id/textview2" android:ems="10" android:inputtype="numbersigned" /> <textview android:id="@+id/textview6" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@+id/textview5" android:layout_below="@+id/textview5" android:layout_margintop="25dp" android:text="@string/x4" android:textappearance="?android:attr/textappearancesmall" /> <edittext android:id="@+id/x2txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignbaseline="@+id/textview4" android:layout_alignbottom="@+id/textview4" android:layout_alignleft="@+id/x1txt" android:layout_alignright="@+id/x1txt" android:ems="10" android:inputtype="number" /> <edittext android:id="@+id/x3txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignbaseline="@+id/textview5" android:layout_alignbottom="@+id/textview5" android:layout_alignleft="@+id/x2txt" android:layout_alignright="@+id/x2txt" android:ems="10" android:inputtype="numbersigned" > </edittext> <edittext android:id="@+id/x4txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignbaseline="@+id/textview6" android:layout_alignbottom="@+id/textview6" android:layout_alignleft="@+id/x3txt" android:layout_alignparentright="true" android:layout_marginright="19dp" android:ems="10" android:inputtype="numbersigned" /> <textview android:id="@+id/textview7" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@+id/textview6" android:layout_below="@+id/x4txt" android:layout_margintop="24dp" android:text="@string/ven" android:textappearance="?android:attr/textappearancemedium" /> <textview android:id="@+id/textview9" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignright="@+id/textview6" android:layout_below="@+id/textview8" android:layout_margintop="22dp" android:text="@string/y1" android:textappearance="?android:attr/textappearancesmall" /> <textview android:id="@+id/textview8" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@+id/textview9" android:layout_below="@+id/textview7" android:layout_margintop="44dp" android:text="cheltuieli:" android:textappearance="?android:attr/textappearancemedium" /> <textview android:id="@+id/textview10" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@+id/textview9" android:layout_below="@+id/textview9" android:layout_margintop="21dp" android:text="@string/y2" android:textappearance="?android:attr/textappearancesmall" /> </relativelayout> </scrollview>

any suggestions? in advance!

all need add together android:fillviewport="true" scrollview in xml

android android-layout

No comments:

Post a Comment