Aligning webview and buttons...

by Breezy » Tue, 02 Feb 2010 10:37:24 GMT


Sponsored Links
 I want to put two buttons (not HTML) at the top of my view and the
webview below it...  Almost like frames in HTML, except the top frame
is android XML code, not an HTML frame.  I can get it somewhat like I
want, but whenever the HTML page is too big it goes up and under my
buttons, but at the bottom of the buttons I want the top of the
webview to start, all the time.  And the webview can scroll if
necessary.

Here's what I got, but it's not doing exactly what I was hoping
for....


<RelativeLayout
        xmlns:android=" http://schemas.android.com/apk/res/android" ;
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <RelativeLayout
                android:id="@+id/webviewbox"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
        >

            <WebView
        android:id="@+id/webview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:scrollbars="none"
    />

        </RelativeLayout>
                <Button
                        android:id="@+id/button1"
                        android:text="B1"
                        android:layout_height="wrap_content"
                        android:layout_width="100px"
                        android:layout_alignParentLeft="true"
                />
                <Button
                        android:id="@+id/button2"
                        android:text="B2"
                        android:layout_height="wrap_content"
                        android:layout_width="100px"
                        android:layout_alignParentRight="true"
                />

</RelativeLayout>

--



Aligning webview and buttons...

by Breezy » Wed, 03 Feb 2010 01:56:01 GMT


 Anyone have anything?




--


Sponsored Links


Other Threads

1. Bluetooth Connection

I want to use bluetooth to transmit a very small (size) signal from
one phone to another for a game. I haven't experimented with this (but
from what I remember from before my Android device) in order to
connect a device to your phone you had to okay it and/or have a
password for it as well. Is there anyway to program a secure zone
where you can bypass the "okaying" of the transmitted signal? I looked
and to talk to people at "Bump" and they said that you have to
physically bump and okay the person. I want to walk up to another
phone in my secure zone and send a signal to it. Let me know what you
think. Thanks in advance. - James

-- 

2. How to change TabWidget default grey color

Hi,

What is the supported way to set tabwidget color? I tried this:

    tabHost.getTabWidget().setBackgroundColor(somecolor)

It does what i want on 1.5 & 1.6 device e.g. it changes the color of he
space between tabs *and also *the tabs color.
On 2.1, it only changes the color of the space behind the tabs.

Any clue?

Cheers,
Thierry.

-- 

3. CLOSE WTA abis OTA update.... rooted milestone app force close?

4. SOLVED Downgrade Radio HTC G1

5. Subscript clipping in textview

6. Why it is so difficult to generate gen file

7. How to convert a xml page to speech???