Java Code Examples for android.widget.TextView.setActivated()

The following are Jave code examples for showing how to use setActivated() of the android.widget.TextView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: OSchina_resources_android   File: TabPickerView.java   Source Code and License Vote up 7 votes
ViewHolder(View view) {
    super(view);
    mViewTab = (TextView) view.findViewById(R.id.tv_content);
    mViewBubble = (TextView) view.findViewById(R.id.tv_bubble);
    mViewDel = (ImageView) view.findViewById(R.id.iv_delete);

    mViewTab.setTextColor(new ColorStateList(new int[][]{
                    new int[]{-android.R.attr.state_activated},
                    new int[]{}
            }, new int[]{0XFF24CF5F, 0XFF6A6A6A})
    );
    mViewTab.setActivated(true);

    mViewTab.setTag(this);
    mViewDel.setTag(this);
    mViewDel.setOnClickListener(getDeleteItemListener());
    mViewTab.setOnClickListener(getClickTabItemListener());
    mViewTab.setOnTouchListener(getTouchTabItemListener());
}