Problem getting a linearlayout to be scrollable

by Mike Topper » Tue, 25 May 2010 22:33:02 GMT


Sponsored Links
 ey,

I'm having problems with a layout I'm currently working with.
Everything looks fine with it in portrait mode, but when i switch to
landscape, the linearlayout that encompasses the textviews and
edittexts go below the end of the screen and you can't see/edit them.

I tried wrapping that linearlayout in a scrollview, but it didn't seem
to do anything.

below is the xml, i'm trying to wrap that first linear layout in a scrollview.

any help would be greatly appreciated.


<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_alignParentTop="true"
android:layout_height="wrap_content">


<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/customer_id" />
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText android:id="@+id/customerid_field"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/customer_id"
android:singleLine="true" />
<Button android:id="@+id/customerSelectButton"
android:text="@string/button_get_customers"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:bufferType="editable"
/>
</LinearLayout>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/po_number" />
<EditText android:id="@+id/ponumber_field"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/po_number"
android:singleLine="true" />

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/packet" />
<EditText android:id="@+id/packet_field"
android:layout_width="fill_parent"
android:layout_h



Other Threads

1. Sending info via Handler

I need to send some stuff to my gui thread and I'm doing this via a
handler. But I regularly need to send more then 1 piece of information
in one go and using the single Message.obj field won't work unless I
use an Object array or something. I'd really like to avoid this so
there is less object creation, is there a better I can send lots of
info in one go? The amount of information I send can be of variable
length, 1, 2 or 3 depending on the situation.

Thanks.
--~--~---------~--~----~------------~-------~--~----~

2. ******New Model Android Phone for sale******

It is not from HTC. It is from another chinese company. I have a
chance to order a new model unlocked GSM Android Phone. 624MHz CPU.
Perfect for developer/tester. However the minimal order is 250 sets.
The price is $360 at that amount. I think if we order 500 sets the
price can be lower. The product is available in on March 1st,
unlimited quantity.

Are there anyone else interested so that we can join force to order
together? Email me or reply this thread. If there are enough people I
will setup a website to organize this.

Vincent Wu



--~--~---------~--~----~------------~-------~--~----~

3. alsa-lib error during porting android to beagle

4. GSMA a disappointment for Android Developers

5. docs/reference/keywords.html

6. why does the code seem specific to msm platform ?

7. How to build new version of emulator