Hello,
I come back with my question.
I want to creat a UI with text and checkbox. How can I make it with loop and not write it manually ? Like defining number of view, of layer, of sun and do it by loop to creat the appropriate number of checkbox. Is it possible ?
edittext layer1 width:250 height:15 offset:[0,0] align: #left type:#string text:layer_name[1]
checkbox layer1_view1 offset:[300,-18] checked:(visibility_l1[1] as BooleanClass)
checkbox layer1_view2 offset:[450,-18] checked:(visibility_l1[2] as BooleanClass)
checkbox layer1_view3 offset:[600,-18] checked:(visibility_l1[3] as BooleanClass)
checkbox layer1_view4 offset:[750,-18] checked:(visibility_l1[4] as BooleanClass)
edittext layer2 width:250 height:15 offset:[0,0] align: #left type:#string text:layer_name[2]
checkbox layer2_view1 offset:[300,-18] checked:(visibility_l2[1] as BooleanClass)
checkbox layer2_view2 offset:[450,-18] checked:(visibility_l2[2] as BooleanClass)
checkbox layer2_view3 offset:[600,-18] checked:(visibility_l2[3] as BooleanClass)
checkbox layer2_view4 offset:[750,-18] checked:(visibility_l2[4] as BooleanClass)
edittext layer3 width:250 height:15 offset:[0,0] align: #left type:#string text:layer_name[3]
checkbox layer3_view1 offset:[300,-18] checked:(visibility_l3[1] as BooleanClass)
checkbox layer3_view2 offset:[450,-18] checked:(visibility_l3[2] as BooleanClass)
checkbox layer3_view3 offset:[600,-18] checked:(visibility_l3[3] as BooleanClass)
checkbox layer3_view4 offset:[750,-18] checked:(visibility_l3[4] as BooleanClass)
edittext layer4 width:250 height:15 offset:[0,0] align: #left type:#string text:layer_name[4]
checkbox layer4_view1 offset:[300,-18] checked:(visibility_l4[1] as BooleanClass)
checkbox layer4_view2 offset:[450,-18] checked:(visibility_l4[2] as BooleanClass)
checkbox layer4_view3 offset:[600,-18] checked:(visibility_l4[3] as BooleanClass)
checkbox layer4_view4 offset:[750,-18] checked:(visibility_l4[4] as BooleanClass)
edittext layer5 width:250 height:15 offset:[0,0] align: #left type:#string text:layer_name[5]
checkbox layer5_view1 offset:[300,-18] checked:(visibility_l5[1] as BooleanClass)
checkbox layer5_view2 offset:[450,-18] checked:(visibility_l5[2] as BooleanClass)
checkbox layer5_view3 offset:[600,-18] checked:(visibility_l5[3] as BooleanClass)
checkbox layer5_view4 offset:[750,-18] checked:(visibility_l5[4] as BooleanClass)