本文整理汇总了Java中com.todddavies.components.progressbar.ProgressWheel类的典型用法代码示例。如果您正苦于以下问题:Java ProgressWheel类的具体用法?Java ProgressWheel怎么用?Java ProgressWheel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProgressWheel类属于com.todddavies.components.progressbar包,在下文中一共展示了ProgressWheel类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onSessionStateChange
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
private void onSessionStateChange(Session session, SessionState state, Exception exception) {
Log.i("SplashscreenActivity", "onSessionStateChange");
Controller.getInstance().setSession(session);
if(state.isOpened() && !mConnected){
mConnected = true;
session.refreshPermissions();
List<String> permissions = session.getPermissions();
Log.i("FACEBOOK_CONNECTION", "Logged in..." + permissions.toString());
findViewById(R.id.authButton).setVisibility(View.GONE);
findViewById(R.id.progressBar).setVisibility(View.VISIBLE);
((ProgressWheel) findViewById(R.id.progressBar)).spin();
Server.connect(session.getAccessToken());
} else if(state.isClosed()) {
mConnected = false;
Log.i("FACEBOOK_CONNECTION", "Logged out...");
}
}
开发者ID:theblindr,项目名称:blindr,代码行数:18,代码来源:SplashscreenActivity.java
示例2: onPostExecute
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
@Override
protected void onPostExecute(String result) {
if(result.equals("success")) {
ProgressWheel pBar = (ProgressWheel) findViewById(R.id.progressBar);
pBar.setProgress(0);
pBar.setVisibility(View.GONE);
ImageView imageView = (ImageView) findViewById(R.id.imgView);
imageView.setVisibility(View.VISIBLE);
Utils.matToBitmap(showBit, bimage);
imageView.setImageBitmap(bimage);
incremented = 0;
new TextOperation().execute("");
} else {
Log.w("Error", "Loading image error");
theText.put("Error", "Image Loading");
Intent theResult = new Intent();
theResult.putExtra("theValidation", theText);
setResult(Activity.RESULT_OK, theResult);
finish();
}
}
开发者ID:F4b1-,项目名称:Pixtern-Library,代码行数:23,代码来源:CardValidationActivity.java
示例3: doInBackground
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
@Override
protected String doInBackground(String... params) {
runOnUiThread(new Runnable() {
@Override
public void run() {
ProgressWheel pBar = (ProgressWheel) findViewById(R.id.progressBar);
pBar.setVisibility(View.VISIBLE);
pBar.spin();
pBar.setText("Fetching...");
}
});
// Sets Up Tesseract for text recognition.
baseApi = new TessBaseAPI();
baseApi.init(Environment.getExternalStorageDirectory() + "/tesseract/", "eng");
//baseApi.setVariable(TessBaseAPI.VAR_CHAR_WHITELIST,"ABCDEFGHIJKLMNOPQRSTUVWXYZ");
baseApi.setVariable("load_system_dawg","F");
baseApi.setVariable("load_freq_dawg","F");
baseApi.setPageSegMode(TessBaseAPI.PageSegMode.PSM_AUTO_OSD);
for (String key : card.getPatternMap().keySet()) {
if(card.getPatternMap().get(key).getResource().matches("[t][e][x][t].*")) fetchTextNew(card.getPattern(key).getResource());
}
baseApi.end();
return "sucess";
}
开发者ID:F4b1-,项目名称:Pixtern-Library,代码行数:25,代码来源:CardValidationActivity.java
示例4: wallpaperBitmapReceived
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
@ィ(ˊ="WALLPAPER_CREATED")
public void wallpaperBitmapReceived(final Bitmap paramBitmap)
{
runOnUiThread(new Runnable()
{
@SuppressLint({"NewApi"})
public void run()
{
float f = ProfileActivity.this.wallpaperView.getHeight() / paramBitmap.getHeight();
Bitmap localBitmap = Bitmap.createScaledBitmap(paramBitmap, Math.round(f * paramBitmap.getWidth()), Math.round(f * paramBitmap.getHeight()), false);
BitmapDrawable localBitmapDrawable = new BitmapDrawable(ProfileActivity.this.getResources(), localBitmap);
localBitmapDrawable.setColorFilter(ProfileActivity.this.getResources().getColor(2131230764), PorterDuff.Mode.SRC_ATOP);
ProfileActivity.this.wallpaperView.setImageDrawable(localBitmapDrawable);
ProgressWheel localProgressWheel = (ProgressWheel)ProfileActivity.this.findViewById(2131296464);
localProgressWheel.stopSpinning();
localProgressWheel.setVisibility(8);
}
});
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:20,代码来源:ProfileActivity.java
示例5: configureViews
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
private void configureViews() {
this.conferenceTime.setToNow();
this.year = conferenceTime.year;
this.mCountdownNote = (TextView) findViewById(R.id.activity_countdown_timer_note);
this.mDaysWheel = (ProgressWheel) findViewById(R.id.activity_countdown_timer_days);
this.mHoursWheel = (ProgressWheel) findViewById(R.id.activity_countdown_timer_hours);
this.mMinutesWheel = (ProgressWheel) findViewById(R.id.activity_countdown_timer_minutes);
this.mSecondsWheel = (ProgressWheel) findViewById(R.id.activity_countdown_timer_seconds);
this.mDaysLabel = (TextView) findViewById(R.id.activity_countdown_timer_days_text);
this.mHoursLabel = (TextView) findViewById(R.id.activity_countdown_timer_hours_text);
this.mMinutesLabel = (TextView) findViewById(R.id.activity_countdown_timer_minutes_text);
this.mSecondsLabel = (TextView) findViewById(R.id.activity_countdown_timer_seconds_text);
}
开发者ID:CardinalNow,项目名称:Android-CountdownTimer,代码行数:17,代码来源:CountdownTimerActivity.java
示例6: setViews
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
private void setViews(){
m_IvSettings = (ImageView) findViewById(R.id.iv_history);
m_ProgressWheel = (ProgressWheel) findViewById(R.id.pw_heartrate);
m_BtnToggle = (ProgressWheelFitButton) findViewById(R.id.btn_toggle);
m_WaveView = (WaveView) findViewById(R.id.wv_start);
m_IvLine = (ImageView) findViewById(R.id.iv_line_start);
m_IvHeart = (ImageView) findViewById(R.id.iv_heart_measure);
m_TvLabel = (TextView) findViewById(R.id.tv_data_measure);
m_TvDoneTime = (TextView) findViewById(R.id.tv_done_time_measure);
}
开发者ID:Sherchen,项目名称:WaveHeartRate,代码行数:11,代码来源:Measure.java
示例7: setListeners
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
private void setListeners(){
m_IvSettings.setOnClickListener(this);
m_BtnToggle.setOnClickListener(this);
m_ProgressWheel.setOnSizeChangedListener(new ProgressWheel.SizeChangedListener() {
@Override
public void onSizeChanged(ProgressWheel wheel) {
m_BtnToggle.clip(wheel.getWidth(), wheel.getHeight(), wheel.getRimWidth());
}
});
m_WaveView.setOnPainterTrickListener(new WaveView.OnPainterTrickListener(){
@Override
public int getPainterValue() {
return -1;
}
@Override
public void onPainterTrick(int value) {
m_ProgressWheel.incrementProgress();
if(value != 0){// if no value stay same.
changeUiOnLabel(true, String.format("%03d", value));
}
}
@Override
public void onPainterFinished() {
int average = m_WaveView.getAverage();
onMeasureFinished(average);
}
});
}
开发者ID:Sherchen,项目名称:WaveHeartRate,代码行数:31,代码来源:Measure.java
示例8: updateUI
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
/**
* Update 'detection in progress' UI.
*/
public void updateUI() {
runOnUiThread(new Runnable() {
@Override
public void run() {
View buttonLoadImage = findViewById(R.id.buttonLoadPicture);
buttonLoadImage.setEnabled(false);
ImageView imageView = (ImageView) findViewById(R.id.imgView);
imageView.setVisibility(View.GONE);
ProgressWheel pBar = (ProgressWheel) findViewById(R.id.progressBar);
pBar.setVisibility(View.VISIBLE);
}
});
}
开发者ID:F4b1-,项目名称:Pixtern-Library,代码行数:17,代码来源:CardValidationActivity.java
示例9: onProgressUpdate
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
@Override
protected void onProgressUpdate(String... values) {
ProgressWheel pBar = (ProgressWheel) findViewById(R.id.progressBar);
double val = Integer.valueOf(values[0]) / 100.0;
val = val * 360;
double nowToIncr = val - incremented;
for(int i= 0; i<= nowToIncr; i++) pBar.incrementProgress();
incremented = (int)val;
}
开发者ID:F4b1-,项目名称:Pixtern-Library,代码行数:10,代码来源:CardValidationActivity.java
示例10: onProgressUpdate
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
@Override
protected void onProgressUpdate(String... values) {
ImageView imageView = (ImageView) findViewById(R.id.imgView);
imageView.setVisibility(View.GONE);
ProgressWheel pBar = (ProgressWheel) findViewById(R.id.progressBar);
pBar.setVisibility(View.VISIBLE);
//Calculation to update progressBar
double val = Integer.valueOf(values[0]) / 100.0;
val = val * 360;
double nowToIncr = val - incremented;
for(int i= 0; i<= nowToIncr; i++) pBar.incrementProgress();
incremented = (int)val;
}
开发者ID:F4b1-,项目名称:Pixtern-Library,代码行数:14,代码来源:ValidateUploadActivity.java
示例11: onCreate
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
LayoutInflater inflater = LayoutInflater.from(getContext());
View v = inflater.inflate(R.layout.wheel_progress_dialog, null);
mWheelView=(ProgressWheel) v.findViewById(R.id.progress);
mMessageView=(TextView)v.findViewById(R.id.message);
setView(v);
mWheelView.setText("0%");
super.onCreate(savedInstanceState);
}
开发者ID:tcking,项目名称:WheelProgressDialog,代码行数:11,代码来源:WheelProgressDialog.java
示例12: onCreate
import com.todddavies.components.progressbar.ProgressWheel; //导入依赖的package包/类
public void onCreate(Bundle paramBundle)
{
super.onCreate(paramBundle);
if (QuizActivityUtils.openHomeActivityIfUserIsNull(this))
{
finish();
return;
}
setContentView(2130903064);
this.profilePicture = ((ProfilePictureWithLevel)findViewById(2131296463));
this.profilePicture.ˊ = true;
((ProgressWheel)findViewById(2131296464)).spin();
this.pendingAchievementShow = false;
this.pendingLeaderBoardShow = false;
this.profileAnimationHelper = new ProfileActivityPictureAnimationHelper();
this.profileAnimationHelper.onCreate(this, paramBundle);
this.bottomAnimationHelper = new ProfileBottomAnimatorHelper();
this.bottomAnimationHelper.onCreate(this);
this.friendsBtn = ((LabelButton)findViewById(2131296478));
this.achievementsBtn = ((LabelButton)findViewById(2131296480));
Bundle localBundle = getIntent().getExtras();
if (localBundle != null)
this.playerId = localBundle.getString("player_id");
if ((localBundle != null) && (!QuizApplication.ᐝ().ˋ.ˊ.equals(this.playerId)))
{
this.myProfile = false;
initializeOpponentExtraButtons();
}
else
{
hideOpponentLayout();
this.myProfile = true;
this.isPrivateToYou = false;
}
initSettingsButton(this.myProfile);
initializeSocialButtons();
setDrawer();
getGameHelper();
this.gameHelper.ˊ(this);
this.mStackScrollView = ((RefreshableScrollView)findViewById(2131296391));
this.mStackScrollView.setPersistentDrawingCache(1);
this.mStackScrollView.setDrawingCacheEnabled(false);
this.mStackScrollView.setVerticalScrollBarEnabled(false);
this.mRefreshLoader = ((LoaderAnimationWidget)this.mStackScrollView.findViewById(2131296392));
this.mStackScrollView.setCallback(this.mRefreshCallback);
this.mStackScrollView.setProgressView(this.mRefreshLoader);
Object localObject = Ꮀ.Ɩ.ィ("o.Ⅼ").getField("ͺ").get(null);
Ꮀ.Ɩ.ィ("o.Ⅼ").getField("ﹳ").set(null, localObject);
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:50,代码来源:ProfileActivity.java
注:本文中的com.todddavies.components.progressbar.ProgressWheel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论