How to create a view with a background that wraps up all the content of the view?

by hc » Thu, 05 Mar 2009 22:46:52 GMT


Sponsored Links
 vm.. I've figured it out. Instead of setting a background using an
ImageView/Button, I can just set a background to RelativeLayout and it
will fix nicely

On Mar 5, 5:20pm, hc <honch...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. problem with AlertDialog and setSingleChoiceItems()

I've got an alert dialog with a single choice item selection which is
giving me issues.  The dialog has a list of items, positive and
negative buttons, and is cancellable.  Pressing the negative button
calls dialog.cancel().  When setSingleChoiceItem() is called, I pass
the value of the checked item I want to highlight.

The problem is that if I select one of the items on the list and then
press the negative button to cancel, then open the dialog again, the
last selected item is still shown.  It does not show the original
highlighted item passed to setSingleChoiceItem().

What do I need to do to make sure the original checked item is
highlighted when the dialog is displayed?

-- 

2. Finding the distance between lots of locations efficiently

Hi guys,

In a project I'm working on, I have a list (about 1700) locations in
my database.

I need to get a small subset of these, based on their closeness to my
current location.

In previous projects, I've used MySQL math functions (cos, acos, etc)
to achieve this, but SQLlite doesn't have these built in. Doing it by
looping through all locations and comparing them against
location.distanceTo() is really quite slow for this number of
locations. It takes a good 20 seconds or so on my Nexus One.

Has anyone found an efficient way to accomplish this?

Thanks

-- 

3. connecting android to servlet in local host

4. Android eclair: playing videos

5. Table does not exist

6. networking issues to android emulator

7. OMAP Zoom 2