Android :: What Is Alternative To AbsoluteLayout?
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
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
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
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
Sep 21, 2010
Just would like to hear your idea about that...I recently have seen the Samsung Galaxy S and , well, was really impressed about that! Then I have seen the new HTC Desire and heard good rumors about that. So, I was wondering, which one would you take as an alternative to the i Phone 4G? I have seen some price alternatives for Samsung Contract Mobile Phones galaxy s: compare models and prices contract mobile phones galaxy s. - Choppy Doo and HTC Contract Mobile Phones htc desire: compare models and prices contract mobile phones htc desire. - Choppy Doo What would you take if you were in my shoes?
View 3 Replies
View Related
Apr 5, 2010
My company has blocked access to SMS messages on our phones, yet we have an unlimited data plan. Does anyone know of an alternative program you can use for SMS type messages that you don't get charged for per message?
View 9 Replies
View Related
Dec 2, 2009
I just picked up the Motorola Droid, and I'm loving it.I'm trying to find the best free alternative to SMS (because it's ridiculous that after paying $30/mo for 3G access, I have to pay more to move 100-character messages around on the same network...).Ideal would be something like BlackBerry Messenger.So far, I've been using gTalk with my status set to invisible, and that seems to be a pretty good alternative. When I initiate a gTalk conversation with an invisible status, the conversation usually remains short - like an SMS conversation. One downside is that people never initiate conversations on gTalk with me while I'm set to invisible.
View 9 Replies
View Related
Apr 17, 2010
I'm about to get my first Android phone and I'm wondering what your favorite alternative to Locale is? I'm seeing reviews that are less and less favorable and for a $10 app, it out to be darn amazing in my book.
View 21 Replies
View Related
Mar 2, 2010
Anyone know of an alternative to APNdroid? It does not work on Nexus One if switched off for longer than approx 30mins, a soft reboot is required. Any other options?
View 3 Replies
View Related
Mar 18, 2009
I've just swapped phones from a Nokia N96 to a G1. However the app I used the most on my N96 was HandySafe. Does anyone know of an alternative Android program? (HandySafe is a password protected program which lets you store bank acc, credit card, debit card details etc)
View 2 Replies
View Related
Dec 24, 2009
So, I love the idea of controlling itunes via my phone, like apple has. Yet, the tunesremote by jeff sharkey doesn't seem to stay paired with my g1. itunes keeps wanting the pairing code. So, I was wondering if there was an alternative or is that the only one?
View 1 Replies
View Related
Sep 30, 2009
Ive had my hero 6 weeks now and used shke awake from the start, but recently its been crap. During calls my screen goes black approx 40% of the time and its driving me mad.Is there another app in the market that performs better than 60%?Also, is there an app that disables the volume buttons?
View 3 Replies
View Related
Nov 19, 2010
One of the alternative app stores is asking for unaltered, unedited capture from the app as a video. Plus I'm also interested in cleaner video than I get by focusing a camcorder on an Android on a table. Who knows how to do that? I think I found some posts that indicate Mark Murphy may have solved this with a tool that goes through DDMS. If so, I'll get that tool and donate.
View 10 Replies
View Related
Sep 13, 2010
I have tried using both launcher pro and ADW launcher, who have a reputation of being light launchers, and no matter how much I mess about with the settings, I always experience the same thing:
1: They are often not fluid when swiping screens, showing a little sign of lag or sluggishness that you do not experience with the Sense UI and which drives me crazy.
2: When unlocking the phones, the first swipe is always followed by a noticeable amount of latency.
This bothers me quite a bit, because I really like these launchers and I know of no other way to get the (from my POV) main advantage behind them (the dock).Any advice? I have tried messing about with the memory settings etc to no avail.
View 10 Replies
View Related
Feb 22, 2010
I would really like an unlock screen that requires a code (much like the iphone one). I find that the unlock pattern is not as effective due to the fact that the screen smudges, allowing others to see what your pattern is.
View 3 Replies
View Related
Jul 21, 2010
I've given Google Listen a go as my podcast app, but it seems buggy and not very intuitive to use. So I'd like to try something different. I'd like sync with Google Reader tho not essential, also need an app that has the option to download over wifi only.
View 3 Replies
View Related
Jun 22, 2010
On Windows Mobile I used Youtube Play to download Videos from Youtube as FLV and then pull out the audio as MP3, is there an Android Program that does this?
View 1 Replies
View Related
Dec 20, 2009
Any recommendations for an alternative app to the stock Gallery application for photo viewing?
Gallery does not allow the user to choose folder (s) to add to gallery which puts lots of un-needed pictures (mainly from downloaded HTML email/email signatures) in the gallery.
View 3 Replies
View Related