Quantcast
Viewing all articles
Browse latest Browse all 8068

Dynamic height for TableView with collection

Hi,

I used:

  • Titanium 3.1.0GA
  • Alloy 1.2
  • Android ( 480x800 and 720x1280 )

I have a question about tableView in alloy I tried everything that I think. Auto height for each row, fixed height row, Ti.UI.SIZE, but I have nothing.

My code is:

TableView(id="table", layout="vertical", dataCollection="track", dataFilter="onDataFilter")
                    Require(src="TrackRow")
TrackRow:
Alloy
    TableViewRow(class="row", layout="vertical", trackId="{id}", onClick="onClick")
        Label(text="{title}", class="title")
This is my style:
".row":
    width: Ti.UI.FILL
    height: 100
    borderWidth: 1
    borderColor: "#CBCBCB"
 
  ".title":
    color: "#535353"
    textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT
    width: Ti.UI.FILL
    right: 25
    font:
      fontSize: 26
      fontFamily: Alloy.CFG.fonts.FAMILY
      fontWeight: "bold"
 
  "#table":
    top: 510
    backgroundColor: "#E5E5E5"
    borderWidth: 1
    borderColor: "#CBCBCB"
    rowHeight: "auto"
    width: Ti.UI.FILL
    height: Ti.UI.SIZE
Any one has suggest?

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>