HipByte / RubyMotionSamples

A collection of RubyMotion applications for code samples.
http://www.rubymotion.com
1.21k stars 341 forks source link

How to change text color of drawerlist item? #55

Open cactis opened 10 years ago

cactis commented 10 years ago

In Conference sample,

@drawerList = Android::Widget::ListView.new(self)
@drawerList.adapter = Android::Widget::ArrayAdapter.new(self, Android::R::Layout::Simple_list_item_1, MenuTitles)
@drawerList.choiceMode = Android::Widget::AbsListView::CHOICE_MODE_SINGLE
@drawerList.dividerHeight = 0
@drawerList.backgroundColor = Android::Graphics::Color::DKGRAY
@drawerList.onItemClickListener = self

we can change drawerList's backgroundColor, but how to change item color?

thanks.