Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Can anybody tell the source of android.R.layout.simple_list_i tem_1
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  20 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chunyu Jiang  
View profile  
 More options Jan 10 2008, 4:04 pm
From: "Chunyu Jiang" <cji...@smobilesystems.com>
Date: Thu, 10 Jan 2008 16:04:29 -0500
Local: Thurs, Jan 10 2008 4:04 pm
Subject: Can anybody tell the source of android.R.layout.simple_list_item_1

Hi, guys
I am trying to get warmed up with ListActivity.
Can anybody tell me the source of android.R.layout.simple_list_item_1?
android.R.layout.simple_list_item_2 will be even nicer.
Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hackbod  
View profile  
 More options Jan 10 2008, 6:22 pm
From: hackbod <hack...@gmail.com>
Date: Thu, 10 Jan 2008 15:22:44 -0800 (PST)
Local: Thurs, Jan 10 2008 6:22 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
simple_list_item_1:

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
 android:id="@android:id/text1"
        style="?android:attr/listItemFirstLineStyle"
        android:paddingTop="2dip"
        android:paddingBottom="3dip"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" />

simple_list_item_2:

<TwoLineListItem xmlns:android="http://schemas.android.com/apk/res/
android"
        android:paddingTop="2dip"
        android:paddingBottom="2dip"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">

        <TextView android:id="@android:id/text1"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                style="?android:attr/listItemFirstLineStyle"/>

        <TextView android:id="@android:id/text2"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_below="@android:id/text1"
                style="?android:attr/listItemSecondLineStyle" />
</TwoLineListItem>

On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Pesner  
View profile  
 More options Jan 10 2008, 9:18 pm
From: Bob Pesner <pcdial...@gmail.com>
Date: Thu, 10 Jan 2008 18:18:54 -0800 (PST)
Local: Thurs, Jan 10 2008 9:18 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Hi,

  hackbod, that was useful. It would also be useful if you could tell
us where this information is available, if we need to understand other
internal layouts.

  Thanks.

                                                       Bob

On Jan 10, 6:22 pm, hackbod <hack...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Guy  
View profile  
 More options Jan 10 2008, 9:38 pm
From: "Romain Guy" <romain...@google.com>
Date: Thu, 10 Jan 2008 18:38:19 -0800
Local: Thurs, Jan 10 2008 9:38 pm
Subject: Re: [android-developers] Re: Can anybody tell the source of android.R.layout.simple_list_item_1

It's in the source code :)

--
Romain Guy
www.curious-creature.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CJ  
View profile  
 More options Jan 13 2008, 12:55 pm
From: CJ <Chunyu.Ji...@gmail.com>
Date: Sun, 13 Jan 2008 09:55:56 -0800 (PST)
Local: Sun, Jan 13 2008 12:55 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Can anybody make it clear. For example, where to get this source
(link) and how to take the useful info out of the it.

On Jan 10, 9:38 pm, "Romain Guy" <romain...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Guy  
View profile  
 More options Jan 13 2008, 1:39 pm
From: "Romain Guy" <romain...@google.com>
Date: Sun, 13 Jan 2008 10:39:13 -0800
Local: Sun, Jan 13 2008 1:39 pm
Subject: Re: [android-developers] Re: Can anybody tell the source of android.R.layout.simple_list_item_1

The source code of the SDK is not yet available.

On Jan 13, 2008 9:55 AM, CJ <Chunyu.Ji...@gmail.com> wrote:

> Can anybody make it clear. For example, where to get this source
> (link) and how to take the useful info out of the it.

> On Jan 10, 9:38pm, "Romain Guy" <romain...@google.com> wrote:
> > It's in the source code :)

> > --
> > Romain Guywww.curious-creature.org

--
Romain Guy
www.curious-creature.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam P  
View profile  
 More options Jan 13 2008, 2:38 pm
From: Adam P <aploc...@gmail.com>
Date: Sun, 13 Jan 2008 11:38:39 -0800 (PST)
Local: Sun, Jan 13 2008 2:38 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
You can take a look at the source code in android.jar by installing
JAD (java decompiler).

You can get JAD from: http://www.kpdus.com/jad.html

On Jan 13, 10:39 am, "Romain Guy" <romain...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
highjinx  
View profile  
 More options Jan 13 2008, 7:24 pm
From: highjinx <oscarsessi...@gmail.com>
Date: Sun, 13 Jan 2008 16:24:52 -0800 (PST)
Local: Sun, Jan 13 2008 7:24 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
that is awesome thanks Adam.  Actually the source at one time was
available.
I was digging around and it can be checked out via SVN but I did not
get it to work.
The documentation to do that is somewhere on this site.  But I have
been needing the source on certain things to
be able to tell what is going on.

On Jan 13, 11:38 am, Adam P <aploc...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
trickybit  
View profile  
 More options Jan 16 2008, 1:41 pm
From: trickybit <jmack...@gmail.com>
Date: Wed, 16 Jan 2008 10:41:57 -0800 (PST)
Local: Wed, Jan 16 2008 1:41 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Could somebody write a program to load a stock layout resource, and
then crawl the resulting views & associated layoutparms to reproduce
the information below?  Might have to do work to reproduce the view
IDs in symbolic form, etc.

While you're at it, whoever volunteers, write a program to display all
the stock image resources in a scrolling list for our enjoyment... :-)

And visualizers for the stock animations......

Thanks!   :-)
Jim

On Jan 10, 3:22 pm, hackbod <hack...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vijay  
View profile  
 More options Jan 21 2008, 3:51 am
From: Vijay <vijay.r.shan...@gmail.com>
Date: Mon, 21 Jan 2008 00:51:30 -0800 (PST)
Local: Mon, Jan 21 2008 3:51 am
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Is it anywhere documented about the built-in types like
simple_list_item_2 ?
Where can I get information about simple_list_item_3 (if it exists) ?

-
Vijay

On Jan 16, 11:41 pm, trickybit <jmack...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric B  
View profile  
 More options Feb 11 2008, 1:20 am
From: Eric B <ebesse...@gmail.com>
Date: Sun, 10 Feb 2008 22:20:16 -0800 (PST)
Local: Mon, Feb 11 2008 1:20 am
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Assad  
View profile  
 More options Feb 11 2008, 3:10 am
From: Mark Assad <mas...@gmail.com>
Date: Mon, 11 Feb 2008 00:10:33 -0800 (PST)
Local: Mon, Feb 11 2008 3:10 am
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
I've been using the code below to decode the XML. Not pretty. but it
gives you a summary of the XML. It should be cleaned up, but I haven't
had the time to do that yet. I was hoping if I put it here someone
else might like clean it up. :)

The code will load (and decode!) all XML resources in an application,
and display them on the log.

                        Resources r2;
                        r2 =
this.getPackageManager().getResourcesForApplication("com.google.android.con tacts");
                        int start = R.layout.main;
                        while (true) {

                                XmlPullParser xpp = r2.getXml(start);
                                start++;

                                eventType = xpp.getEventType();
                                while (eventType !=
XmlPullParser.END_DOCUMENT) {
                                        if(eventType ==
XmlPullParser.START_DOCUMENT) {
                                                Log.w(LOG_TAG, "Start
document");
                                        } else if(eventType ==
XmlPullParser.END_DOCUMENT) {
                                                Log.w(LOG_TAG, "End
document");
                                        } else if(eventType ==
XmlPullParser.START_TAG) {
                                                int count =
xpp.getAttributeCount();
                                                String tag = "<" +
xpp.getName();
                                                for (int i = 0 ; i
<count; ++i) {
                                                        String attrNS
= xpp.getAttributeNamespace(i);
                                                        String
attrName = xpp.getAttributeName(i);
                                                        if (attrNS !=
null) {

attrName = attrNS + ":" + attrName;
                                                        }
                                                        String value =
xpp.getAttributeValue(i);
                                                        tag += " " +
attrName + "=\"" + value +"\"";
                                                        Log.w(LOG_TAG,
tag);
                                                        tag = "";
                                                }
                                                tag += ">";
                                                Log.w(LOG_TAG, tag);
                                        } else if(eventType ==
XmlPullParser.END_TAG) {
                                                Log.w(LOG_TAG,
"</"+xpp.getName() + ">");
                                        } else if(eventType ==
XmlPullParser.TEXT) {
                                                Log.w(LOG_TAG,
xpp.getText());
                                        } else {
                                                Log.w(LOG_TAG,
"Something else: " + eventType);
                                        }
                                        eventType = xpp.next();
                                }
                                Log.w(LOG_TAG, "DONE");
                        }

If you do something with this, I'd be really keen to hear about it.

Regards,
Mark.

On Jan 17, 5:41 am, trickybit <jmack...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric B  
View profile  
 More options Feb 11 2008, 11:10 pm
From: Eric B <ebesse...@gmail.com>
Date: Mon, 11 Feb 2008 20:10:34 -0800 (PST)
Local: Mon, Feb 11 2008 11:10 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Hopefully they will release the source soon, and hopefully it will
include everything uncompressed.

Thanks,
Eric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Pesner  
View profile  
 More options Feb 15 2008, 11:16 am
From: Bob Pesner <pcdial...@gmail.com>
Date: Fri, 15 Feb 2008 08:16:20 -0800 (PST)
Local: Fri, Feb 15 2008 11:16 am
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Mark,

   Thanks for that code! It's really useful.

On Feb 11, 3:10 am, Mark Assad <mas...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peli  
View profile  
 More options Feb 19 2008, 6:21 am
From: Peli <peli0...@googlemail.com>
Date: Tue, 19 Feb 2008 03:21:24 -0800 (PST)
Local: Tues, Feb 19 2008 6:21 am
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Thank you Mark! The code is really great!

Do you know by chance how I would have to change your code so that I
could access the android resources directly? Like to display the xml
for android.R.layout.simple_list_item_1? (I'd like to know the padding
used there)

Peli

On Feb 11, 9:10 am, Mark Assad <mas...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Pesner  
View profile  
 More options Feb 19 2008, 12:06 pm
From: Bob Pesner <pcdial...@gmail.com>
Date: Tue, 19 Feb 2008 09:06:36 -0800 (PST)
Local: Tues, Feb 19 2008 12:06 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Hi,

  You can replace:

     int start = R.layout.main;

at the begining with:

    int start = android.R.layout.simple_list_item_1;

On Feb 19, 6:21 am, Peli <peli0...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peli  
View profile  
 More options Feb 19 2008, 3:54 pm
From: Peli <peli0...@googlemail.com>
Date: Tue, 19 Feb 2008 12:54:40 -0800 (PST)
Local: Tues, Feb 19 2008 3:54 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Thanks a lot! Now I got it. Actually I had also tried what you
suggested, but probably got confused by the many XML layouts that came
as output.. I had not realized that start++ also iterates through all
following layouts... So if I just look at the first one, everything is
fine!

Thanks!

Peli

On 19 Feb., 18:06, Bob Pesner <pcdial...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Assad  
View profile  
 More options Feb 20 2008, 6:25 am
From: Mark Assad <mas...@gmail.com>
Date: Wed, 20 Feb 2008 03:25:35 -0800 (PST)
Local: Wed, Feb 20 2008 6:25 am
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Hi,

  I've cleaned this up a little bit now and put together a simple web
page for it. It's still pretty rough -- sorry -- What I'd give to have
more time to work on these things.

      http://www.it.usyd.edu.au/~massad/project-android.html

  I've updated the code so that it now outputs to files instead of the
Android Log, and I've collected all the files into one .tgz file.
(This is just for the android.R.layout)

Mark.

On Feb 20, 7:54 am, Peli <peli0...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peli  
View profile  
 More options Feb 20 2008, 6:15 pm
From: Peli <peli0...@googlemail.com>
Date: Wed, 20 Feb 2008 15:15:42 -0800 (PST)
Local: Wed, Feb 20 2008 6:15 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
Hi Mark,

Thanks a lot for your work! Your program is really great.

Just a quick remark: When I open your android_r_layout file, I see
something like:

android_r_layout/
  < I m a g e V i e w   h t t p : / /
etc...

so it seems your file mixes standard and unicode characters or
something similar. Probably I don't have the right program to display
this properly. If you have some way of fixing this, it would be great,
but your file is useful even if you don't. :-)

Thanks,
Peli

On 20 Feb., 12:25, Mark Assad <mas...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Assad  
View profile  
 More options Feb 20 2008, 7:22 pm
From: Mark Assad <mas...@gmail.com>
Date: Wed, 20 Feb 2008 16:22:39 -0800 (PST)
Local: Wed, Feb 20 2008 7:22 pm
Subject: Re: Can anybody tell the source of android.R.layout.simple_list_item_1
HI Peli,

   I've cleaned the output files up a little now. It should now be
just plain text.

    http://www.it.usyd.edu.au/~massad/project-android.html

Mark

On Feb 21, 10:15 am, Peli <peli0...@googlemail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »