當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。