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
> 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
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:
> On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:
> > 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
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:
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:
> On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:
> > 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
> 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:
> > On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:
> > > 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_2will be even nicer.
> > > Thanks
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) {
> 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:
> > On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:
> > > 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
> 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) {
> 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:
> > 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:
> > > On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:
> > > > 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
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:
> I've been using the code below to decode theXML. Not pretty. but it
> gives you a summary of theXML. 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!) allXMLresources 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) {
> 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:
> > 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 theview
> > IDs in symbolic form, etc.
> > While you're at it, whoever volunteers, write a program to display all
> > the stock image resources in a scrollinglistfor our enjoyment... :-)
> > And visualizers for the stock animations......
> > Thanks! :-)
> > Jim
> > On Jan 10, 3:22 pm, hackbod <hack...@gmail.com> wrote:
> > > On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:
> > > > 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
> 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:
> > I've been using the code below to decode theXML. Not pretty. but it
> > gives you a summary of theXML. 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!) allXMLresources in an application,
> > and display them on the log.
> > 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:
> > > 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 theview
> > > IDs in symbolic form, etc.
> > > While you're at it, whoever volunteers, write a program to display all
> > > the stock image resources in a scrollinglistfor our enjoyment... :-)
> > > And visualizers for the stock animations......
> > > Thanks! :-)
> > > Jim
> > > On Jan 10, 3:22 pm, hackbod <hack...@gmail.com> wrote:
> > > > On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:
> > > > > 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
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:
> int start = android.R.layout.simple_list_item_1;
> On Feb 19, 6:21 am, Peli <peli0...@googlemail.com> wrote:
> > 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:
> > > I've been using the code below to decode theXML. Not pretty. but it
> > > gives you a summary of theXML. 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!) allXMLresources in an application,
> > > and display them on the log.
> > > 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:
> > > > 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 theview
> > > > IDs in symbolic form, etc.
> > > > While you're at it, whoever volunteers, write a program to display all
> > > > the stock image resources in a scrollinglistfor our enjoyment... :-)
> > > > And visualizers for the stock animations......
> > > > Thanks! :-)
> > > > Jim
> > > > On Jan 10, 3:22 pm, hackbod <hack...@gmail.com> wrote:
> > > > > On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:
> > > > > > 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- Zitierten Text ausblenden -
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.
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:
> 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:
> > 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:
> > > 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:
> > > > I've been using the code below to decode theXML. Not pretty. but it
> > > > gives you a summary of theXML. 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!) allXMLresources in an application,
> > > > and display them on the log.
> > > > 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:
> > > > > 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 theview
> > > > > IDs in symbolic form, etc.
> > > > > While you're at it, whoever volunteers, write a program to display all
> > > > > the stock image resources in a scrollinglistfor our enjoyment... :-)
> > > > > And visualizers for the stock animations......
> > > > > Thanks! :-)
> > > > > Jim
> > > > > On Jan 10, 3:22 pm, hackbod <hack...@gmail.com> wrote:
> > > > > > On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:
> > > > > > > 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- Zitierten Text ausblenden -
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:
> 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.
> 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:
> > 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:
> > > 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:
> > > > 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:
> > > > > I've been using the code below to decode theXML. Not pretty. but it
> > > > > gives you a summary of theXML. 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!) allXMLresources in an application,
> > > > > and display them on the log.
> > > > > 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:
> > > > > > 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 theview
> > > > > > IDs in symbolic form, etc.
> > > > > > While you're at it, whoever volunteers, write a program to display all
> > > > > > the stock image resources in a scrollinglistfor our enjoyment... :-)
> > > > > > And visualizers for the stock animations......
> > > > > > Thanks! :-)
> > > > > > Jim
> > > > > > On Jan 10, 3:22 pm, hackbod <hack...@gmail.com> wrote:
> > > > > > > On Jan 10, 1:04 pm, "Chunyu Jiang" <cji...@smobilesystems.com> wrote:
> > > > > > > > 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- Zitierten Text ausblenden -
> > > - Zitierten Text anzeigen -- Zitierten Text ausblenden -
> 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:
> > 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.
> > 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:
> > > 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:
> > > > 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:
> > > > > 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:
> > > > > > I've been using the code below to decode theXML. Not pretty. but it
> > > > > > gives you a summary of theXML. 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!) allXMLresources in an application,
> > > > > > and display them on the log.
> > > > > > 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:
> > > > > > > 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 theview
> > > > > > > IDs in symbolic form, etc.
> > > > > > > While you're at it, whoever volunteers, write a program to display all
> > > > > > > the stock image resources in a scrollinglistfor our enjoyment... :-)
> > > > > > > And visualizers for the stock animations......
> > > > > > > Thanks! :-)
> > > > > > > Jim
> > > > > > > On Jan 10, 3:22 pm, hackbod <hack...@gmail.com> wrote: