Android cannot re-size LinearLayout

I've been working on an android application recently, and in the last day or so I've been working on the GUI using the eclipse layout editor. Unfortunately, I can't resize my linearlayout in any way other than the x-dimension. I can also resize it by resizing the TextView contained within it. As sushil stated, I can't control the height of my linearlayout. My 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>

Answers


Try this. Add android:fillViewport="true" to the ScrollView

<ScrollView
            android:id="@+id/scrollView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fillViewport="true">

Need Your Help

asmx webservice doesn't read postdata

asp.net web-services webforms asmx

I have an .asmx webservice that works fine except it doesn't read prostdata. It looks like this:

external accessory and NSlog statements

ios

I have an external accessory plugged in my iPad. I cannot see my NSLog statements because my ipad can no longer be connected to my computer. Is there a way to still see the NSLog statements?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.