I have problem to set the height and width of a image view inside a Fragment activity. I am using the Layout Param. My code is like this View rootView = inflater.inflate(R.layout.book_details_layout, container, false); pdf_image = ((ImageView) rootVi
can we render pdf and show it on web view in android. kindly help me outYes you can load PDF in Webview using Google's gview, It is a trick. Here you can have my solution for the same trick: Android - Load PDF / PDF Viewer.
There is one ImageView in my homescreen widget. In the layout file, I am setting the height and width to wrap_content. But depending on user's input, I have to change its height and width to match_parent. How can this be done ? RemoteViews rv = new R
i'm trying to inflate a custom layout in an alertdialog. I get it, but width is expanded to fill_parent. I have tried in xml file to put wrap_content or custom size (example 200dp) and it's ever fill_parent. I want to put my own height and width, lik
Where do I set the web-service host name for an EJB3 client, when the web-service client is injected.You didn't specify any information. Please do. Before that, I'll assume you have @WebServiceClient annotation. It has a wsdlLocation property which c
I made HTML file with JavaScript functions in and Android UI to call these functions. I don't know how to call JS in web views on Android. Please help. Example: //JavaScript <script> function doSomething(){ //do something } </script> //Android
I have a website of which I have made the mobile version . Now, thing I want is to open the URL in web view and successfully I have done it , next thing is I want that when user login or click any button it should remain in the web view instead of go
I am using below code to set an imageview's width. but it is not working. xml: ` <ImageView android:id="@+id/card2" android:layout_width="100dp" android:layout_height="wrap_content" android:layout_alignParentBottom="t
I have defined the following custom dialog view: public class MyDialog extends Dialog { public MyDialog(Context context) { super(context); } @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentV
I am trying to load a url using webview in android. This is how my webview looks like public class WebViewFragment extends Fragment { private static final String LOG_TAG = WebViewFragment.class.getName(); @Nullable @Override public View onCreateView(
There's a webpage I pull up with webview, however i'd like to hide the 1 text link at the top. Is there a way to do this? The link is in the body, so I can't hide the body element in whole. The webpage is all text, and one tiny image at the bottom, b
I am developing an application where I am showing different web pages in different web views. At present, I am using next and previous button to go to next and previous page respectively. But I want to add slide gesture to go to next and previous pag
The WebView control on android, does it support SSL? I am trying to load a web page that uses a trusted ssl certificate but the WebView is just white. Any suggestions?Not an expert, just what i could find on the web. from what I understand, the WebVi
I use the sample provided by Google for demonstrating two way communication between JavaScript and Java , ref[1]: http://code.google.com/p/apps-for-android/source/browse/trunk/Samples/WebViewDemo/src/com/google/android/webviewdemo/WebViewDemo.java Th