show html file

Put your problem here if it does not fit any of the other categories.

Postby soniya » Thu Feb 28, 2008 2:46 pm

but i used image file to raw/zip file....can we access file to path on webview????
soniya
Senior Developer
Senior Developer
 
Posts: 111
Joined: Mon Jan 14, 2008 1:52 pm
Location: india

Top

Postby plusminus » Thu Feb 28, 2008 4:13 pm

Hello soniya,

you have a a image inside of a zip in /raw/ and you want to refer to it with a single html tag :?:
Impossible :!:

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby soniya » Fri Feb 29, 2008 2:58 pm

thanks for reply if i try image show after webview
using xml code

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <WebView android:id="@+id/WebView"
  2.  
  3.      android:layout_below="@id/listimg1"
  4.  
  5.      android:layout_marginTop="10px"
  6.  
  7.      android:layout_marginLeft="@dimen/ten_pixel"
  8.  
  9.      android:layout_marginRight="30px"
  10.  
  11.      android:layout_width="fill_parent"
  12.  
  13.      android:layout_height="fill_parent"
  14.  
  15.    
  16.  
  17.       />
  18.  
  19.        <ImageView android:id="@+id/showimg"
  20.  
  21.         android:layout_width="fill_parent"
  22.  
  23.         android:layout_height="fill_parent"
  24.  
  25.        android:layout_below="@id/WebView"
  26.  
  27.        android:src="@drawable/icon"
  28.  
  29.       android:layout_marginBottom="@dimen/listsix"
  30.  
  31.      />
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


and in java simple use loaddata()

but it cannot show anything
how to show image after webview????how to get height of webview??
soniya
Senior Developer
Senior Developer
 
Posts: 111
Joined: Mon Jan 14, 2008 1:52 pm
Location: india

Postby plusminus » Fri Feb 29, 2008 3:36 pm

Hello soniya,

your webview already fills the whole screen:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.       android:layout_width="fill_parent"
  2.       android:layout_height="fill_parent"
Parsed in 0.000 seconds, using GeSHi 1.0.8.4


so the ImageView will be offscreen.

You can determine the height/width of a View by calling .getHeight() / .getWidth().

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby soniya » Fri Feb 29, 2008 3:57 pm

thanks a lots it working....... :lol: :D
soniya
Senior Developer
Senior Developer
 
Posts: 111
Joined: Mon Jan 14, 2008 1:52 pm
Location: india

Top
Previous

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 11 guests