ibra939 Active Member Licensed User Longtime User Aug 12, 2014 #1 example i creat new program also this program have more Layout example *main Layout 1 Layout 2 Layout 3 Layout 4 the main i create ImageView1 and text if i want ImageView1 when some body click go to Layout 1 and hide the *main ???? what the code for this i use this code but not working : End Sub Sub ImageView1_Click Activity.LoadLayout("Layout 1.bal") End Sub what the code is different for ImageView1 , button , text ?
example i creat new program also this program have more Layout example *main Layout 1 Layout 2 Layout 3 Layout 4 the main i create ImageView1 and text if i want ImageView1 when some body click go to Layout 1 and hide the *main ???? what the code for this i use this code but not working : End Sub Sub ImageView1_Click Activity.LoadLayout("Layout 1.bal") End Sub what the code is different for ImageView1 , button , text ?
jsanchezc Member Licensed User Longtime User Aug 12, 2014 #21 Try this sample, hope this help. Attachments sample_layout.zip 65.8 KB · Views: 225 Upvote 0
jsanchezc Member Licensed User Longtime User Aug 12, 2014 #22 ibra939 said: really i try to use but i get same problem when i use ImageView1_Click ? why? Click to expand... If you name imageview of each activity with same name: imageview1 then how you know into your app what object fires event imageview1_click? The sample i upload has different names for each imageview, so you can put code for each event. hope this help and could be a start point to solve the problem. Upvote 0
ibra939 said: really i try to use but i get same problem when i use ImageView1_Click ? why? Click to expand... If you name imageview of each activity with same name: imageview1 then how you know into your app what object fires event imageview1_click? The sample i upload has different names for each imageview, so you can put code for each event. hope this help and could be a start point to solve the problem.
ibra939 Active Member Licensed User Longtime User Aug 12, 2014 #23 jsanchezc said: Try this sample, hope this help. Click to expand... Thanks i wish really thanks Upvote 0
jsanchezc Member Licensed User Longtime User Aug 12, 2014 #24 ibra939 said: Thanks i wish really thanks Click to expand... Test this, is the same but using one activity for each imageview Attachments sample_layout2.zip 67.2 KB · Views: 254 Upvote 0
ibra939 said: Thanks i wish really thanks Click to expand... Test this, is the same but using one activity for each imageview
ibra939 Active Member Licensed User Longtime User Aug 12, 2014 #25 jsanchezc said: If you name imageview of each activity with same name: imageview1 then how you know into your app what object fires event imageview1_click? The sample i upload has different names for each imageview, so you can put code for each event. hope this help and could be a start point to solve the problem. Click to expand... Yap thanks what i want ....really helpful finally so thanks for all Upvote 0
jsanchezc said: If you name imageview of each activity with same name: imageview1 then how you know into your app what object fires event imageview1_click? The sample i upload has different names for each imageview, so you can put code for each event. hope this help and could be a start point to solve the problem. Click to expand... Yap thanks what i want ....really helpful finally so thanks for all