SettingItemView

public class SettingItemView

Constructors

Link copied to clipboard
public void SettingItemView(Context context)
public void SettingItemView(Context context, AttributeSet attrs)
public void SettingItemView(Context context, AttributeSet attrs, int defStyleAttr)

Functions

Link copied to clipboard
public ImageView getSelectImage()
Link copied to clipboard
public String getValue()
Get the value text
Link copied to clipboard
public TextView getValueView()
Get the value TextView for customizing text color
Link copied to clipboard
public boolean isChecked()
Get the current switch checked state
Link copied to clipboard
public void setChecked(boolean isChecked)
Set the switch button checked state
Link copied to clipboard
public void setCheckedImmediately(boolean isChecked)
Set the switch button checked state immediately without animation
Link copied to clipboard
public void setCheckedImmediatelyWithOutEvent(boolean isChecked)
Set the switch button checked state immediately without animation or triggering the checked change event
Link copied to clipboard
public void setCheckedWithOutEvent(boolean isChecked)
Set the switch button checked state without triggering the checked change event
Link copied to clipboard
public void setContent(int resId)
Set the content text from a string resource
public void setContent(String content)
Set the content text
Link copied to clipboard
public void setImage(int resId)
Set the left image resource
Link copied to clipboard
public void setImageVisibility(int visibility)
Set the visibility of the left image
Link copied to clipboard
public void setRightImageVisibility(int visibility)
Set the visibility of the right image
Link copied to clipboard
public void setSelected(boolean selected)
Link copied to clipboard
public void setSelectImage(Uri uri)
Link copied to clipboard
public void setSwitchButtonVisibility(int visibility)
Set the visibility of the switch button
Link copied to clipboard
public void setSwitchCheckListener(OnCheckedChangeListener listener)
Set the switch button checked change listener
Link copied to clipboard
public void setSwitchTouchListener(OnTouchListener listener)
Link copied to clipboard
public void setTagImage(int resId)
Set the tag image resource
Link copied to clipboard
public void setTagImageVisibility(int visibility)
Set the visibility of the tag image
Link copied to clipboard
public void setValue(int resId)
Set the value text from a string resource
public void setValue(String value)
Set the value text
Link copied to clipboard
public void setValueVisibility(int visibility)
Set the visibility of the value text