Android: View UI in Eclipse Viewer

Does anyone know how I can make my custom view object appear in the Eclipse Android layout tool when I put the parameters into my layout file?

If you do not want to enter any code here, just a link to the resource will also be great. I have no luck what I want.

Thanks.

+4
source share
1 answer

Having your view displayed in the layout view in Eclipse is not direct. From what I saw (it is not exhaustive at all), using a fully custom View / Surface View with rendering placed in the separete stream does not work.

But if you create a custom view based on an existing one (for example, inheriting from EditTExt) and only overriding the onDraw method, the layout manager will display your view as planned. Parameters inherited from Android View (here EditText) will apply to your custom view. Custom options will not have effects (I think).

0
source

Source: https://habr.com/ru/post/1342649/


All Articles