Sub Back_Click
   ChangePanel(0)
   Indicator.Visible = False
   Panels(0).Visible = False
   Panels(1).Visible = False
   Panels(2).Visible = False
   btnLeft.Visible = False
   btnRight.Visible = False
   Back.Visible = False
   BlankScreen.Visible = False
   Alfabet.Visible = True
   ListView1.RequestFocus   
End Sub
Sub ListView1_ItemClick(Position As Int, Value As Object)
   Dim sel As SevenLines      : sel = Value
   Dim Beschrijving1 As Label
   
   ImageFront.Initialize("")
   ImageBack.Initialize("")
   Beschrijving1.Initialize("")
   BlankScreen.Initialize("")
   BlankScreen.Color = Colors.Black
   Activity.AddView(BlankScreen, 0, 0, 100%x, 100%y)
   Beschrijving1.Color = Colors.Black
   Beschrijving1.TextColor = Colors.White
   sd.Initialize
   'add the Left and Right button
   btnLeft.Initialize("Left")
   btnLeft.Text = ">"
   Activity.AddView(btnLeft, 65%x, 100%y - 45dip, 100dip, 50dip)
   btnRight.Initialize("Right")
   btnRight.Text = "<"
   Activity.AddView(btnRight, 5%x, 100%y - 45dip, 100dip, 50dip)
   Back.Initialize("Back")
   Back.Text = "Back"
   Activity.AddView(Back, 35%x, 100%y - 45dip, 100dip, 50dip)
   
   'Load Bitmaps for indicator
   ActiveBitmap.Initialize(File.DirAssets, "indicator_active.png")
   InactiveBitmap.Initialize(File.DirAssets, "indicator_inactive.png")
   For i = 0 To Panels.Length - 1
      Panels(i).Initialize("Panels")
      Panels(i).Color = Colors.Black
      Activity.AddView(Panels(i), 100%x, 0, 100%x, 100%y - 60dip) 'add the panel to the layout
   Next
   
   If File.Exists(ImageBigPath, sel.Four & "f.jpg") = True Then
      Alfabet.Visible = False
      ImageFront.Bitmap = LoadBitmap(ImageBigPath, sel.Four & "f.jpg")
      ImageFront.Gravity = Gravity.Fill
      Panels(0).AddView(ImageFront,0,0,100%x,100%y - 60dip)
      ImageBack.Bitmap = LoadBitmap(ImageBigPath, sel.Four & "b.jpg")
      ImageBack.Gravity = Gravity.Fill
      Panels(1).AddView(ImageBack,0,0,100%x,100%y - 60dip)
      Beschrijving1.Text = sel.Seven
      Panels(2).AddView(Beschrijving1,20dip,20dip,100%x - 40dip,100%y - 80dip)
      SlidingPanels.Initialize(sd,Panels,True,150)
      sd.currentPanel = currentPanelBeforePaused - 1
   
      Indicator = SlidingPanels.CreatePageIndicator(panels.Length, InactiveBitmap, 120dip, 16dip)
      Activity.AddView(Indicator, (100%x - 120dip) / 2, 0, 120dip, 16dip)
      Indicator.BringToFront
      ChangePanel(0)
   Else
      If sel.Seven <>"" Then
         Beschrijving1.Text = sel.Seven
         Panels(0).AddView(Beschrijving1,20dip,20dip,100%x - 40dip,100%y - 80dip)
         SlidingPanels.Initialize(sd,Panels,True,150)
         sd.currentPanel = currentPanelBeforePaused - 1
         Indicator = SlidingPanels.CreatePageIndicator(panels.Length, InactiveBitmap, 120dip, 16dip)
         Activity.AddView(Indicator, (100%x - 120dip) / 2, 0, 120dip, 16dip)
         Indicator.BringToFront
         ChangePanel(0)
      Else
         btnLeft.Visible = False
         btnRight.Visible = False
         Back.Visible = False
         Msgbox("Image niet gevonden","")
         BlankScreen.Visible = False
         Alfabet.Visible = True
         ListView1.RequestFocus   
      End If
   End If
End Sub