本文整理汇总了Java中com.github.piasy.biv.indicator.progresspie.ProgressPieIndicator类的典型用法代码示例。如果您正苦于以下问题:Java ProgressPieIndicator类的具体用法?Java ProgressPieIndicator怎么用?Java ProgressPieIndicator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ProgressPieIndicator类属于com.github.piasy.biv.indicator.progresspie包,在下文中一共展示了ProgressPieIndicator类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.github.piasy.biv.indicator.progresspie.ProgressPieIndicator; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
BigImageViewer.initialize(GlideImageLoader.with(getApplicationContext()));
setContentView(R.layout.activity_big_image);
findViewById(R.id.mBtnLoad).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
BigImageView bigImageView = findViewById(R.id.mBigImage);
bigImageView.setProgressIndicator(new ProgressPieIndicator());
bigImageView.showImage(
Uri.parse("http://img1.imgtn.bdimg.com/it/u=1520386803,778399414&fm=21&gp=0.jpg"),
Uri.parse("http://youimg1.c-ctrip.com/target/tg/773/732/734/7ca19416b8cd423f8f6ef2d08366b7dc.jpg")
);
}
});
}
示例2: onCreate
import com.github.piasy.biv.indicator.progresspie.ProgressPieIndicator; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
BigImageViewer.initialize(FrescoImageLoader.with(getApplicationContext()));
setContentView(R.layout.activity_custom_ssiv);
findViewById(R.id.mBtnLoad).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
BigImageView bigImageView = findViewById(R.id.mBigImage);
bigImageView.setProgressIndicator(new ProgressPieIndicator());
bigImageView.showImage(
Uri.parse("https://images.unsplash.com/photo-1497240299146-17ff4089466a?dpr=2&auto=compress,format&fit=crop&w=376"),
Uri.parse("https://images.unsplash.com/photo-1497240299146-17ff4089466a")
);
}
});
}
示例3: onCreate
import com.github.piasy.biv.indicator.progresspie.ProgressPieIndicator; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
BigImageViewer.initialize(FrescoImageLoader.with(getApplicationContext()));
setContentView(R.layout.activity_big_image);
findViewById(R.id.mBtnLoad).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
BigImageView bigImageView = findViewById(R.id.mBigImage);
bigImageView.setProgressIndicator(new ProgressPieIndicator());
bigImageView.showImage(
Uri.parse("https://images.unsplash.com/photo-1497240299146-17ff4089466a?dpr=2&auto=compress,format&fit=crop&w=376"),
Uri.parse("https://images.unsplash.com/photo-1497240299146-17ff4089466a")
);
}
});
}
示例4: onCreate
import com.github.piasy.biv.indicator.progresspie.ProgressPieIndicator; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
BigImageViewer.initialize(GlideImageLoader.with(getApplicationContext()));
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_big_image);
findViewById(R.id.mBtnLoad).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
BigImageView bigImageView = (BigImageView) findViewById(R.id.mBigImage);
bigImageView.setProgressIndicator(new ProgressPieIndicator());
bigImageView.showImage(
Uri.parse("http://img1.imgtn.bdimg.com/it/u=1520386803,778399414&fm=21&gp=0.jpg"),
Uri.parse("http://youimg1.c-ctrip.com/target/tg/773/732/734/7ca19416b8cd423f8f6ef2d08366b7dc.jpg")
);
}
});
}
示例5: onCreate
import com.github.piasy.biv.indicator.progresspie.ProgressPieIndicator; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
BigImageViewer.initialize(FrescoImageLoader.with(getApplicationContext()));
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_big_image);
findViewById(R.id.mBtnLoad).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
BigImageView bigImageView = (BigImageView) findViewById(R.id.mBigImage);
bigImageView.setProgressIndicator(new ProgressPieIndicator());
bigImageView.showImage(
Uri.parse("http://img1.imgtn.bdimg.com/it/u=1520386803,778399414&fm=21&gp=0.jpg"),
Uri.parse("http://youimg1.c-ctrip.com/target/tg/773/732/734/7ca19416b8cd423f8f6ef2d08366b7dc.jpg")
);
}
});
}
示例6: onCreate
import com.github.piasy.biv.indicator.progresspie.ProgressPieIndicator; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
BigImageViewer.initialize(GlideImageLoader.with(getApplicationContext()));
setContentView(R.layout.activity_picture);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(false);
}
Intent intent = getIntent();
actionBar.setTitle(intent.getStringExtra(ARG_LOCATION_NAME));
mVisible = true;
mControlsView = findViewById(R.id.fullscreen_content_controls);
mContentView = findViewById(R.id.mBigImage);
// Set up the user interaction to manually show or hide the system UI.
mContentView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
toggle();
}
});
String photoreference = intent.getStringExtra(ARG_PICTURE_REFERENCE);
String locationurl = intent.getStringExtra(ARG_LOCATIONURL);
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
int height = metrics.heightPixels;
String url;
if(locationurl == null) {
url = "https://maps.googleapis.com/maps/api/place/photo?maxheight=" + String.valueOf(height) + "&photoreference=" + photoreference + "&key=" + getApplicationContext().getString(R.string.google_photo_key);
} else {
url = locationurl;
ImageView iv = (ImageView) findViewById(R.id.poweredbygoogle);
iv.setVisibility(View.GONE);
}
BigImageView bigImageView = (BigImageView) mContentView;
bigImageView.setProgressIndicator(new ProgressPieIndicator());
bigImageView.showImage(Uri.parse(url));
}