ImageView setSelected - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ImageView setSelected method.

This code example shows how to use the following methods:setSelected
        popupWindow.setTouchable(true);
        popupWindow.setFocusable(true);
        popupWindow.setOutsideTouchable(true);
        popupWindow.setOnDismissListener(new OnDismissListener() {
            public void onDismiss() { 
                mActionbarMore.setSelected(false);
            } 
        }); 
 
        Button settingsButton = (Button) moreContentView.findViewById(R.id.main_more_content_settings);
        settingsButton.setOnClickListener(new OnClickListener() {
            @Override 
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, SettingsActivity.class));
                popupWindow.dismiss();
            } 
        }); 
 
        Button aboutButton = (Button) moreContentView.findViewById(R.id.main_more_content_about);
        aboutButton.setOnClickListener(new OnClickListener() {
5
CodeRank
This code example shows how to use the following methods:setSelected
		this.i = i;
		this.j = j;
	} 
 
	public void onClick(View v) {
		button.setSelected(true);
//		button.set 
		if (firstI < 0) {
			firstI = this.i;
			firstJ = this.j;
 
			Log.e("2","ONE NULL");
		} else if(secondI < 0) {
			secondI = this.i;
			secondJ = this.j;
			Log.e("2","REDRAW");
			Bitmap tmp = result[firstI][firstJ];
			result[firstI][firstJ] = result[secondI][secondJ];
			result[secondI][secondJ] = tmp;	
			//redraw 
4
CodeRank
This code example shows how to use the following methods:setSelected
            case BORDERS: {
                bordersButton.setSelected(value);
                break; 
            } 
            case GEOMETRY: {
                geometryButton.setSelected(value);
                break; 
            } 
            case FILTERS: {
                filtersButton.setSelected(value);
                break; 
            } 
        } 
    } 
 
    @Override 
    public void onDestroyView() { 
        super.onDestroyView(); 
        if (mMainView != null) {
            if (mMainView.getParent() != null) {
3
CodeRank
This code example shows how to use the following methods:setSelected
			} 
			if ( mOnCheckedChangeWidgetListener != null ) {
				mOnCheckedChangeWidgetListener.onCheckedChanged( this, mChecked );
			} 
 
			mImageView.setSelected( mChecked );
			mTextView.setSelected( mChecked );
 
			mBroadcasting = false;
		} 
	} 
 
	/* 
	 * (non-Javadoc) 
	 *  
	 * @see android.widget.Checkable#toggle() 
	 */ 
	@Override 
	public void toggle() { 
		setChecked( !mChecked );
4
CodeRank
This code example shows how to use the following methods:setSelected
		 
		public void setSelected(boolean selected)
		{ 
			if (isSelected() != selected)
			{ 
				super.setSelected(selected);
			} 
		} 
		 
		/* 
		public void setSelected(byte id, int force, int min, int max) 
		{ 
			if (force >= min && force <= max) 
			{ 
				if (force != lastForce) 
				{ 
					setSelected(true); 
					byte[] code = { id, (byte)force, 0 }; 
					WifiWidget.write(code); 
					lastForce = force; 
4
CodeRank

Related ImageView setSelected Questions & Answers:

setSelected Method Overview
Changes the selection state of this view.
See Code Examples for other Android ImageView Methods: