Android Question Dimensions Widget Panel

Discussion in 'Android Questions' started by imgsimonebiliato, Jul 9, 2015.

  1. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Hello,
    I'm creating a simple widget.
    The background panel dimensions must be large and wide as the same of the screen.
    This is the problem: I will install this widget in different devices with different resolution.
    So, how can I set the exactly dimensions?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    There is no way to get the exact dimensions.
     
    ArminKH likes this.
  3. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    So, what do you advise me to do?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Set the size to 294x72 and make sure that the Center parameter in ConfigureHomeWidget is true.
     
  5. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    You told me to "set the size to 294x72". But the size of?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    The size of the base panel in the designer.
     
    Peter Simpson likes this.
  7. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Do you mean here?

    [​IMG][​IMG]
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    No. The widget layout is made of a panel with views. You need to set the size of this panel.
     
  9. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    But the panel with these dimensions, it's too small for me..

    [​IMG]
     
Loading...