Which View/Layout does the Market app (1.6) details activity use?

by westmeadboy » Fri, 26 Feb 2010 17:20:36 GMT

Sponsored Links
 I want to do something very similar (in terms of appearance) to the
app details activity of the Market app.

It looks like a cross between linear layout (not all rows the same),
list (scrolling nature), preferences (headings).

My guess is its a linear layout in a scroll view (ignoring activity
header/footer) and the headings are just hard coded...

Is that the best way to do it?


Which View/Layout does the Market app (1.6) details activity use?

by Mark Murphy » Fri, 26 Feb 2010 20:47:07 GMT


My guess was, and is, that it is a ListView with an appropriate ListAdapter.

To have a mixed bag of row types, including some enabled and some not
(headings), you can either roll your own ListAdapter, or use my


Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Development Wiki:  http://wiki.andmob.org 


Sponsored Links

Which View/Layout does the Market app (1.6) details activity use?

by westmeadboy » Fri, 26 Feb 2010 21:01:48 GMT

 Thanks Mark - that MergeAdapter will definitely come in handy for some
other things I'm doing.

In the Market activity, only the "Comments" section can really be
described as a list.

So wouldn't the MergeAdapter only be useful in the situation where
there is more than one sublist?

In my case, I don't really have any sublists. Its a bunch of rows each
with their own header and each (below-each-header-part) very different
from one another.

I've never used ScrollView before. Are there any potential pitfalls
using a LinearLayout within a ScrollView?


Other Threads

1. G1 Camera Specs

    Does anyone know if the G1 camera has any specification such as
focal length or f-number?  When I take a picture with my digital
camera the jpeg images come with EXIF data that gives me details about
the camera properties.  The camera properties embedded in photos taken
with the G1 do not show focal length, f-number, exposure time, etc.

If its impossible to get this information programmatically, either
through the Android API or the Android OS, does anyone know if
detailed specs are publicly available?

Otherwise, I'm probably going to have to try measuring it.


2. adding text/textview to MediaController?


presently I am using a VideoView to play some video, with a
MediaController to control the playback of said video. I would like to
have some text (containing a description of the video being played)
that is shown/hidden along with the mediacontroller controls..

so far, this is what I have:

VideoView vv=(VideoView)findViewById(R.id.surface_view);
TextView mptx = new TextView(this);
mptx.setText("sample text");
MediaController nc = new MediaController(this);

.. the VideoView and the MediaController work, but I'm not getting the
text..  am I approaching this wrong?


3. about building of source code

4. Receive email permission?

5. No feedback when touch screen used for long press

6. using Google GSON in an Android application

7. problem in receiving sms.