Android :: WebView's Use Of AbsoluteLayout
Jul 14, 2009
Are there currently any plans to replace AbsoluteLayout in in WebView? I need to place native controls based on the coordinates of elements in the WebView. I'm currently using a separate View to manage the layer, but I'd prefer to override the layout in WebView.
View 2 Replies
Dec 21, 2009
I understand the problems with assigning a fixed position to UI components, but I would like to use AbsoluteLayout in a way such that the position of the components are chosen dynamically, calculated based on the screen size.Here is why I am thinking this may be easiest:I want to display a nXm grid of imageViews on the screen (n,m chosen by the user) with 0 padding betweeen the image Views.With absoluteLayout, I could easily choose the size of the imageViews and in a way that maximizes the amount of the screen that is used.The reason that using relativeLayout or LineraLayouts may not work for this is because when a user touches an image in this grid, I would like it to "pulse" (quickly scale larger than back to its normal size).If I scale an imageView using realtive or linear layout,it would resize the adjacent imageViews (since the padding is 0), which I don't want.
I would prefer permitting temporary overlapping of the imageViews.This is currently the approach I have taken, except instead of changing the position of imageViews, I am just drawing bitmaps to the canvas at the locations I calculated.I can't use the animation framework, however, on bitmaps that I draw to a canvas.Is this an acceptable use for AbsoluteLayout, or is there a better way to achieve what I want to do here?
View 6 Replies
View Related
Apr 29, 2009
I have just realised that AbsoluteLayout has been deprecated in the latest sdk, however I have designed my apps based on AbsoluteLayout and it is very difficult for me to remove them and change it to a different layout. Can someone help me as to how I should proceed? Absolute layout was really helpful in positioning the elements to be accurate. One could always had different layout definitions for different screen sizes, and based on the current width and height the required layout can be set. Removing of AbsoluteLayout is creating a lot of frustration to me as I have already designed most of the things using it. Somebody please help me out.
View 11 Replies
View Related
Sep 10, 2010
I see posts saying that FrameLayout is the alternative, and that I should use margins to position things (this strikes me as wildly counter intuitive, but ok... if it works, I'll take it). However, I can't get it to work, so, I'm looking for assistance. I'm aware of the fact that this may mean different things on different devices. I'm ok with that. I simply need a way to, programatically, and at run time, place an item at a SPECIFIC location. I don't want to rely on gravity (or the laws of thermodynamics). I just want to specify a location and have the element appear there :)
View 3 Replies
View Related
Mar 12, 2009
AbsoluteLayout has become obsolete, I need to convert it to FrameLayout.My problem is in AbsoluteLayout. LayoutParams, I can specify (x,y) in the constructor, which specify the location of my view during layout.How can I achieve using FrameLayout + FrameLayout.LayoutParams?
View 14 Replies
View Related
Oct 20, 2010
I'm making a android aplication, and I need creates buttons in the java files because the amount of buttons is variable and the coordinate of each button too. So, I don't know how set the coordinates x,y in java. Do you know what method i can use to set this values?
View 2 Replies
View Related
Jul 21, 2010
i want to centralize the textview in the absolutelayout. but there is not setgravity in absolutelayout is there anyone know how to do that?
View 4 Replies
View Related
Jan 8, 2010
Can anyone give me a tip for how to get the position of a view what is a child of an AbsoluteLayout? I want to do this for drag and drop the selected view.
View 2 Replies
View Related
May 4, 2009
since I have updated my project (http://code.google.com/p/ bestcardgameever-android/) to the 1.5SDK, I need to switch the deprecated AbsoluteLayout with something else. The problem is the project is a card game that has cards showing and some of them need to be overlapping (take a look at this note the cards in the center) I could really use a tip on how to do this with a FrameLayoutetc.
View 4 Replies
View Related
Feb 17, 2010
The AbsoluteLayout class is deprecated but still can write it in code and it works. Will there be any problems if I use this class? Will the application work correctly after I deploy it on a phone?
View 1 Replies
View Related
Jun 13, 2009
I noticed that AbsoluteLayout is deprecated in the latest SDK. AbsoluteLayout is an important piece to implementing drag and drop. If it disappears in a later release, what will be the solution to implement drag and drop?
View 2 Replies
View Related
Feb 3, 2010
I have to display 10 images(which will be taken form url) and related Text Both imageUrl and text will come from XML parsing.My Question is how we can display image into scrollable format
View 2 Replies
View Related
Jun 17, 2010
How do I do if I whant to move the ball from x=247dip y=96dip to x=100 and y=100 while my app is running?
View 1 Replies
View Related
Feb 18, 2009
The documentation at http://code.google.com/android/reference/android/widget/AbsoluteLayout.html says:
onLayout(boolean changed, int l, int t, int r, int b) //Called from layout when this view should assign a size and position to each of its children. So I overrode it like this:
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
Log.d("test", "In MainLayout.onLayout");
int childCount = getChildCount();
for (int childIndex = 0; childIndex < childCount; childIndex++) {
getChildAt(childIndex).setLayoutParams(new LayoutParams(100, 100, 100, 100));
}
super.onLayout(changed, l, t, r, b);
}
I am declaring the child elements (buttons) in the XML for the layout. This correctly sets the position of the buttons but not the size. The size is being taken from what is defined in the XML (it's a required attribute).
View 2 Replies
View Related
Sep 18, 2010
There are the following layout options to create interfaces for android.
AbsoluteLayout
FrameLayout
LinearLayout
TableLayout
RelativeLayout (and some more)
Which of the following is most suitable for designing simple games? Guessing that the absoluteLayout is easiest, but will it be problems with different screen sizes? What do you recommend?
View 2 Replies
View Related
Jun 30, 2009
I have a ZoomControl,and the code is... method is setup for "RelativeLayout", how can i setup for i want to define the x,y location of ZoomControl.
View 2 Replies
View Related
Mar 21, 2010
I want to render one UTF-8 encoded string what is provided by a rss feed like that:
CODE:.........
it shows at the emulator <IMG Src='http://www.december.com/html/images/icon.gif' alt='logo'> like plain text , but it isn't rendered .... What I'm doing bad?
View 4 Replies
View Related
Nov 27, 2009
We have a webpage which include two different CSS: portrait.css and landscape.css. We want load this page only once and enable the right CSS according to phone's orientation. We have a plan to develop a chrome plugin by c++ to make it which got us to have to change firmware. I just wonder whether there is more elegant way to do it by Java.
View 2 Replies
View Related
Jun 15, 2010
I have a webview and I am using android:configChanges="orientation" to restrain the webview from reloading everytime the orientation changes.I also have two different folders layout-port and layout-land to define the layouts for different orientations.If I use android:configChanges="orientation" then the above two folders are ignored. Can I have both working at the same time?
View 6 Replies
View Related
Jan 10, 2010
I'm trying without success to shape a simple screen composed of a webview and a closebutton on the bottom. When i run it i see the button close at bottom but when the loadURL of the webview is done the webview takes all the screen size and hide the close button.
View 7 Replies
View Related
Apr 3, 2009
I am seeing an annoying bug in WebView on the G1.I have a WebView that displays an HTML page. When the user clicks on a link, the link's text is highlighted.At this point, I call WebView.clearView(), and then WebView.loadDataWithBaseURL() to load the URL that the user has just clicked on.When the new page finally shows, the WebView somehow still remembers the previous highlight area. If the user clicks on the WebView again, a "phantom highlight" at the old location will flash quickly.The phantom highlight also appears when the user moves the trackball.
View 2 Replies
View Related
Aug 28, 2010
I've created a web view app, the page that is displayed features market:// links but upon clicking them I get the 404 screen along with the error that the protocol is not supported. I've tried looking through documentation but was unable to find anything relating to this.
View 5 Replies
View Related
Sep 14, 2009
I have a WebView in my activity opening html file, containing a simple javascript. My problem is that the webview opens the html file, but doesn't execute the javascript. When i open the file from web browser, and not from my app, it executes the javascript correctly. What could be the difference? Are there any different settings for running javascript?
Here is my file:
CODE:.......
View 3 Replies
View Related
Jul 6, 2010
I have a webview and i have next previous buttons to get to the next or previous picture. What i want to do if possible is : Can i display the first picture but the webview loads (in the background the other pictures(other URLS) so that are available in the cache when a new picture is needed.
View 1 Replies
View Related
Feb 23, 2010
is it possible that a user clicks inside a webview on a link like <a href/> and then my activity is opened? I need this for sms, email, telephone and some specials. Lets say the user browses on the impressum and clicks on the phone number for support. I want the phone to call that number.Or lets say the browser clicks on an image (with a special href?), and I want the user to land on my picture-view-activity.
View 3 Replies
View Related
Mar 2, 2009
I am setting the font of a TextView to font from a ttf file like this: Typeface myTypeface = Typeface.create From Asset(getAssets (), "fonts/samplefont.ttf");TextView myTextView1 = (TextView) findViewById (R.id.welcome title); myTextView1.setTypeface(myTypeface);The font is stored in my assets directory. How can I set the font of a WebView to this font? Can I use webSettings.setStandardFontFamily?
View 2 Replies
View Related
Aug 1, 2010
I am trying to use a WebView in my Android application. I am creating my webview in code-side (not in XML). My problem is; when I call loadUrl method of webview, the webview goes fullscreen mode. How can I keep the size of the webview for example 200x200 pixels?
View 3 Replies
View Related
Apr 1, 2010
I have looked EVERYWHERE and my little brain just can't understand a better way to refresh an activity. Any suggestions that I can understand would be great.Code...
View 2 Replies
View Related
Jun 11, 2010
Below code not working in my system. Code...
View 8 Replies
View Related
May 11, 2009
I am trying to load a pdf file on a webview but it doesn't seem to work. i am wondering if pdf formate is supported for webview or not? If not then which file format would be suitable for ebook app contains images as well?
View 4 Replies
View Related