[android-developers] Re: ADT Layout Editor -- What do warning triangles mean?

2009-04-13 Thread Raphael

Note that the various fields correspond to the resource qualifiers
documented here:
http://developer.android.com/guide/topics/resources/resources-i18n.html#AlternateResources

R/

On Mon, Apr 13, 2009 at 5:46 PM, Jon Webb  wrote:
>
> Is there an explanation of the ADT layout editor UI some place? I
> can't find anything on the Android web site about it. When I look at a
> layout in the design view, there are a number of fields at the top
> with labels like MCC, MNC, Lang, etc. I've noticed that I can change
> the contents of these fields, such as orientation, and it has an
> effect on the view. But a yellow warning triangle appears next to the
> field I've changed and the next time I open this view I see the
> unmodified field. For example, if I change to landscape orientation
> the view goes back to default next time. Is there documentation some
> place on what these fields mean and how they are supposed to be used?
>
> -- Jon Webb
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADT Layout Editor -- What do warning triangles mean?

2009-04-13 Thread Jon Webb

Thanks for the prompt and clear response. -- Jon Webb

On Apr 13, 8:59 pm, Xavier Ducrohet  wrote:
> This is very much a work in progress, and unfortunately it's not
> really documented at this time.
>
> The triangle icon (which is awarningicon) means that you have
> requested a particular value for a resource qualifier but no layout
> file matching it was found and a default file is used..
>
> For example:
> - Edit res/layout/main.xml
> - In the top bar above the preview display it should say "Current
> config: default"
>
> - Set orientation to landscape =>ADTwill look for a res/layout-land/main.xml.
>
> - if Found =>ADTwill switch the edited file to this file (and will
> now display "Current config: landscape").
> - if not found => awarningicon next to landscape is displayed.
> default layout file is still edited.
>
> Xav
>
>
>
> On Mon, Apr 13, 2009 at 5:46 PM, Jon Webb  wrote:
>
> > Is there an explanation of theADTlayout editor UI some place? I
> > can't find anything on the Android web site about it. When I look at a
> > layout in the design view, there are a number of fields at the top
> > with labels like MCC, MNC, Lang, etc. I've noticed that I can change
> > the contents of these fields, such as orientation, and it has an
> > effect on the view. But a yellowwarningtriangle appears next to the
> > field I've changed and the next time I open this view I see the
> > unmodified field. For example, if I change to landscape orientation
> > the view goes back to default next time. Is there documentation some
> > place on what these fields mean and how they are supposed to be used?
>
> > -- Jon Webb
>
> --
> Xavier Ducrohet
> Android Engineer, Google.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADT Layout Editor -- What do warning triangles mean?

2009-04-13 Thread Xavier Ducrohet

This is very much a work in progress, and unfortunately it's not
really documented at this time.

The triangle icon (which is a warning icon) means that you have
requested a particular value for a resource qualifier but no layout
file matching it was found and a default file is used..

For example:
- Edit res/layout/main.xml
- In the top bar above the preview display it should say "Current
config: default"

- Set orientation to landscape => ADT will look for a res/layout-land/main.xml.

- if Found => ADT will switch the edited file to this file (and will
now display "Current config: landscape").
- if not found => a warning icon next to landscape is displayed.
default layout file is still edited.

Xav

On Mon, Apr 13, 2009 at 5:46 PM, Jon Webb  wrote:
>
> Is there an explanation of the ADT layout editor UI some place? I
> can't find anything on the Android web site about it. When I look at a
> layout in the design view, there are a number of fields at the top
> with labels like MCC, MNC, Lang, etc. I've noticed that I can change
> the contents of these fields, such as orientation, and it has an
> effect on the view. But a yellow warning triangle appears next to the
> field I've changed and the next time I open this view I see the
> unmodified field. For example, if I change to landscape orientation
> the view goes back to default next time. Is there documentation some
> place on what these fields mean and how they are supposed to be used?
>
> -- Jon Webb
>
> >
>



-- 
Xavier Ducrohet
Android Engineer, Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADT Layout Editor

2009-03-17 Thread Susan

I still don't know how long time I will wait.
Could you please tell me just an approximate time it will be released?
Thanks

On 3月17日, 下午2时22分, Xavier Ducrohet  wrote:
> Hi,
>
> This will probably come in the version following the plugin released
> with cupcake.
>
> Note that even though you cannot use the "add" button to add your
> custom classes to your layout, you can add them from the XML edit
> view.
> In most cases, custom views are properly rendered by the graphical
> layout editor and you should also be able to edit their properties as
> if it was a normal class.
>
> ApiDemos has a layout with custom views called custom_view.xml which
> demonstrate this. The custom view renders in the layout editor and its
> custom attributes "text" and "textcolor" show up in the property tab
> (they appear with their xml namespace prefix, which we should fix, but
> it doesn't prevent from using the attribute).
>
> Xav
>
> On Fri, Mar 13, 2009 at 12:16 AM,Susan wrote:
>
> > Could you please tell me when the editor will find all the classes in
> > the project that extend android.view.View and add them to the list?
> > Which ADT version I could expect? I think it is on your schedule,
> > isn't it?
>
> > Best regards
>
> --
> Xavier Ducrohet
> Android Engineer, Google.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADT Layout Editor

2009-03-16 Thread Xavier Ducrohet

Hi,

This will probably come in the version following the plugin released
with cupcake.

Note that even though you cannot use the "add" button to add your
custom classes to your layout, you can add them from the XML edit
view.
In most cases, custom views are properly rendered by the graphical
layout editor and you should also be able to edit their properties as
if it was a normal class.

ApiDemos has a layout with custom views called custom_view.xml which
demonstrate this. The custom view renders in the layout editor and its
custom attributes "text" and "textcolor" show up in the property tab
(they appear with their xml namespace prefix, which we should fix, but
it doesn't prevent from using the attribute).

Xav

On Fri, Mar 13, 2009 at 12:16 AM, Susan  wrote:
>
> Could you please tell me when the editor will find all the classes in
> the project that extend android.view.View and add them to the list?
> Which ADT version I could expect? I think it is on your schedule,
> isn't it?
>
>
> Best regards
> >
>



-- 
Xavier Ducrohet
Android Engineer, Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADT Layout Editor

2009-03-13 Thread Susan

Could you please tell me when the editor will find all the classes in
the project that extend android.view.View and add them to the list?
Which ADT version I could expect? I think it is on your schedule,
isn't it?


Best regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADT Layout Editor

2009-03-10 Thread Xavier Ducrohet

In addition to this very valid warning, you don't actually need to
call any class from ADT.

All you need to do is set the default editor for your XML files to be
the layout editor provided by ADT:
 
org.eclipse.ui.ide.IDE.setDefaultEditor(file,"com.android.ide.eclipse.editors.layout.LayoutEditor");

and then just ask Eclipse to open your file using
org.eclipse.ui.ide.IDE.openEditor()

Xav

On Mon, Mar 9, 2009 at 6:07 PM, Ralf  wrote:
>
> The EPL license of the plugin allows you to reuse the code if you use
> a compatible license for your own project.
>
> That being said, the layout editor has not been designed to be
> re-usable as such. That means  the API will surely change and you'd be
> basing your project on something hard to keep up with. We are
> definitely not at a point where we can freeze the API and it's
> actually guaranteed to change as we add more and more features.
>
> R/
>
> On Mon, Mar 9, 2009 at 6:00 PM, Susan  wrote:
>>
>> Thanks for your answer!  My first question means If I develop a
>> Eclipse plugin project, can I call ADT layout editor to edit my xml?
>> Are there API documents of ADT layout editor I can find?  I want to
>> reuse layout editor , then I don't need to develope visual editor by
>> myself. Is it possible?   Thank you again.
>> >
>>
>
> >
>



-- 
Xavier Ducrohet
Android Engineer, Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADT Layout Editor

2009-03-09 Thread Ralf

The EPL license of the plugin allows you to reuse the code if you use
a compatible license for your own project.

That being said, the layout editor has not been designed to be
re-usable as such. That means  the API will surely change and you'd be
basing your project on something hard to keep up with. We are
definitely not at a point where we can freeze the API and it's
actually guaranteed to change as we add more and more features.

R/

On Mon, Mar 9, 2009 at 6:00 PM, Susan  wrote:
>
> Thanks for your answer!  My first question means If I develop a
> Eclipse plugin project, can I call ADT layout editor to edit my xml?
> Are there API documents of ADT layout editor I can find?  I want to
> reuse layout editor , then I don't need to develope visual editor by
> myself. Is it possible?   Thank you again.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADT Layout Editor

2009-03-09 Thread Susan

Thanks for your answer!  My first question means If I develop a
Eclipse plugin project, can I call ADT layout editor to edit my xml?
Are there API documents of ADT layout editor I can find?  I want to
reuse layout editor , then I don't need to develope visual editor by
myself. Is it possible?   Thank you again.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADT Layout Editor

2009-03-09 Thread Xavier Ducrohet

On Sun, Mar 8, 2009 at 11:32 PM, Susan  wrote:
>
> 1. Can I  call ADT Layout Editor in  my java source file , not by XML
> file  "open with" menu ?

I'm not sure what you mean by this.

> 2. When I click "add" button in the outline view of ADT Layout
> Editor , it will show such a list of UI components as "AbsoluteLayout
>      AnalogClock
>      AutoCompleteTextView
>      Button
>      ."
>    My question is where it gets this list? Can I config this path to
> get my customized UI components?

The list is loaded from the SDK. You should really not edit the SDK
files to add your classes.

In the future, the editor will find all the classes in your project
that extend android.view.View and add them to the list.

Xav
-- 
Xavier Ducrohet
Android Engineer, Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---