Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse doesn’t recognize style in the Android Layout builder?

Since Android supports styles and it's good practice to use them (similar to CSS), I made a new style and applied it to 3 buttons.

The Layout builder in Eclipse did not register the changes and either broke (showed nothing) or didn't apply styles at all.

After running the app in the emulator, styles are correctly applied.

So is there something I'm missing or the Android plugin doesn't support styles?

like image 453
Artem Russakovskii Avatar asked Mar 26 '26 00:03

Artem Russakovskii


1 Answers

It appears that the Layout Builder in Eclipse is only good for a rough layout. Things like gradients won't render, or even resized images in a ImageView aren't displayed correctly. Simple things like a rounded corner causes the Layout Builder to fail to render anything at all. Hopefully Google will improve it in the next ADT release.

Unfortunately, third party editors like DroidDraw and Layout Editor for Android support even less features.

like image 196
kwogger Avatar answered Mar 28 '26 21:03

kwogger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!