I have been working on android for the past few months. Now the problem for me is related to the value of the Z index. I have a layout with text, edittext and imageview. Suppose I have an xml file something like this.
<Layout1>
<edittext><zindex>3</zindex></edittext>
<textview><zindex>2</zindex></textview>
<imageview><zindex>1</zindex></imageview>
</Layout1>
So my question is that I am reading this xml file with a DOM parser, and I want to set the z index value for all of these values defined in xml. Now there is some function or property that I can use for this. I found out about encoding it using xml, but that will make it hard-coded. I want a dynamic display, since I can customize the layout with zindex values .... HELP PLZ
source
share