scroll edit texts inside android app issue -


i have xml layout here , issue might have more 15 edittexts, now, tried add said app stopped, maybe put wrong way... need scroll screen , see edittexts.. here xml file

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical" >    <edittext         android:id="@+id/edittext1"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="emer"     />   <edittext         android:id="@+id/msgmbiemer"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="mbiemer"     />    <edittext         android:id="@+id/msgtelefon"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="nr. telefoni"     />        <edittext         android:id="@+id/msgadresa"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="adresa"     />        <edittext         android:id="@+id/msgora"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="ora e krijimit"     />        <edittext         android:id="@+id/msgper"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="per ke?"     />        <edittext         android:id="@+id/msgdyqan"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="dyqan"     />        <edittext         android:id="@+id/msgstatusi"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="statusi"     />   <progressbar android:id="@+id/progressbar1" style="?android:attr/progressbarstylelarge"  android:layout_width="fill_parent"  android:layout_height="wrap_content" />   <button android:id="@+id/button1"  android:layout_width="fill_parent"  android:layout_height="wrap_content" android:text="submit" />  </linearlayout> 

use following code.

<scrollview xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     >     <linearlayout        android:layout_width="match_parent"        android:layout_height="match_parent"        android:orientation="vertical" >            <edittext         android:id="@+id/edittext1"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="emer"        />        <edittext         android:id="@+id/msgmbiemer"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="mbiemer"        />            <edittext         android:id="@+id/msgtelefon"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="nr. telefoni"        />            <edittext         android:id="@+id/msgadresa"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="adresa"        />                <edittext         android:id="@+id/msgora"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="ora e krijimit"        />            <edittext         android:id="@+id/msgper"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="per ke?"        />             <edittext         android:id="@+id/msgdyqan"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="dyqan"        />                <edittext         android:id="@+id/msgstatusi"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:hint="statusi"        />                <progressbar          android:id="@+id/progressbar1"          style="?android:attr/progressbarstylelarge"          android:layout_width="fill_parent"          android:layout_height="wrap_content" />               <button          android:id="@+id/button1"          android:layout_width="fill_parent"          android:layout_height="wrap_content"          android:text="submit" />         </linearlayout> </scrollview> 

i hope you.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -