xml - Android cannot re-size LinearLayout -


i've been working on android application recently, , in last day or i've been working on gui using eclipse layout editor. unfortunately, can't resize linearlayout in way other x-dimension. can resize resizing textview contained within it. sushil stated, can't control height of linearlayout. code:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical" >      <scrollview         android:id="@+id/scrollview"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_weight="1" >          <linearlayout             android:id="@+id/helplinearlayout"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:layout_gravity="top"             android:orientation="horizontal" >              <textview                 android:id="@+id/infotitle"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="info:"                 android:textsize="35sp" />         </linearlayout>      </scrollview>  </linearlayout> 

try this. add android:fillviewport="true" scrollview

<scrollview             android:id="@+id/scrollview"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:fillviewport="true"> 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -