ADT Layout Editor -- What do warning triangles mean?

by Xavier Ducrohet » Tue, 14 Apr 2009 08:59:17 GMT

Sponsored Links
 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.


Xavier Ducrohet
Android Engineer, Google.


ADT Layout Editor -- What do warning triangles mean?

by Raphael » Tue, 14 Apr 2009 13:04:35 GMT

 Note that the various fields correspond to the resource qualifiers
documented here: #AlternateResources



Sponsored Links

Other Threads

1. Problem running a compiled/packaged-with-v1.6 application on v1.5


Digging further showed that it was the problem with my "theme customization".

The default "preference_category.xml" is referring to 
"listSeparatorTextViewStyle" as its style. But I've customized the 
"listSeparatorTextViewStyle" and for whatever reason it does not correctly 
inherit the "layout_width" and "layout_hight" attributes from Android default 

In my "themes.xml":

In my "styles.xml":
    <style name="Widget.TextView.ListSeparator" 
        <item name="android:background">@drawable/blue_header</item>

Solution: I just copied all the attributes from Android default 
"Widget.TextView.ListSeparator" and the problem got fixed! No other changes, 
including the ones I just mentioned in my previous reply, are needed:

    <style name="Widget.TextView.ListSeparator" 
        <item name="android:background">@drawable/blue_header</item>

        <item name="android:layout_width">fill_parent</item>
        <item name="android:layout_height">25dip</item>
        <item name="android:textStyle">bold</item>
        <item name="android:textColor">?android:attr/textColorSecondary</item>
        <item name="android:textSize">14sp</item>
        <item name="android:gravity">center_vertical</item>
        <item name="android:paddingLeft">5sp</item>

And I guess this is the final solution for those whom want to customize their 
"ListView"s (and the related separator). But I still can't understand why this 
occurs when the build/packaging platform is not the same as the deployment one. 
Hope someone from Android engineering team answers me.

Best Regards,

----- Original Message ----

> > 

2. Persisting a context menu after screen rotation

I'm also looking for a way to avoid the ContextMenu to disappear when
screen rotates.

Anyone did it?


3. No rule to make target 'iso_img'

4. OMX component registration

5. How do I package a shared Java library?

6. Curhat... ;-)

7. text animation