KO
|
EN
gitlite — search
Search
#javascript
#typescript
#python
#deep-learning
#python3
#nodejs
#swift
#ios
#react
#reactjs
#swift5
#video
NavigationBar
★ 129
Open GitHub ↗
标题导航栏,两三句代码即可实现
Download README (.md)
Explore Similar Repositories
cache
:
A fiber-aware cache API based on Amp and Revolt.
ng2-daterangepicker
:
Usage Demos update in this url >>>
fpga-tidbits
:
Chisel components for FPGA projects
react-native-stripe
:
A React Native wrapper for the Stripe native SDK (currently iOS only)
pyimpute
:
Spatial classification and regression using Scikit-learn and Rasterio
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
NavigationBar
?
Download (.md)
# NavigationBar ## [我的视频课程(基础):《(NDK)FFmpeg打造Android万能音频播放器》](https://edu.csdn.net/course/detail/6842) ## [我的视频课程(进阶):《(NDK)FFmpeg打造Android视频播放器》](https://edu.csdn.net/course/detail/8036) ## [我的视频课程(编码直播推流):《Android视频编码和直播推流》](https://edu.csdn.net/course/detail/8942) ## 标题导航栏,两三句代码即可实现 ## 博客地址:http://blog.csdn.net/ywl5320/article/details/51866799 XML布局:<br/> <com.ywl5320.navigationbar.bar.NavitationLayout android:id="@+id/bar" android:layout_width="match_parent" android:layout_height="50dp" android:background="#ffffff"/> <com.ywl5320.navigationbar.bar.NavitationFollowScrollLayout android:id="@+id/bar" android:layout_width="match_parent" android:layout_height="50dp" android:background="#ffffff"/> 实例图片:<br/> <br/> NavitationFollowScrollLayout初始化选择指定标题位置:<br/> <br/> <br/> 更多实例图片:<br/> ## update: <br/> ## 1、 <br/> 代码如下:<br/> /** * * @param context 上下文 * @param titles 标题栏 * @param viewPager * @param unselectedcolor 未选中字体颜色 * @param setectedcolor 选中字体颜色 * @param txtUnselectedSize 未选中字体大小 * @param txtSelectedSize 选中字体大小 * @param currentPosition 当前viewpager的位置 * @param widOffset 导航条的边距 * @param smoothScroll 滑动类型 */ navitationLayout.setViewPager(this, titles, viewPager, R.color.color_333333, R.color.color_2581ff, 16, 16, 0, 0, true); navitationLayout.setNavLine(this, 3, R.color.colorPrimary, 0); ## 2、 <br/> 代码如下:<br/> navitationLayout.setViewPager(this, titles, viewPager, R.color.color_333333, R.color.color_2581ff, 16, 16, 0, 0, true); navitationLayout.setBgLine(this, 1, R.color.colorAccent); navitationLayout.setNavLine(this, 3, R.color.colorPrimary, 0); ## 3、 <br/> 代码如下:<br/> navitationLayout.setViewPager(this, titles, viewPager, R.color.color_333333, R.color.color_2581ff, 16, 16, 0, 12, true); navitationLayout.setBgLine(this, 1, R.color.colorAccent); navitationLayout.setNavLine(this, 3, R.color.colorPrimary, 0); ## 4、 <br/> 代码如下:<br/> navitationLayout.setViewPager(this, titles, viewPager, R.color.color_333333, R.color.color_2581ff, 14, 18, 0, 12, true); navitationLayout.setBgLine(this, 1, R.color.colorAccent); navitationLayout.setNavLine(this, 3, R.color.colorPrimary, 0);<br/> ## 5、  代码如下:<br/> navitationLayout.setViewPager(this, titles, viewPager, R.color.color_333333, R.color.color_2581ff, 16, 16, 0, 12, true, R.color.color_333333, 1f, 15f, 15f); navitationLayout.setBgLine(this, 1, R.color.colorAccent); navitationLayout.setNavLine(this, 3, R.color.colorPrimary, 0); # create by ywl5320