How to set carausel height according to device screen
codewithavish opened this issue · 0 comments
codewithavish commented
when I m giving height to carousel in java file ..there is only 2 option minHeight , min MinWidth
DisplayMetrics displayMetrics = new DisplayMetrics();
productActivity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
int height = displayMetrics.heightPixels;
int width = displayMetrics.widthPixels;
productCarouselView.setMinimumHeight(height);