I scale the rootView , which LinearLayout to fragment from ViewPager , but the child views are not clickable .
This is rootView
public class CarouselLinearLayout extends LinearLayout { private float scale = CarouselPagerAdapter.BIG_SCALE; public CarouselLinearLayout(Context context, AttributeSet attrs) { super(context, attrs); } public CarouselLinearLayout(Context context) { super(context); } public void setScaleBoth(float scale) { this.scale = scale; this.invalidate(); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas);
Here is the relevant code where I scale the rootView .
LinearLayout linearLayout = (LinearLayout) inflater.inflate(R.layout.pager_fragment_dashboard, container, false); CarouselLinearLayout root = (CarouselLinearLayout) linearLayout.findViewById(R.id.root_container); root.setScaleBoth(scale);
What does it look like.

Each circle is a PagerView page. 1 - 2 - 3
The views on page 2 are viewable, but the views on pages 1 and 3 are not viewable. How can I fix this problem?
java android android-viewpager android-view android-animation
Zeeshan Shabbir Jul 13 '17 at 6:29 2017-07-13 06:29
source share