This code is not more successful :(

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:layout_width="fill_parent"
android:layout_height="fill_parent"
        >
                <WebView android:id="@+id/webview"
android:layout_width="fill_parent"
        android:layout_height="wrap_content" layout_weight="1"/>
        <Button android:layout_below="@id/webview"  android:id="@+id/
backButton" android:text="back3"
                android:layout_width="fill_parent"
android:layout_height="wrap_content"
                />
</RelativeLayout>



WebView releaseNoteView = (WebView) view.findViewById(R.id.webview);

On Jan 10, 5:29 pm, croco <[email protected]> wrote:
> Mark,
>
> Ok i got what you mean.
>
> I set android:layout_weight instead.
>
> The screen was about to display well webview on top with blank page
> with close button on top as expected, but when the loadURL is run it
> webview continue to cover the close button :(.
>
> Thanks to advice or maybe how do something clean with relativeview ?
>
> Croco
>
> actual code
>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>         android:layout_width="fill_parent"
> android:layout_height="wrap_content"
>         android:orientation="vertical">
>                 <WebView android:id="@+id/webview"
> android:layout_width="fill_parent"
>         android:layout_height="0px" android:layout_weight="1"/>
>         <Button android:layout_below="@id/webview"  android:id="@+id/
> backButton" android:text="back2"
>                 android:layout_width="fill_parent"
> android:layout_height="wrap_content"
>                 />
> </LinearLayout>
>
> On Jan 10, 4:27 pm, Mark Murphy <[email protected]> wrote:
>
> > croco wrote:
> > > Hello Mark,
>
> > > Yes i've tried to use scrollview after many unsucessful attempt to
> > > post my issue on the android group.
>
> > > On your advice i switched code to
>
> > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> > > android"
> > >    android:layout_width="fill_parent"
> > > android:layout_height="fill_parent"
> > >    android:orientation="vertical">
> > >            <WebView android:id="@+id/webview"
> > > android:layout_width="fill_parent"
> > >    android:layout_height="0px" layout_weight="1" />
> > >    <Button android:id="@+id/backButton" android:text="@string/
> > > close_button"
> > >            android:layout_width="fill_parent"
> > > android:layout_height="wrap_content"
> > >            android:layout_centerHorizontal="true" />
> > > </LinearLayout>
>
> > > But the webview still overrides all the screen space ;(
> > > Did i miss something ? or how i should write it to work with
> > > relativelayout please.
>
> > That is android:layout_weight.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Warescription: Three Android Books, Plus Updates, $35/Year
>
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to