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. download of the android source

Hi,


The repository is HUGE (it include linux after all), and will take
hours. Once you have it, updates are pretty quick.
a...@debian:~$ du -sh mydroid/
6.6G    mydroid/
(ok, that's after building for the dream target... but it's still big!)


Yes, in the Android SDK.
Cheers
A
-- 
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
This will help you for 99.9% of your problems ...

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

2. View apps list in marketplace?

I searched through the groups but I can't seem to find an answer. I
want to see what apps are currently available in the marketplace. I
currently do not own any android hardware so I cannot go to the
marketplace through my phone.

What are my options for viewing currently available apps? I cannot
find a marketplace app in my emulator. The android marketplace website
gives a very limited listing of some apps on the main page but I am
sure this is not a complete listing. Apple has the iTunes browser,
what does google have? I do not plan on purchasing a $400 hardware
device just for this.

What is everyone else using?
--~--~---------~--~----~------------~-------~--~----~

3. Android Dev Phone 1 Setup

4. Official Android release structure (v1.0, v1.0.1, v1.0.2, etc)?

5. I hate layouts

6. Delay in phone responsiveness after web browsing

7. Communicating with rild