android.widget.AbsSeekBar Java Examples

The following examples show how to use android.widget.AbsSeekBar. 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: DefaultBrailleRule.java    From brailleback with Apache License 2.0 6 votes vote down vote up
private CharSequence getFallbackText(
    Context context,
    AccessibilityNodeInfoCompat node) {
    // Order is important below because of class inheritance.
    if (matchesAny(context, node, Button.class, ImageButton.class)) {
        return context.getString(R.string.type_button);
    }
    if (matchesAny(context, node, QuickContactBadge.class)) {
        return context.getString(R.string.type_quickcontact);
    }
    if (matchesAny(context, node, ImageView.class)) {
        return context.getString(R.string.type_image);
    }
    if (matchesAny(context, node, EditText.class)) {
        return context.getString(R.string.type_edittext);
    }
    if (matchesAny(context, node, AbsSeekBar.class)) {
        return context.getString(R.string.type_seekbar);
    }
    return "";
}
 
Example #2
Source File: DynamicInputUtils.java    From dynamic-support with Apache License 2.0 5 votes vote down vote up
/**
 * Tint the {@link AbsSeekBar} thumb drawable according to the supplied color.
 *
 * @param seekBar The seek bar to be colorized.
 * @param color The color to be used.
 */
public static void setColor(@NonNull AbsSeekBar seekBar, @ColorInt int color) {
    try {
        Field fThumb = AbsSeekBar.class.getDeclaredField("mThumb");
        fThumb.setAccessible(true);
        fThumb.set(seekBar, DynamicDrawableUtils.colorizeDrawable(
                (Drawable) fThumb.get(seekBar), color));
    } catch (Exception e) {
        e.printStackTrace();
    }
}
 
Example #3
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static BaseDSL.ViewClassResult absSeekBar() {
  return BaseDSL.v(AbsSeekBar.class);
}
 
Example #4
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void absSeekBar(Anvil.Renderable r) {
  return BaseDSL.v(AbsSeekBar.class, r);
}
 
Example #5
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static BaseDSL.ViewClassResult absSeekBar() {
  return BaseDSL.v(AbsSeekBar.class);
}
 
Example #6
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void absSeekBar(Anvil.Renderable r) {
  return BaseDSL.v(AbsSeekBar.class, r);
}
 
Example #7
Source File: CompatSeekBar.java    From Android_Skin_2.0 with Apache License 2.0 4 votes vote down vote up
public CompatSeekBar(Context context, AttributeSet attrs, int defStyle) {
	super(context, attrs, defStyle);

	mEnvUIChanger = new EnvAbsSeekBarChanger<AbsSeekBar, XAbsSeekBarCall>(context);
	mEnvUIChanger.applyStyle(context, attrs, defStyle, 0, ALLOW_SYSRES, isInEditMode());
}
 
Example #8
Source File: CompatRatingBar.java    From Android_Skin_2.0 with Apache License 2.0 4 votes vote down vote up
public CompatRatingBar(Context context, AttributeSet attrs, int defStyle) {
	super(context, attrs, defStyle);

	mEnvUIChanger = new EnvAbsSeekBarChanger<AbsSeekBar, XAbsSeekBarCall>(context);
	mEnvUIChanger.applyStyle(context, attrs, defStyle, 0, ALLOW_SYSRES, isInEditMode());
}
 
Example #9
Source File: AbsSeekBarAssert.java    From assertj-android with Apache License 2.0 4 votes vote down vote up
public AbsSeekBarAssert(AbsSeekBar actual) {
  super(actual, AbsSeekBarAssert.class);
}