how to use <webview in xml layout?

18 views
Skip to first unread message

mody ahmed

unread,
Mar 26, 2015, 6:02:39 AM3/26/15
to python-fo...@googlegroups.com
Hi all ..am still learning about layout...but still don't know how to use <webView in xml layout in python
And for example this is the layout..hope someone help me
x="""<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<RelativeLayout
android:id="@+id/rl_relativeLayout"
android:layout_width="fill_parent"
android:layout_height="250dip"
android:layout_gravity="center_horizontal"
android:layout_margin="10dip" >

<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Latest Updates:"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textStyle="bold"
android:textSize="50"
android:background="#ffff0033"
android:layout_centerHorizontal="true"/>

<WebView
android:id="@+id/wb_webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@id/tv_title"
android:text="WebView"
android:background="#7fff00"
android:layout_marginTop="5dip"/>


<Button
android:id="@+id/bt_close"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:text="Close" />
</RelativeLayout>
</LinearLayout> """
Reply all
Reply to author
Forward
0 new messages