What exactly is being passed into onMeasure()?

by ajb468 » Fri, 23 Apr 2010 00:21:52 GMT


Sponsored Links
 I don't understand the method onMeasure(int widthMeasureSpec, int
heightMeasureSpec). In the example I have seen, MeasureSpec.getMode()
is used, and passed in the widthMeasureSpec or heightMeasureSpec to
find the restrictions placed on the View's boundaries. The restictions
are either "EXACTLY," "AT_MOST," or "UNSPECIFIED." Well my questions
is, what determines these restictions? What calls and passes the
arguments of onMeasure that determine these restrictions? Is it the
parent View? Please help, im so confused.

--



Other Threads

1. Query about Content Provider queries...

> In terms of existing providers,

Generally speaking, the former is impossible, since you won't have access
to the database (e.g., security), if there even is a database, which is
far from a given.


Content providers do not need to use SQLite as a data store. They could
use flat files, Web services, third-party object databases, SD card
directory trees, random number generators, etc.

There is a subset of content providers that will use SQLite as a data
store. What Ms. Hackborn is suggesting is that those content providers
could offer distinct, etc. via their own exported Uri pattern. What you
seem to be proposing is to force developers to implement all the SQL
options for data stores that aren't SQL, which may not be a popular
answer.


Again, content providers do not need to use SQLite as a data store.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~

2. Two different views with CursorAdapter

I am not sure if you can do this, but essentially what I am trying to
do is to use a CursorAdapter with a list that has two different
views.  To be more specific, I am trying to have a different view for
an item in the list that's selected than the rest of the items in the
list that's not selected.  Is this possible?

If so how? some code snippet would help greatly.  thanks
--~--~---------~--~----~------------~-------~--~----~

3. Enabling route table with Custom Wifi driver

4. Saving/Loading dynamic Bitmaps

5. Does Android need a more compelling/smoother user interface? (consumer view)

6. How do you get in touch with Google Android Staff?

7. "my downloads" in Android Market