Android Question Insert panel and disable others views

Discussion in 'Android Questions' started by jinyistudio, Jan 26, 2015.

  1. jinyistudio

    jinyistudio Active Member Licensed User

    Hi Everyones

    I would insert a panel(fill full screen) as dialog but I don't know how to disable others views back of the panel(dialog) ? :(

    Code:
    Sub btnSwitch_Click
       
    If Dimming Then
         ShowSwitchDialog
       
    End If
    End Sub
    Sub ShowSwitchDialog As Int
          
    Dim lv As LayoutValues
          
    Dim item As BltData
     
          
    If   Not(Dimming) Then
               
    Return
          
    End If
     
          
    If Not(swpl.IsInitialized) Then
              swpl.Initialize(
    "swpl")
              lv = swpl.LoadLayout(
    "BlueLT_switch")
              
    Activity.AddView(swpl,0,0,lv.Width,lv.Height)
        
    End If
        swpl.Visible = 
    True
    End Sub
     
    Last edited: Jan 26, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please use [code]code here...[/code] tags when posting code.

    The simplest way to disable other views is to create a full screen transparent panel and handle its Click event (you don't need to do anything in this sub).
     
    jinyistudio likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice