Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

TableViewRow opacity does NOT work?

I try to set the TableView background as transparent, OK, it works, then I try to set all the TableViewRow's opacity in that TableView, but looks like opacity for TableViewRow lost controll? Man can not set this property anymore? Somebody could help? thx!

var menu_list_data = [];

    menu_list_data[0] = Ti.UI.createTableViewSection({
        headerTitle:''
    });

    for (var x=0;x<7;x++)
    {
        var temp_row = Ti.UI.createTableViewRow({
            title:'menu '+x,
            color:'#000',
            backgroundColor:'#E0FFFF',
                        opacity:0.8


        });
        menu_list_data[0].add(temp_row);
    }

    this.win_menulist = Titanium.UI.createWindow({  
        height:'100%'

    });

    var tableview = Titanium.UI.createTableView({

        data:menu_list_data,
        style: Titanium.UI.iPhone.TableViewStyle.GROUPED,
        backgroundColor:'transparent',
        height:'100%'

    });

    this.win_menulist.add(tableview);
— asked May 18th 2010 by Zhiguo Zhang
  • opacity
  • tableviewrow
0 Comments

5 Answers

  • i'm in the same situation :S i didnt found the solution

    — answered April 15th 2011 by guellai farid
    permalink
    0 Comments
  • Me too. It doesn't work (sdk 1.7.3)

    — answered October 23rd 2011 by Federico Botta
    permalink
    0 Comments
  • I'm trying to do this in SDK 1.8.0.1 and it still doesn't work. Is there any glitch we're missing? Is this actually meant to work? Any workaround?

    Would help so much…

    — answered January 10th 2012 by Christoffer T. Timm
    permalink
    0 Comments
  • Does anybody have a solution for this? 2.x does not work either

    — answered December 10th 2012 by matt s
    permalink
    0 Comments
  • Possibly try it the other way around….

    i.e put the opacity on the TableView and transparent on the TableViewRow

    Should achieve the same outcome unless you have alternate coloured rows

    — answered December 11th 2012 by Dave Hudson
    permalink
    1 Comment
    • I just made everything transparent and put a view into the tableviewrow

      — commented December 12th 2012 by matt s
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.