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

The following are Jave code examples for showing how to use setActivated() of the android.widget.ImageView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Android-DFU-App   File:   View Source Code Vote up 6 votes
public View getView(final int position, final View convertView, final ViewGroup parent) {
	View view = convertView;
	if (view == null) {
		view = LayoutInflater.from(getActivity()).inflate(R.layout.feature_uart_dialog_edit_icon, parent, false);
	final ImageView image = (ImageView) view;
	image.setActivated(position == mActiveIcon && mActiveCheckBox.isChecked());
	return view;