android:background="@android:color/white"/> 这是一个LinearLayout,里面有两个东西,一个是自定义控件SlidingTabLayout...) // Give the SlidingTabLayout the ViewPager, this must be done AFTER the ViewPager has had /...mSlidingTabLayout = (SlidingTabLayout) view.findViewById(R.id.sliding_tabs); mSlidingTabLayout.setViewPager...(mViewPager); // END_INCLUDE (setup_slidingtablayout) } 主要是设置了一个SamplePageAdapter,这个Adapter就在这个文件里...This is important as what this method * returns is what is displayed in the {@link SlidingTabLayout
tl_indicator_anim_duration"/> mIndicatorAnimEnable = ta.getBoolean(R.styleable.SlidingTabLayout_tl_indicator_anim_enable..., true); mIndicatorBounceEnable = ta.getBoolean(R.styleable.SlidingTabLayout_tl_indicator_bounce_enable..., true); mIndicatorAnimDuration = ta.getInt(R.styleable.SlidingTabLayout_tl_indicator_anim_duration,
设置是否绘制图片颜色 --> mChangeColor = ta.getBoolean(R.styleable.SlidingTabLayout_tl_is_change_color
layout_width="match_parent" android:layout_height="wrap_content" / <com.flyco.tablayout.SlidingTabLayout
领取专属 10元无门槛券
手把手带您无忧上云