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. Android on imx51 freescale board

Hello All,
               I have ported android 2.2 on imx51 nitrogen board
having IPU, VPU and GPU enabled. When i try to run sample test of
bootanimation in which open GL ES APis are implemented. But when i try
to run that test, it is giving following error.

"Color formats don't match.  Falling back to copy forward swap."

               I have implemented a sample application which read yuv
data from sample.yuv file and convert it to rgb565 and display it. It
is a simple C application. When i try to run VGA content, it is taking
too much time to display each frame. I counted time taken by each
frame, i found that glTexImage2D is taking around 55 msec of time to
load 640x480 image and also glDrawElements is also taking 40 msec of
time. eglSwapBuffers is also taking that much of time. CPU usage is
also too much and almost block by this application.

                I am really confused, if i use HW color conversion
then it shouls not take much time to convert from yuv to rgb. When i
call eglCreateWindowSurface and eglCreateContext i am getting same
error "Color formats don't match.  Falling back to copy forward
swap.".

                Can anyone guide me why it is not working properly. Am
i doing any wrong thing. Imx51 is having AMD GPU.

                The same test is working fine on TIs board like beagle
board and stalker board having PowerSGX GPU.

                Please guide me and correct me if i am wrong at any
place.

Thanks In Advance,
Tejas.

-- 

2. LELANG NEW Samsung Epic 4G Start IDR 3.000.000

Dear All,

Mohon izin untuk cross-posting, biar lelangnya lebih terbuka, dan para
bidder bisa memantau harga tertinggi...

http://www.kaskus.us/showthread.php?t=6062678

Terima kasih atas jalumnya

Salam

-- 
===============
"

3. App untuk kontrol pc.

4. (WTS ) HTC evo new

5. [WTS] HTC Evo 4G New

6. Official Froyo for Streak

7. How to read non-english fonts and display in app ?