Display small portion of HTML file in WebView

by Anurag Singh » Wed, 21 Apr 2010 10:49:49 GMT


Sponsored Links
 Please use webView.loadData("<html><body>Hello, world!</body></html>",
"text/html", "UTF-8");

There are so many navigation functions to move forward and back, like

goBack(), canGoBack(), goForward(), canGoForward(), reload() etc.

- Anurag Singh





>



Display small portion of HTML file in WebView

by mansur » Wed, 21 Apr 2010 14:31:46 GMT


 Thanks for your reply.
but we want to display some portion of the html file. the next
remaining content should be displayed on click of  '>' (which is at
the bottom of the screen) Its like e book reader where you are reading
book page wise.

Thanks and Regards,
Mansur Agasar





> >


Sponsored Links


Display small portion of HTML file in WebView

by Kumar Bibek » Thu, 22 Apr 2010 17:48:31 GMT


 The user can surely use the scroll of the browser. Browsers are for
displaying the whole HTML. You cannot  even do that in Desktop, unless
you change your HTML code. :)

Thanks and Regards,
Kumar Bibek





> > >



Other Threads

1. custom widgets in animation

Hi

I am struggling trying to render to custom widget as part of ViewFlipper.
when I try to access my widget from the layout file, it gives me a null
pointer exception. However putting them all into the java code is not very
clean. I am wondering if someone can share few example on how render the
ViewFlipper that would flip between two FrameLayout both identitcal
containing a custom widget .

Also, even with the ViewFlipper, I am unable to access the ViewFlipper
object from resource file. It gives me a null pointer exception. Two frame
layouts stored a resource files as frame1 and frame2.  all the viewFlipper
does is to flip between two views.



//main.xml file


<?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"* >

<ViewFlipper

android:id=*"@+id/flipper"
*

android:layout_width=*"fill_parent"
*

android:layout_height=*"fill_parent"* android:layout_marginBottom=*"20dp"*>

<include android:id=*"@+id/first"* layout=*"@layout/first_view"* />

<include android:id=*"@+id/second"* layout=*"@layout/second_view"* />

</ViewFlipper>

</LinearLayout>



//code...

setContentView(R.layout.*main*);

ViewFlipper *vp* = (ViewFlipper)this.findViewById(R.id.flipper);

/the above gives me error..first view and second view contains custom
widget.



//first view..

<?xml version=*"1.0"* encoding=*"utf-8"*?>

<FrameLayout

xmlns:android=*"http://schemas.android.com/apk/res/android"
*

android:layout_width=*"match_parent"
*

android:layout_height=*"match_parent"
*

android:id=*"@+id/main_layout"
*


<Button

android:id=*"@+id/Button01"*

android:layout_width=*"wrap_content"*

android:layout_height=*"wrap_content"* android:paddingBottom=*"5dp"*>

</Button>

</FrameLayout>

-- 

2. RERUN e-lifestyle MetroTV ttg programmer Gadget HARI INI pk. 11.05 WIB

RERUN e-lifestyle MetroTV ttg programmer Gadget
HARI INI senin 24/01/2011 pk. 11.05 WIB
isinya ANDROID vs BB :)))

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

3. [WTAsk] soal rooting HH.

4. WTNgelamun : Gadget Impian

5. sharing game buat tab

6. [WTA] google gooles error

7. [WTI] OOT< Hati-Hati PENIPUAN!!!