Best Practice for Static Headers and Footers

by stanchat » Sun, 12 Apr 2009 00:40:18 GMT

Sponsored Links
 I am trying to display a high score table in my application and wanted
to know the Best Practice for displaying static headers or footers.
The data for the High Score tableis a REST web service returing up to
100 JSON records.  I have looked at some of the previous posts

Best Practice for Static Headers and Footers

by Mark Murphy » Sun, 12 Apr 2009 00:48:15 GMT



Sponsored Links

Other Threads

1. Android library projects with shared resources in Eclipse

Hello All,

I'm working on a project with multiple applications with a shared
codebase.  The activities in the applications have different
behaviors, so I can't use the android shared library facility, because
I'd like to have each application be able to extend an Activity from
the core library.  Each application has its own resources as well as
the resources in the core library.  My current solution uses custom
builders in Eclipse, and I can build the applications, but I can't
debug them.

An android resource-only project
A java jar project with the shared code, including activities and references
The applications, which include the java jar project

Copy the resources from the Shared Resource project to a temporary
Copy the resources from the application on top of them in the
temporary directory
Copy the resources from the temporary directory back to the project
Compile the application resources into, then sed the package
and copy to the shared library
Compile the shared library
Compile the application into class files
run DEX on the class files
package the resources
sign the .apk
zipalign the .apk
rename the .apk to what Eclipse expects.

The other problem as well as it not getting my breakpoints is that it
doesn't handle dependencies, so it has to be rebuilt from scratch each

If anyone has any ideas about how to do this, I'm very interested,
because this is an inelegant solution, to say the least.

Thanks in advance,
Matthew Reynolds, INRIX


2. Button's OnClickListener not receiving events until after encapsulating scroll occurs.

I am writing a date picker activity that looks like a calendar.  The
activity is basically a scrollable ListView of "MonthView" views I
have written which are in turn each a table of buttons representing
each day in the month.  When a MonthView is instantiated I walk each
button in the view (defined in XML) and attach a click listener to
detect if a user has pressed the button representing each day:

                                        public void onClick(View v) {

setSelectedDate(buttonDayClosure, b);

The setSelectedDate function does various things, including changing
the button background to yellow.  In my emulator, everything works
fine.  Create the datepicker, click on a day, the button turns
yellow.  No problems.  However, on a physical device (and a few peer
emulators) you can click on a date and nothing happens...until you
attempt to scroll the list view. So, for example, the date picker
activity appears on the screen. Press "3rd".  Nothing happens.  Jiggle
the list view a little by scrolling (without touching the 3rd button)
and all of a sudden the 3rd appears yellow.

On peer emulators I can set a breakpoint on the "setSelectedDate"
invocation and observe that the BP is only hit when a scroll "jiggle"
occurs (even though I am not attempting a scroll by touching the
button in question).  So for example, I press the "3rd" button and the
BP is not hit.  I can walk away, get a drink of water, come back, do a
tiny scroll on the list view and all of a sudden the BP is hit.

Any thoughts on why this might be the case?


3. How to capture unlock event in activity.

4. Samsung Captivate phone running Android 2.2 getting "Phone not connected"

5. Is there way to create a slow motion method for video

6. Announcement: DynaDroid - an open source micro-framework for Android

7. Speech Recognition Help