Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. Problem with custom row in List View

Problem with custom row in List View

Scheduled Pinned Locked Moved Android
xmlhelplearning
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andy_Bell
    wrote on last edited by
    #1

    I have problem with layout in my application. I'm using list view and I have defined a custom list row. The program is correctly executed, but layout has some problem. The space between two consecutive row is excessive... This is XML code that I use in application layout (main) "activityMain.xml"

    and this is the custm row in XML resource ("list_row.xml")

    D 1 Reply Last reply
    0
    • A Andy_Bell

      I have problem with layout in my application. I'm using list view and I have defined a custom list row. The program is correctly executed, but layout has some problem. The space between two consecutive row is excessive... This is XML code that I use in application layout (main) "activityMain.xml"

      and this is the custm row in XML resource ("list_row.xml")

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Andy_Bell wrote:

      android:layout_height="90dip"

      Have you considered values other than 90?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      A 1 Reply Last reply
      0
      • D David Crow

        Andy_Bell wrote:

        android:layout_height="90dip"

        Have you considered values other than 90?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        A Offline
        A Offline
        Andy_Bell
        wrote on last edited by
        #3

        Yes of course. Reducing this value I can restrict row (defined in "list_row.xml") but the problem remain: space between 2 line remains the same. I think it's like the problem is in ListView and not in the custom row.....

        D 1 Reply Last reply
        0
        • A Andy_Bell

          Yes of course. Reducing this value I can restrict row (defined in "list_row.xml") but the problem remain: space between 2 line remains the same. I think it's like the problem is in ListView and not in the custom row.....

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          A picture would help. You have a bunch of extra stuff on each of those widgets, both files. I would suggest trimming away everything that is not 100% necessary and then build them back up until the problem reappears.

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups