public class

CircledImageView

extends FrameLayout

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ android.support.wearable.view.CircledImageView
Known Direct Subclasses

Class Overview

An image view surrounded by a circle.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
Fields
protected float mProgress
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
CircledImageView(Context context)
CircledImageView(Context context, AttributeSet attrs)
CircledImageView(Context context, AttributeSet attrs, int defStyle)
Public Methods
ColorStateList getCircleColorStateList()
float getCircleRadius()
int getDefaultCircleColor()
float getInitialCircleRadius()
void setCircleBorderColor(int circleBorderColor)
void setCircleBorderWidth(float circleBorderWidth)
Set the border around the circle.
void setCircleColor(int circleColor)
void setCircleColorStateList(ColorStateList circleColor)
void setCircleHidden(boolean circleHidden)
void setCircleRadius(float circleRadius)
void setCircleRadiusPressed(float circleRadiusPressed)
void setImageDrawable(Drawable drawable)
void setImageResource(int resId)
void setPressed(boolean pressed)
void setProgress(float progress)
void setShadowVisibility(float shadowVisibility)
Set how much of the shadow should be shown.
void showIndeterminateProgress(boolean show)
Show the circle border as an indeterminate progress spinner.
Protected Methods
void drawableStateChanged()
void onDraw(Canvas canvas)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
void onVisibilityChanged(View changedView, int visibility)
[Expand]
Inherited Methods
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Fields

protected float mProgress

Public Constructors

public CircledImageView (Context context)

public CircledImageView (Context context, AttributeSet attrs)

public CircledImageView (Context context, AttributeSet attrs, int defStyle)

Public Methods

public ColorStateList getCircleColorStateList ()

public float getCircleRadius ()

public int getDefaultCircleColor ()

public float getInitialCircleRadius ()

public void setCircleBorderColor (int circleBorderColor)

public void setCircleBorderWidth (float circleBorderWidth)

Set the border around the circle.

Parameters
circleBorderWidth Width of the border around the circle.

public void setCircleColor (int circleColor)

public void setCircleColorStateList (ColorStateList circleColor)

public void setCircleHidden (boolean circleHidden)

public void setCircleRadius (float circleRadius)

public void setCircleRadiusPressed (float circleRadiusPressed)

public void setImageDrawable (Drawable drawable)

public void setImageResource (int resId)

public void setPressed (boolean pressed)

public void setProgress (float progress)

public void setShadowVisibility (float shadowVisibility)

Set how much of the shadow should be shown.

Parameters
shadowVisibility Value between 0 and 1.

public void showIndeterminateProgress (boolean show)

Show the circle border as an indeterminate progress spinner. The views circle border width and color must be set for this to have an effect.

Parameters
show true if the progress spinner is shown, false to hide it.

Protected Methods

protected void drawableStateChanged ()

protected void onDraw (Canvas canvas)

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

protected void onVisibilityChanged (View changedView, int visibility)