android Programming Glossary: mpinnedheaderbackgroundcolor
Pinned groups in ExpandableListView http://stackoverflow.com/questions/10613552/pinned-groups-in-expandablelistview public class ExpandableList extends Activity MyExpandableListAdapter mAdapter PinnedHeaderExpListView elv private int mPinnedHeaderBackgroundColor private int mPinnedHeaderTextColor public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView.. mAdapter new MyExpandableListAdapter elv PinnedHeaderExpListView findViewById R.id.list elv.setAdapter mAdapter mPinnedHeaderBackgroundColor getResources .getColor android.R.color.black mPinnedHeaderTextColor getResources .getColor android.R.color.white elv.setGroupIndicator.. TextView v final String title String getGroup position header.setText title if alpha 255 header.setBackgroundColor mPinnedHeaderBackgroundColor header.setTextColor mPinnedHeaderTextColor else header.setBackgroundColor Color.argb alpha Color.red mPinnedHeaderBackgroundColor..
|