Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to make eclipse detect your custom view as its parent layout?

I've created a custom view extending RelativeLayout, and added its complete name in an xml layout file,, Its working fine I am just asking is there a way to make eclipse detect my parent layout as a RelativeLayout in order to auto-complete and suggest the tags related to RelativeLayout not give me blank suggestion and saying eclipse does't know any direct childs for this component.

<com.mypackage.myview> 
<!-- I want eclipse to detect that myView which is in com.mypackage extends RelativeLayout and show the suggestions such as Layout_align_parent_left-->
<Button ............... />
<TextView..................../>
</com.mypackage.myview>
like image 849
Hazem Farahat Avatar asked Dec 20 '25 21:12

Hazem Farahat


1 Answers

This was a bug in an older ADT, and its now fixed.

Reference

like image 164
Hazem Farahat Avatar answered Dec 22 '25 14:12

Hazem Farahat



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!