Java 类android.widget.AbsSeekBar 实例源码
项目:brailleback
文件:DefaultBrailleRule.java
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 "";
}
项目:Android_Skin_3.x
文件:CompatSeekBar.java
@Override
public EnvUIChanger<AbsSeekBar, XAbsSeekBarCall> ensureEnvUIChanger(EnvResBridge bridge, boolean allowSysRes) {
if (mEnvUIChanger == null) {
mEnvUIChanger = new EnvAbsSeekBarChanger<AbsSeekBar, XAbsSeekBarCall>(getContext(), bridge, allowSysRes);
}
return mEnvUIChanger;
}
项目:Android_Skin_3.x
文件:CompatRatingBar.java
@Override
public EnvUIChanger<AbsSeekBar, XAbsSeekBarCall> ensureEnvUIChanger(EnvResBridge bridge, boolean allowSysRes) {
if (mEnvUIChanger == null) {
mEnvUIChanger = new EnvAbsSeekBarChanger<AbsSeekBar, XAbsSeekBarCall>(getContext(), bridge, allowSysRes);
}
return mEnvUIChanger;
}
项目:SyncthingAndroid
文件:CompatSeekBar.java
@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;
}
}
}
项目:Orpheus
文件:CompatSeekBar.java
@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;
}
}
}
项目:Orpheus
文件:CompatSeekBar.java
@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;
}
}
}
项目:AndroidViewHelper
文件:AbsSeekBarHelper.java
public AbsSeekBarHelper(AbsSeekBar view) {
super(view);
}
项目:AndroidViewHelper
文件:AbsSeekBarHelper.java
public AbsSeekBar getView(){
return mView;
}
项目:AndroidViewHelper
文件:AbsSeekBarWrapper.java
public AbsSeekBarWrapper(AbsSeekBar view) {
super(view);
mView = view;
}
项目:AndroidViewHelper
文件:AndroidViewHelper.java
public static AbsSeekBarHelper absSeekBar(@NonNull Activity activity, @IdRes int viewId) {
return new AbsSeekBarHelper((AbsSeekBar) findView(activity, viewId));
}
项目:AndroidViewHelper
文件:AndroidViewHelper.java
public static AbsSeekBarHelper absSeekBar(@NonNull View view, @IdRes int viewId) {
return new AbsSeekBarHelper((AbsSeekBar) findView(view, viewId));
}
项目:appdoctor
文件:Operation.java
RealMoveSeekBarOp(ACInstrumentation instrumentation, double prob, View target) {
super(instrumentation, prob);
this.target = (AbsSeekBar)target;
}
项目:appdoctor
文件:Operation.java
MoveSeekBarOp(ACInstrumentation instrumentation, double prob, View target) {
super(instrumentation, prob);
this.target = (AbsSeekBar)target;
}
项目:Android_Skin_2.0
文件:CompatSeekBar.java
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());
}
项目:Android_Skin_2.0
文件:CompatRatingBar.java
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());
}
项目:FullRobolectricTestSample
文件:Robolectric.java
public static ShadowAbsSeekBar shadowOf(AbsSeekBar instance) {
return (ShadowAbsSeekBar) shadowOf_(instance);
}
项目:assertj-android
文件:AbsSeekBarAssert.java
public AbsSeekBarAssert(AbsSeekBar actual) {
super(actual, AbsSeekBarAssert.class);
}