Commit 4b45dce9 authored by gaodapeng's avatar gaodapeng

修改了方向定义

parent aecd4fe7
......@@ -72,7 +72,6 @@ public class ImageVideoBanner extends FrameLayout implements ImageVideoFragment.
private void initView(Context context) {
View view = LayoutInflater.from(context).inflate(R.layout.banner_imge_video, this, true);
mViewPager = view.findViewById(R.id.view_pager);
mViewPager.setLayoutDirection(LAYOUT_DIRECTION_LOCALE);
mAdapter = new ViewsPagerAdapter(((FragmentActivity) context).getSupportFragmentManager(), ((FragmentActivity) context).getLifecycle());
mViewPager.setAdapter(mAdapter);
//ViewPager手势滑动禁用
......
......@@ -8,6 +8,7 @@
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment