本文整理汇总了Java中android.widget.AbsSeekBar类的典型用法代码示例。如果您正苦于以下问题:Java AbsSeekBar类的具体用法?Java AbsSeekBar怎么用?Java AbsSeekBar使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbsSeekBar类属于android.widget包,在下文中一共展示了AbsSeekBar类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getFallbackText
import android.widget.AbsSeekBar; //导入依赖的package包/类
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 "";
}
示例2: ensureEnvUIChanger
import android.widget.AbsSeekBar; //导入依赖的package包/类
@Override
public EnvUIChanger<AbsSeekBar, XAbsSeekBarCall> ensureEnvUIChanger(EnvResBridge bridge, boolean allowSysRes) {
if (mEnvUIChanger == null) {
mEnvUIChanger = new EnvAbsSeekBarChanger<AbsSeekBar, XAbsSeekBarCall>(getContext(), bridge, allowSysRes);
}
return mEnvUIChanger;
}
示例3: getThumb
import android.widget.AbsSeekBar; //导入依赖的package包/类
@Override @SuppressWarnings("NewApi")
public Drawable getThumb() {
if (VersionUtils.hasApi16()) {
return super.getThumb();
} else {
try {
Field f = AbsSeekBar.class.getDeclaredField("mThumb");
f.setAccessible(true);
return (Drawable) f.get(this);
} catch (Exception e) {
Timber.e(e, "CompatSeekBar.getThumb() API=%d", Build.VERSION.SDK_INT);
return null;
}
}
}
示例4: AbsSeekBarHelper
import android.widget.AbsSeekBar; //导入依赖的package包/类
public AbsSeekBarHelper(AbsSeekBar view) {
super(view);
}
示例5: getView
import android.widget.AbsSeekBar; //导入依赖的package包/类
public AbsSeekBar getView(){
return mView;
}
示例6: AbsSeekBarWrapper
import android.widget.AbsSeekBar; //导入依赖的package包/类
public AbsSeekBarWrapper(AbsSeekBar view) {
super(view);
mView = view;
}
示例7: absSeekBar
import android.widget.AbsSeekBar; //导入依赖的package包/类
public static AbsSeekBarHelper absSeekBar(@NonNull Activity activity, @IdRes int viewId) {
return new AbsSeekBarHelper((AbsSeekBar) findView(activity, viewId));
}
示例8: RealMoveSeekBarOp
import android.widget.AbsSeekBar; //导入依赖的package包/类
RealMoveSeekBarOp(ACInstrumentation instrumentation, double prob, View target) {
super(instrumentation, prob);
this.target = (AbsSeekBar)target;
}
示例9: MoveSeekBarOp
import android.widget.AbsSeekBar; //导入依赖的package包/类
MoveSeekBarOp(ACInstrumentation instrumentation, double prob, View target) {
super(instrumentation, prob);
this.target = (AbsSeekBar)target;
}
示例10: CompatSeekBar
import android.widget.AbsSeekBar; //导入依赖的package包/类
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());
}
示例11: CompatRatingBar
import android.widget.AbsSeekBar; //导入依赖的package包/类
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());
}
示例12: shadowOf
import android.widget.AbsSeekBar; //导入依赖的package包/类
public static ShadowAbsSeekBar shadowOf(AbsSeekBar instance) {
return (ShadowAbsSeekBar) shadowOf_(instance);
}
示例13: AbsSeekBarAssert
import android.widget.AbsSeekBar; //导入依赖的package包/类
public AbsSeekBarAssert(AbsSeekBar actual) {
super(actual, AbsSeekBarAssert.class);
}