作者:久居我心入我怀 | 来源:互联网 | 2023-07-08 09:55
本文整理了Java中android.support.v7.widget.AppCompatSeekBar.getProgress()方法的一些代码示例,展示了
本文整理了Java中android.support.v7.widget.AppCompatSeekBar.getProgress()
方法的一些代码示例,展示了AppCompatSeekBar.getProgress()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppCompatSeekBar.getProgress()
方法的具体详情如下:
包路径:android.support.v7.widget.AppCompatSeekBar
类名称:AppCompatSeekBar
方法名:getProgress
AppCompatSeekBar.getProgress介绍
暂无
代码示例
代码示例来源:origin: lingochamp/FileDownloader
int tenthMilliSec = ioPerformanceSb.getProgress();
int sleepMilliSec = tenthMilliSec / 10;
int sleepNanoSec = (tenthMilliSec - (tenthMilliSec / 10) * 10) * TENTH_MILLI_TO_NANO;
代码示例来源:origin: zyyoona7/WheelPicker
@Override
public void onClick(View v) {
int visibleItem = mVisibleItemSb.getProgress();
if (visibleItem <2) {
mVisibleItemSb.setProgress(3);
visibleItem = 3;
}
wheelView.setVisibleItems(visibleItem);
}
});
代码示例来源:origin: zyyoona7/WheelPicker
@Override
public void onClick(View v) {
wheelView.setDividerPaddingForWrap(paddingSb.getProgress());
}
});
代码示例来源:origin: zyyoona7/WheelPicker
@Override
public void onClick(View v) {
wheelView.setTextBoundaryMargin(mMarginSb.getProgress());
}
});
代码示例来源:origin: zyyoona7/WheelPicker
@Override
public void onClick(View v) {
wheelView.setLineSpacing(mLineSpacingSb.getProgress());
}
});
代码示例来源:origin: unixzii/android-SpringAnimator
public int getValue() {
return mSeekBar.getProgress() + mAdjustmentInfo.minValue;
}
代码示例来源:origin: HitenDev/VRefreshLayout
public void setRange(int... range) {
isF = false;
doRange(range);
notifyValue(mSeekBar.getProgress());
}
代码示例来源:origin: HitenDev/VRefreshLayout
public void setRange(float... range) {
int[] rangeI = new int[range.length];
for (int i = 0; i rangeI[i] = (int) (range[i] * 10);
}
setRange(rangeI);
isF = true;
notifyValue(mSeekBar.getProgress());
}
代码示例来源:origin: jahirfiquitiva/IconShowcase
private void saveValues() {
if (seekBar != null)
mPrefs.setMuzeiRefreshInterval(seekBar.getProgress());
mPrefs.setMuzeiRefreshOnWiFiOnly(checkBox != null && checkBox.isChecked());
}
代码示例来源:origin: fennifith/Status
alphaInt.setText(String.valueOf(Color.alpha(color)));
if (red.getProgress() != Color.red(color)) red.setProgress(Color.red(color));
if (green.getProgress() != Color.green(color)) green.setProgress(Color.green(color));
if (blue.getProgress() != Color.blue(color)) blue.setProgress(Color.blue(color));
if (alpha.getProgress() != Color.alpha(color)) alpha.setProgress(Color.alpha(color));
代码示例来源:origin: luxiliu/LabelLayout
private void update() {
AppCompatSeekBar distanceSeekBar = findViewById(R.id.distance_seek_bar);
AppCompatSeekBar heightSeekBar = findViewById(R.id.height_seek_bar);
AppCompatSpinner colorSpinner = findViewById(R.id.color_spinner);
AppCompatSpinner gravitySpinner = findViewById(R.id.gravity_spinner);
EditText editText = findViewById(R.id.edit_text);
AppCompatSeekBar textSizeSeekBar = findViewById(R.id.text_size_seek_bar);
AppCompatSpinner textColorSpinner = findViewById(R.id.text_color_spinner);
AppCompatSpinner textDirectiOnSpinner= findViewById(R.id.direction_spinner);
mLabelLayout.setLabelDistance(distanceSeekBar.getProgress());
mLabelLayout.setLabelHeight(heightSeekBar.getProgress());
mLabelLayout.setLabelBackground(new ColorDrawable(Color.parseColor(colorSpinner.getSelectedItem().toString().toLowerCase())));
mLabelLayout.setLabelGravity((LabelLayout.Gravity) gravitySpinner.getSelectedItem());
mLabelLayout.setLabelText(editText.getText().toString());
mLabelLayout.setLabelTextSize(textSizeSeekBar.getProgress());
mLabelLayout.setLabelTextColor(Color.parseColor(textColorSpinner.getSelectedItem().toString().toLowerCase()));
mLabelLayout.setLabelTextDirection((LabelLayout.TextDirection) textDirectionSpinner.getSelectedItem());
}
}