I created a custom view extending RelativeLayout and added its full name in the xml layout file. Its working fine, I just ask if there is a way to get eclipse to define the parent layout as RelativeLayout so that it is auto-complete and suggest tags related to RelativeLayout do not give me an empty sentence and say that eclipse does not know any direct children for this component .
<com.mypackage.myview>
<Button ............... />
<TextView..................../>
</com.mypackage.myview>
source
share