• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java SeekArc类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.triggertrap.seekarc.SeekArc的典型用法代码示例。如果您正苦于以下问题:Java SeekArc类的具体用法?Java SeekArc怎么用?Java SeekArc使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SeekArc类属于com.triggertrap.seekarc包,在下文中一共展示了SeekArc类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setDialog

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
private void setDialog() {

        setCancelable(true);
        View content = LayoutInflater.from(mContext).inflate(
                R.layout.month_picker_dialog, null);
        setView(content);
        month_text = (TextView) content.findViewById(R.id.month_text);
        monthSeekArc = (SeekArc) content.findViewById(R.id.month_seekarc);
        monthSeekArc.setTouchInSide(true);
        monthSeekArc.setSweepAngle(300);
        monthSeekArc.setClockwise(false);
        monthSeekArc.setArcRotation(30);
        monthSeekArc.setOnSeekArcChangeListener(this);
        int index = months[calendar.get(Calendar.MONTH)];
        int progress = ((index == 11) ? 100 : (int) (index * (100.8 / 12)));
        monthSeekArc.setProgress(progress);
        updateMonthText();
    }
 
开发者ID:kamisakihideyoshi,项目名称:TaipeiTechRefined,代码行数:19,代码来源:MonthPickerDialog.java


示例2: onProgressChanged

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
public void onProgressChanged(final SeekArc bar, final int progress, final boolean fromuser) {
    if (!fromuser) return;
    final long now = SystemClock.elapsedRealtime();
    observeOnMain(musicService.getDuration())
            .subscribe(new Action1<Long>() {
                @Override
                public void call(Long duration) {
                    if (now - lastSeekEventTime > 10) {
                        lastSeekEventTime = now;
                        posOverride = duration * progress / 1000;
                        refreshCurrentTimeText(posOverride);
                        if (!fromTouch) {
                            posOverride = -1;
                        }
                    }
                }
            });
}
 
开发者ID:OpenSilk,项目名称:Orpheus,代码行数:20,代码来源:NowPlayingScreenPresenter.java


示例3: onCreate

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_disabled);

	SeekArc seekArcComplete = (SeekArc) findViewById(R.id.seekArcComplete);
	SeekArc seekArcWarning = (SeekArc) findViewById(R.id.seekArcWarning);

	seekArcComplete.setProgressColor(Color.parseColor("#22FF22"));
	//seekArcComplete.setProgress(99);

	seekArcWarning.setProgressColor(Color.parseColor("#FF2222"));
	seekArcWarning.setArcColor(Color.parseColor("#c2c2c2"));
	//seekArcWarning.setProgress(33);

}
 
开发者ID:neild001,项目名称:SeekArc,代码行数:17,代码来源:DisabledActivity.java


示例4: onProgressChanged

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
public void onProgressChanged(SeekArc arg0, int arg1, boolean arg2) {
    virtualizerLevel = (short) arg1;
    if (mApp.isServiceRunning()) {
        mApp.getService().getEqualizerHelper().getVirtualizer().setStrength((short) virtualizerLevel);
    }
    float angle = ((float) arg1 / 1000) * 280;
    mImageButtonVirtualizer.setRotation(angle);

    if ((arg1 == 5 || arg1 == 990) && arg2) {
        arg0.performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY);
    }
}
 
开发者ID:reyanshmishra,项目名称:Rey-MusicPlayer,代码行数:14,代码来源:EqualizerActivity.java


示例5: onProgressChanged

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
public void onProgressChanged(SeekArc seekArc, int progress,
                              boolean fromUser) {
    if (fromUser) {
        int index = (int) (progress / (100.8 / 12));
        if (index < 5) {
            this.calendar.set(Calendar.MONTH, index + 7);
            this.calendar.set(Calendar.YEAR, startYear);
        } else {
            this.calendar.set(Calendar.MONTH, index - 5);
            this.calendar.set(Calendar.YEAR, startYear + 1);
        }
        updateMonthText();
    }
}
 
开发者ID:kamisakihideyoshi,项目名称:TaipeiTechRefined,代码行数:16,代码来源:MonthPickerDialog.java


示例6: onCreateDialog

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    View contentView = LayoutInflater.from(getContext())
            .inflate(R.layout.dialog_duration_picker, null);

    mSlider = (SeekArc) contentView.findViewById(R.id.duration_picker_slider);
    mLabel = (TextView) contentView.findViewById(R.id.duration_picker_time);

    String title = getArguments().getString(KEY_TITLE);
    String disableButton = getArguments().getString(KEY_DISABLE_BUTTON);
    int maxValue = getArguments().getInt(KEY_MAX_VAL, Integer.MAX_VALUE);

    mSlider.setOnSeekArcChangeListener(this);
    mSlider.setMax(maxValue - mMinValue);
    mSlider.setProgress(mOffsetValue - mMinValue);

    AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getContext())
            .setTitle(title)
            .setView(contentView)
            .setPositiveButton(R.string.action_done, (dialogInterface, i) -> {
                onValueSelected(mSlider.getProgress() + mMinValue);
            })
            .setNegativeButton(R.string.action_cancel, null);

    if (disableButton != null) {
        dialogBuilder.setNeutralButton(disableButton, (dialogInterface, i) -> {
            onValueSelected(NO_VALUE);
        });
    }

    return dialogBuilder.show();
}
 
开发者ID:marverenic,项目名称:Jockey,代码行数:34,代码来源:DurationPickerDialogFragment.java


示例7: onStartTrackingTouch

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
public void onStartTrackingTouch(final SeekArc bar) {
    lastSeekEventTime = 0;
    posOverride = -1;
    fromTouch = true;
    setCurrentTimeVisibile();
}
 
开发者ID:OpenSilk,项目名称:Orpheus,代码行数:8,代码来源:NowPlayingScreenPresenter.java


示例8: onStopTrackingTouch

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
public void onStopTrackingTouch(final SeekArc bar) {
    if (posOverride != -1) {
        try {
            musicService.seek(posOverride).subscribe();
        } catch (Exception e) {
        }
    }
    posOverride = -1;
    fromTouch = false;
}
 
开发者ID:OpenSilk,项目名称:Orpheus,代码行数:12,代码来源:NowPlayingScreenPresenter.java


示例9: onStartTrackingTouch

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
public void onStartTrackingTouch(SeekArc seekBar) {
}
 
开发者ID:reyanshmishra,项目名称:Rey-MusicPlayer,代码行数:4,代码来源:EqualizerActivity.java


示例10: onStopTrackingTouch

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
public void onStopTrackingTouch(SeekArc seekBar) {
}
 
开发者ID:reyanshmishra,项目名称:Rey-MusicPlayer,代码行数:4,代码来源:EqualizerActivity.java


示例11: onProgressChanged

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
public void onProgressChanged(SeekArc seekArc, int progress, boolean fromUser) {
    mOffsetValue = progress + mMinValue;
    mLabel.setText(getString(R.string.time_in_min_format, mOffsetValue));
}
 
开发者ID:marverenic,项目名称:Jockey,代码行数:6,代码来源:DurationPickerDialogFragment.java


示例12: onStartTrackingTouch

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
public void onStartTrackingTouch(SeekArc seekArc) {

}
 
开发者ID:kamisakihideyoshi,项目名称:TaipeiTechRefined,代码行数:5,代码来源:MonthPickerDialog.java


示例13: onStopTrackingTouch

import com.triggertrap.seekarc.SeekArc; //导入依赖的package包/类
@Override
public void onStopTrackingTouch(SeekArc seekArc) {

}
 
开发者ID:kamisakihideyoshi,项目名称:TaipeiTechRefined,代码行数:5,代码来源:MonthPickerDialog.java



注:本文中的com.triggertrap.seekarc.SeekArc类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java LocalizationUtils类代码示例发布时间:2022-05-22
下一篇:
Java InplaceEditor类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap