Android Question Listview position

Almora

Well-Known Member
Licensed User
Longtime User
Dim a1 As String


İf xxx.a1=0 then
Listview.Add........
Listview.Add........
Listview.Add........

Else if xxx.a1=1 then
Listview.Add........

End if


İf Position =0 then
Start act..... İt's. Work..

İf Position =1 then
Start act..... İt's. Work..

İf Position =2 then
Start act..... İt's. Work..


İf Position =3 then
Start act..... İt's NO WORK..

HELP... English bad...
 

mangojack

Expert
Licensed User
Longtime User
This Wrong ! Page4 Activity_Create code ..
B4X:
Case 0     
   If page2.a2=0 Then page3.a3=0 Then
     Label1.Text="page3 AAAAA clicked"

OK .. !
B4X:
Case 0     
  If page2.a2=0 Then
    If page3.a3=0 Then
      Label1.Text="page3 AAAAA clicked"
    Else
      '............


What are you trying to do ?? The sample now works OK ..
I have renamed your activities .. Again ! >>> Activity Page1 , Activity Page2 , Activity Page 3 >>>

NOTE : If you add more Items to ANY Page List this Code will NOT Work !
 

Attachments

  • Sample4 Test.zip
    14.4 KB · Views: 192
Last edited:
Upvote 0

Almora

Well-Known Member
Licensed User
Longtime User
This Wrong ! Page4 Activity_Create code ..
B4X:
Case 0    
   If page2.a2=0 Then page3.a3=0 Then
     Label1.Text="page3 AAAAA clicked"

OK .. !
B4X:
Case 0    
  If page2.a2=0 Then
    If page3.a3=0 Then
      Label1.Text="page3 AAAAA clicked"
    Else
      '............


What are you trying to do ?? The sample now works OK ..
I have renamed your activities .. Again ! >>> Activity Page1 , Activity Page2 , Activity Page 3 >>>

NOTE : If you add more Items to ANY Page List this Code will NOT Work !
thank you very, very much
 
Upvote 0
Top