当前位置: 首页>>代码示例>>Java>>正文


Java ProgressPieIndicator类代码示例

本文整理汇总了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")
            );
        }
    });
}
 
开发者ID:Piasy,项目名称:BigImageViewer,代码行数:21,代码来源:GlideLoaderActivity.java

示例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")
            );
        }
    });
}
 
开发者ID:Piasy,项目名称:BigImageViewer,代码行数:21,代码来源:CustomSSIVActivity.java

示例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")
            );
        }
    });
}
 
开发者ID:Piasy,项目名称:BigImageViewer,代码行数:21,代码来源:FrescoLoaderActivity.java

示例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")
            );
        }
    });
}
 
开发者ID:love-311,项目名称:BigImageViewer-master,代码行数:20,代码来源:GlideLoaderActivity.java

示例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")
            );
        }
    });
}
 
开发者ID:love-311,项目名称:BigImageViewer-master,代码行数:20,代码来源:FrescoLoaderActivity.java

示例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));


}
 
开发者ID:derqurps,项目名称:noefinderlein,代码行数:52,代码来源:Activity_Picture.java


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