Android Question CustomList view and Tablet question

Discussion in 'Android Questions' started by trueboss323, Mar 10, 2015.

  1. trueboss323

    trueboss323 Active Member Licensed User

    So i am trying to design an app both for phone and tablets. I got CustomListView to display correctly on a phone layout, but on tablet, it appears small, and there is a lot of unused space, is there anyway i can make the panel sizes bigger so it fills the whole screen?
     
    Last edited: Mar 10, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    Yes. Use anchors to make the view resize as needed.
     
  3. trueboss323

    trueboss323 Active Member Licensed User

    Hello Erel, I tried using your method, but it wasn't exactly as expected. I meant that I wanted to make the list items bigger.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    You can create a layout file for the items and use the designer anchor and script features.

    When you add the items to the list you need to first create the parent panel and temporary add it to a panel or activity. Adding the panel to a temporary parent allows you to set its correct size (based on the device). This is important for Panel.LoadLayout to work correctly.
     
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