@Override protected void onBindView(final View view) {
		super.onBindView(view);
		final ImageView icon = (ImageView) view.findViewById(R.id.preference_action_button);
		if (mActionIcon != 0) {
			icon.setImageDrawable(getContext().getDrawable(mActionIcon));
			icon.setOnClickListener(this);
			icon.setEnabled(true);		// Make icon available even if the preference itself is disabled.
			icon.setVisibility(View.VISIBLE);
		} else icon.setVisibility(View.GONE);
	}
A preference with a clickable action icon on the side
mobile/src/main/java/com/oasisfeng/settings/ActionButtonPreference.java