Hi all,
I have question about tabhost and designer scripts. Here short brief; I have one main activity and main layout. One tabhost in this main layout and i am programatically adding 5 tabs. And i have 5 more layouts (named as tab1, tab2 etc) and adjusting them to the tabs. Everything is ok, working.
When i design layouts (main, tab1, tab2 etc) tried to use designer scripts. In main layout, i put this script code and it works what i wanted to.
AutoScaleAll
TabHost1.Width=100%x
TabHost1.height=100%y -50dip
ImageView1.Width=320dip
ImageView1.height=50dip
ImageView1.horizontalcenter=50%x
ImageView1.bottom=100%y
Then i go for tab1, tab2... layouts and i need tabhost1's properties to set my other views. But i cant use other layout's view. IDE says, "unassigned variable, tabhost1". Because they are in different layouts.
In this example, tabhost1's width and height are nearly activity size and i can calculate but i am planning to change it and i want to make flexible design. Is there any way to use another layout view's width, height, left, right.
For example, can i use [main].tabhost1.width or (main).tabhost1.width or directly main.tabhost1.width ?
These syntax are not working, i tried
But i want to learn, any other syntax or methods to use ?
If not, its my first "wish list" object then
regards,