Available Methods
- setImageResource ( )
- setImageDrawable ( )
- setOnClickListener ( )
- setImageBitmap ( )
- setVisibility ( )
- setScaleType ( )
- setLayoutParams ( )
- getDrawable ( )
- setColorFilter ( )
- ScaleType ( )
- setPadding ( )
- setTag ( )
- setBackgroundResource ( )
- setOnTouchListener ( )
- getContext ( )
- setBackgroundColor ( )
- getLayoutParams ( )
- post ( )
- getWidth ( )
- getHeight ( )
- setContentDescription ( )
- setAdjustViewBounds ( )
- setImageMatrix ( )
- setImageURI ( )
- setAlpha ( )
- startAnimation ( )
- getViewTreeObserver ( )
- setBackgroundDrawable ( )
- getLeft ( )
- setClickable ( )
- isInEditMode ( )
- setBackground ( )
- getPaddingTop ( )
- getTop ( )
- getPaddingLeft ( )
- getTag ( )
- getBottom ( )
- setDrawingCacheEnabled ( )
- setId ( )
- getPaddingRight ( )
- setEnabled ( )
- getRight ( )
- setRotation ( )
- getPaddingBottom ( )
- setFocusable ( )
- setSelected ( )
- requestLayout ( )
- getParent ( )
- getScaleType ( )
- getBackground ( )
- getVisibility ( )
- invalidate ( )
- getMeasuredWidth ( )
- setMaxWidth ( )
- setMaxHeight ( )
- setAnimation ( )
- setLayerType ( )
- setImageTintList ( )
- getImageMatrix ( )
- getMeasuredHeight ( )
- getDrawingCache ( )
- setScaleX ( )
- clearColorFilter ( )
- setOnLongClickListener ( )
- setX ( )
- getGlobalVisibleRect ( )
- setImageAlpha ( )
- layout ( )
- setScaleY ( )
- getId ( )
- setTranslationY ( )
- setTransitionName ( )
- setImageLevel ( )
- removeCallbacks ( )
- measure ( )
- setMinimumHeight ( )
- clearAnimation ( )
- setOnFocusChangeListener ( )
- postDelayed ( )
- getX ( )
- getRotation ( )
- isSelected ( )
- setOnDragListener ( )
- getMaxHeight ( )
- setY ( )
- getResources ( )
Related Classes
- java.io.File
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.util.AttributeSet
- android.graphics.Color
- android.os.Handler
- android.net.Uri
- android.widget.Button
- android.graphics.Bitmap
- android.text.TextUtils
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.content.res.TypedArray
- android.support.annotation.Nullable
- android.widget.EditText
Java Code Examples for android.widget.ImageView#isSelected()
The following examples show how to use
android.widget.ImageView#isSelected() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StarShowActivity.java From ShadowLayout with MIT License | 5 votes |
public boolean select(ImageView imageView) { if (imageView.isSelected()) { imageView.setSelected(false); return false; } else { imageView.setSelected(true); return true; } }
Example 2
Source File: WeekdaysPicker.java From Weekdays-Selector with MIT License | 5 votes |
private void toggleSelection(View v) { ImageView day = (ImageView) v; boolean selected = !day.isSelected(); if (mSeceletOnlyOne) { unselectAllDays(); } setDaySelected(day, selected); if (changeListener != null) { changeListener.onChange(this, (int) day.getTag(), getSelectedDays()); } }