Android Question NumberDialog and checkbox

Discussion in 'Android Questions' started by imgsimonebiliato, Jun 11, 2015.

  1. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Hello,
    I need to create a panel similar to the NumberDialog but with a checkbox below.
    Is it possibile to implent this interface?
     
    Last edited: Jun 11, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    The link is broken.
     
  3. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

  4. Erel

    Erel Administrator Staff Member Licensed User

    You cannot add a checkbox to this dialog. You can however use a regular panel and implement a similar interface.
     
    Last edited: Jun 11, 2015
  5. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    And showing in the same activity?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Yes, just bring it to front when you want to show it.
     
    Peter Simpson likes this.
  7. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

  8. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Please Help.
    Is this code correct?
    I want that when I click on bt, the panel compare:


    Code:
    Sub Globals
    Public ed EditText
    Public p As Panel
    Public bt, bt2 as Button
    End Sub

    Sub Activity_Create(FirstTime As Boolean)
    bt.Initialize(
    "bt") : Activity.AddView ( bt, 0%x0%y50%x7.0%y) : bt.Text = "panel"

    p.Initialize(
    "p")
    Activity.AddView(p, 10%x10%y50%x50%y)
    p.SendToBack

    ed.Initialize(
    "ed") : p.AddView ( ed,  0%x9.4%y50%x15.6%y)
    bt2.Initialize(
    "bt2") : p.AddView ( bt2,  0%x27.2%y50%x7.0%y) : bt2.Text = "-"
    End Sub

    Sub bt_click
    p.BringToFront
    End Sub
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    Does it work?

    You can also change its Visible property so it will not be visible when it is in the back.
     
  10. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Yes it works using visible True and False.
    Another question, how can I blurred the main activity?
    Or disable it, when using the panel
     
    Last edited: Jun 11, 2015
  11. Erel

    Erel Administrator Staff Member Licensed User

    Create a full screen, semi transparent panel and add the dialog panel to this panel. Handle the background panel Click event (you can close the dialog if you like from this event).

    This way all the touches events will be intercepted.
     
Loading...