當前位置: 首頁>>代碼示例>>Java>>正文


Java DataProvider類代碼示例

本文整理匯總了Java中com.flyco.bannersamples.utils.DataProvider的典型用法代碼示例。如果您正苦於以下問題:Java DataProvider類的具體用法?Java DataProvider怎麽用?Java DataProvider使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DataProvider類屬於com.flyco.bannersamples.utils包,在下文中一共展示了DataProvider類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: sib

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib() {
    sib
            .setIndicatorGap(8)                                 //set gap btween two indicators
            .setSelectAnimClass(ZoomInEnter.class)              //set indicator select anim
            .setBarColor(Color.parseColor("#88000000"))         //set bootom bar color
            .setSource(DataProvider.getList())                  //data source list
            .setTransformerClass(transformerClass)              //set page transformer
            .startScroll();                                     //start scroll,the last method to call

    sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
        @Override
        public void onItemClick(int position) {
            T.showShort(context, "position--->" + position);
        }
    });
}
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:17,代碼來源:BannerDialog.java

示例2: sib_res

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib_res() {
        SimpleImageBanner sib = ViewFindUtils.find(decorView, R.id.sib_res);

        sib
//                .setIndicatorStyle(SimpleImageBanner.STYLE_DRAWABLE_RESOURCE)
//                .setIndicatorSelectorRes(R.mipmap.banner_dot_unselect, R.mipmap.banner_dot_select)
                .setSource(DataProvider.getList())
                .startScroll();

        sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
            @Override
            public void onItemClick(int position) {
                T.showShort(context, "position--->" + position);
            }
        });
    }
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:17,代碼來源:BannerHomeActivity.java

示例3: sib_corner_rectangle

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib_corner_rectangle() {
        SimpleImageBanner sib = ViewFindUtils.find(decorView, R.id.sib_corner_rectangle);
        sib
//                .setIndicatorWidth(10)
//                .setIndicatorHeight(4)
//                .setIndicatorCornerRadius(2)
                .setSource(DataProvider.getList())
                .startScroll();

        sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
            @Override
            public void onItemClick(int position) {
                T.showShort(context, "position--->" + position);
            }
        });
    }
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:17,代碼來源:BannerHomeActivity.java

示例4: sib_anim2

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib_anim2() {
        SimpleImageBanner sib = ViewFindUtils.find(decorView, R.id.sib_anim2);
        sib
//                .setIndicatorWidth(10)
//                .setIndicatorHeight(4)
//                .setIndicatorCornerRadius(2)
                .setSelectAnimClass(RotateEnter.class)
                .setUnselectAnimClass(NoAnimExist.class)
                .setSource(DataProvider.getList())
                .startScroll();

        sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
            @Override
            public void onItemClick(int position) {
                T.showShort(context, "position--->" + position);
            }
        });
    }
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:19,代碼來源:BannerHomeActivity.java

示例5: sib

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib() {
    sib
            .setIndicatorGap(8)                                 //set gap btween two indicators
            .setSelectAnimClass(ZoomInEnter.class)              //set indicator select anim
            .setBarColor(Color.parseColor("#88000000"))         //set bootom bar color
            .setSource(DataProvider.getList())                  //data source list
            .setTransformerClass(transformerClass)              //set page transformer
            .startScroll();                                     //start scroll,the last method to call

    sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
        @Override
        public void onItemClick(int position) {
            T.showShort(mContext, "position--->" + position);
        }
    });
}
 
開發者ID:H07000223,項目名稱:FlycoBanner_Master,代碼行數:17,代碼來源:BannerDialog.java

示例6: sib_simple_usage

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib_simple_usage() {
    SimpleImageBanner sib = ViewFindUtils.find(decorView, R.id.sib_simple_usage);

    sib
            .setSource(DataProvider.getList())
            .startScroll();

    sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
        @Override
        public void onItemClick(int position) {
            T.showShort(context, "position--->" + position);
        }
    });
}
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:15,代碼來源:BannerHomeActivity.java

示例7: sib_the_most_comlex_usage

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib_the_most_comlex_usage() {
        SimpleImageBanner sib = ViewFindUtils.find(decorView, R.id.sib_the_most_comlex_usage);
        sib
                /** methods in BaseIndicatorBanner */
//              .setIndicatorStyle(BaseIndicaorBanner.STYLE_CORNER_RECTANGLE)//set indicator style
//              .setIndicatorWidth(6)                               //set indicator width
//              .setIndicatorHeight(6)                              //set indicator height
//              .setIndicatorGap(8)                                 //set gap btween two indicators
//              .setIndicatorCornerRadius(3)                        //set indicator corner raduis
                .setSelectAnimClass(ZoomInEnter.class)              //set indicator select anim
                        /** methods in BaseBanner */
//              .setBarColor(Color.parseColor("#88000000"))         //set bootom bar color
//              .barPadding(5, 2, 5, 2)                             //set bottom bar padding
//              .setBarShowWhenLast(true)                           //set bottom bar show or not when the position is the last
//              .setTextColor(Color.parseColor("#ffffff"))          //set title text color
//              .setTextSize(12.5f)                                 //set title text size
//              .setTitleShow(true)                                 //set title show or not
//              .setIndicatorShow(true)                             //set indicator show or not
//              .setDelay(2)                                        //setDelay before start scroll
//              .setPeriod(10)                                      //scroll setPeriod
                .setSource(DataProvider.getList())                  //data source list
                .setTransformerClass(ZoomOutSlideTransformer.class) //set page transformer
                .startScroll();                                     //start scroll,the last method to call

        sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
            @Override
            public void onItemClick(int position) {
                T.showShort(context, "position--->" + position);
            }
        });
    }
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:32,代碼來源:BannerHomeActivity.java

示例8: sib_rectangle

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib_rectangle() {
        SimpleImageBanner sib = ViewFindUtils.find(decorView, R.id.sib_rectangle);
        sib
//                .setIndicatorCornerRadius(0)
                .setSource(DataProvider.getList())
                .startScroll();

        sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
            @Override
            public void onItemClick(int position) {
                T.showShort(context, "position--->" + position);
            }
        });
    }
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:15,代碼來源:BannerHomeActivity.java

示例9: sib_indicator_right_with_text

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib_indicator_right_with_text() {
    SimpleImageBanner sib = ViewFindUtils.find(decorView, R.id.sib_indicator_right_with_text);
    sib
            .setSource(DataProvider.getList())
            .startScroll();

    sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
        @Override
        public void onItemClick(int position) {
            T.showShort(context, "position--->" + position);
        }
    });
}
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:14,代碼來源:BannerHomeActivity.java

示例10: sib_indicator_left_with_text

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib_indicator_left_with_text() {
    SimpleImageBanner sib = ViewFindUtils.find(decorView, R.id.sib_indicator_left_with_text);
    sib
            .setSource(DataProvider.getList())
            .startScroll();

    sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
        @Override
        public void onItemClick(int position) {
            T.showShort(context, "position--->" + position);
        }
    });
}
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:14,代碼來源:BannerHomeActivity.java

示例11: sib_anim

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void sib_anim() {
    SimpleImageBanner sib = ViewFindUtils.find(decorView, R.id.sib_anim);
    sib
            .setSelectAnimClass(ZoomInEnter.class)
            .setSource(DataProvider.getList())
            .startScroll();

    sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {
        @Override
        public void onItemClick(int position) {
            T.showShort(context, "position--->" + position);
        }
    });
}
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:15,代碼來源:BannerHomeActivity.java

示例12: showSelectDialog

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
private void showSelectDialog(final boolean isSimpleImageBanner) {

        ArrayList<String> itemList = new ArrayList<>();
        for (Class<?> c : DataProvider.transformers) {
            itemList.add(c.getSimpleName());
        }
        final String[] contents = new String[itemList.size()];
        final NormalListDialog dialog = new NormalListDialog(context, itemList.toArray(contents));
        dialog.title("Select Transformer")//
                .cornerRadius(2)
                .show();
        dialog.setOnOperItemClickL(new OnOperItemClickL() {
            @Override
            public void onOperItemClick(AdapterView<?> parent, View view, int position, long id) {
                if (isSimpleImageBanner) {
                    new BannerDialog(context)
                            .transformerClass(DataProvider.transformers[position])
                            .show();
                    return;
                }

                Intent intent = new Intent(context, UserGuideActivity.class);
                intent.putExtra("isFromBannerHome", true);
                intent.putExtra("position", position);
                startActivity(intent);
            }
        });
    }
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:29,代碼來源:BannerHomeActivity.java

示例13: onCreate

import com.flyco.bannersamples.utils.DataProvider; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_user_guide);

    isFromBannerHome = getIntent().getBooleanExtra("isFromBannerHome", false);
    int position = getIntent().getIntExtra("position", -1);
    transformerClass = position != -1 ? DataProvider.transformers[position] : null;

    decorView = getWindow().getDecorView();
    sgb();
}
 
開發者ID:nearor,項目名稱:FlycoBanner,代碼行數:13,代碼來源:UserGuideActivity.java


注:本文中的com.flyco.bannersamples.utils.DataProvider類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。