Well, I can only guess but -
Image view attributes have to do with two things: "what" and "how", as
in, what image to display, and how it should be done. Having defaults
for those probably doesn't make sense: would you want ImageView to have
a default image, if "src" is not specified?
The only exception is scaleType, which has a reasonable default value,
fitCetner, set in the code.
Compare this with, for example, Widget.CompoundButton.CheckBox - the
default attribute values there are quite useful, since they make the
widget look and behave as expected, i.e. a check box.
Also see Widget.ImageButton - which is a subclass of ImageView. Again,
this style provides useful defaults so that all ImageButton's look and
behave as expected.
-- Kostya
09.03.2011 13:58, mac-systems пишет:
I'm still curios about that there is no parent style, my understanding
was
that a lot of the default behaviour comes from this styles?
For example the scaletype has a default value,i think....
Thx a lot,
Jens
On 9 Mrz., 11:34, Kostya Vasilyev<[email protected]> wrote:
09.03.2011 13:31, mac-systems пишет:
Eclipse complain about the parent :error: Error retrieving parent for
item: No resource found that matches the given name '@android:style/
Widget.ImageView'.
Whats is different for an ImageView ?
There isn't a Widget.ImageView style in Android as far as I can tell.
Check styles.xml in android-sdk\platforms\android-X\res\values.
Besides, your definition looks quite complete enough to not need a
parent style.
--
Kostya Vasilyev --http://kmansoft.wordpress.com
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en