Search in sources :

Example 1 with RectangleIndicator

use of com.youth.banner.indicator.RectangleIndicator in project banner by youth5201314.

the class BannerFragment method onViewCreated.

@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    banner.setAdapter(new ImageNetAdapter(DataBean.getTestData3()));
    banner.setIndicator(new RectangleIndicator(getActivity()));
    banner.setIndicatorSpace((int) BannerUtils.dp2px(4));
    banner.setIndicatorRadius(0);
}
Also used : ImageNetAdapter(com.test.banner.adapter.ImageNetAdapter) RectangleIndicator(com.youth.banner.indicator.RectangleIndicator)

Aggregations

ImageNetAdapter (com.test.banner.adapter.ImageNetAdapter)1 RectangleIndicator (com.youth.banner.indicator.RectangleIndicator)1