All Projects → LiqiNew → SlideNavigation

LiqiNew / SlideNavigation

Licence: other
🐢 类似‘今日头条顶部导航栏跟手势滑动’效果

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to SlideNavigation

Slidablelayout
SlidableLayout is devoted to build a stable, easy-to-use and smooth sliding layout.
Stars: ✭ 385 (+2038.89%)
Mutual labels:  slide, view
SlideTable
可以滑动 以表格形式展示数据
Stars: ✭ 14 (-22.22%)
Mutual labels:  slide, view
Zwtopselectvcview
快速导入多个控制器,通过顶部选择菜单切换控制器,实现一个页面多个控制器切换处理.(It's an so easy way to add your all kinds of childControllers into superViewController, then you can slide around or just click on the topButton which is automatically building in the topView to switch your childViewController.)
Stars: ✭ 61 (+238.89%)
Mutual labels:  slide, view
LockerScreen
Android lock screen,slide to unlock ! 安卓锁屏,上滑解锁,效果酷炫,值得拥有!
Stars: ✭ 81 (+350%)
Mutual labels:  slide, view
dom-navigator
⚓️ JS library that allow keyboard navigation through DOM elements (←↑→↓).
Stars: ✭ 36 (+100%)
Mutual labels:  navigation
RoundProgressBar
一个自定义的圆形可颜色渐变的ProgressBar
Stars: ✭ 32 (+77.78%)
Mutual labels:  view
navigation-conductor
A Conductor integration for the Navigation Architecture Component.
Stars: ✭ 38 (+111.11%)
Mutual labels:  navigation
GitHubApplication
GitHubApplication 📱 is an Android application built to demonstrate the use of modern Android development tools - (Kotlin, Coroutines, Hilt, LiveData, View binding, Data Store, Architecture components, MVVM, Room, Retrofit, Navigation).
Stars: ✭ 11 (-38.89%)
Mutual labels:  navigation
react-native-boilerplate
Ready-made structure of your next React Native application within a few minutes.
Stars: ✭ 36 (+100%)
Mutual labels:  navigation
docsify-pagination
↔️ Pagination for docsify
Stars: ✭ 80 (+344.44%)
Mutual labels:  navigation
contributer
Inject all types like views or a conductor controllers with @ContributesAndroidInjector
Stars: ✭ 39 (+116.67%)
Mutual labels:  view
navbuilder
Generiert frei definierbare Navigationsbäume mittels Drag & Drop
Stars: ✭ 21 (+16.67%)
Mutual labels:  navigation
slides-presenter
Plugin to show slides and code examples directly from IntelliJ IDEs
Stars: ✭ 19 (+5.56%)
Mutual labels:  slide
FastBanner
🔥快速轮播图,支持自定义布局和使用自有图片显示组件
Stars: ✭ 27 (+50%)
Mutual labels:  view
kirby-blade
Enable Laravel Blade Template Engine for Kirby 3
Stars: ✭ 20 (+11.11%)
Mutual labels:  view
recycler-adapter
RecyclerView-driven declarative UIs
Stars: ✭ 124 (+588.89%)
Mutual labels:  view
CoolSlidingMenu
A powerful menu that you can customize it。
Stars: ✭ 25 (+38.89%)
Mutual labels:  slide
KoHighlights
KOHighlights is a utility for viewing KOReader's highlights and/or export them to simple text, csv or html files.
Stars: ✭ 62 (+244.44%)
Mutual labels:  view
eventbus-plugin
IntelliJ iDEA plugin to work with projects using greenrobot's EventBus library
Stars: ✭ 25 (+38.89%)
Mutual labels:  navigation
RegulatorView
Intelligent furniture remote control
Stars: ✭ 20 (+11.11%)
Mutual labels:  view

SlideNavigation

类似‘今日头条顶部导航栏跟手势滑动’效果

效果预览

内部远程依赖Library(已经远程依赖的Library,切勿重复依赖。)

BaseLogger:'com.github.liqinew:baselogger:V.1.0.0'

BaseFragment:'com.github.liqinew:basefragment:V.1.0.0'

如何使用(效果封装进Fragment)

Gradle远程依赖

1:在项目根目录build.gradley

allprojects {
  repositories {
    //依赖仓库
   maven { url 'https://jitpack.io' }
  }
}

2:依赖SlideNavigation

compile 'com.github.liqinew:slidenavigation:V.1.0.1'

操作参考方案(当前类继承AppCompatActivity)

/**
* 把XML定义的FrameLayout替换成“导航栏跟手势滑动效果Fragment”
*/
getSupportFragmentManager()
.beginTransaction()
.replace(R.id.fragment, ExploreViewPagerFragment.newInstance())
.commit();

ExploreViewPagerFragment 静态操作A P I

  • 通过ExploreViewPagerFragment.newInstance()静态方法获取ExploreViewPagerFragment对象

ExploreViewPagerFragment 非静态操作A P I

/**
* 设置当前那个页面显示
*
* @param index 页面索引值
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setViewpagerIndxe(int index)

/**
* 设置viewpager一次性加载几个对象
*
* @param cacheLimit 一次性加载数量
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setViewpagerCacheLimit(int cacheLimit);

/**
* 设置滑块默认图片和滑动时的图片
*
* @param backgroundId 默认图片
* @param slidingBlock 滑动图片
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setSlidingTabStripImage(int backgroundId,int slidingBlock);

/**
* 设置滑块字体颜色选择器
*
* @param colorSelect 滑块字体颜色选择器
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setTextColorSelect(int colorSelect);

/**
* 设置标题滑块是否需要跟着手势滑动效果
*
* @param slidingTag true是滑动,false为不滑动。默认为true
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setSlidingTag(boolean slidingTag);

/**
* 设置是否title字体选中后是否需要变大效果
*
* @param textSizeTag true是变大false为不变大。默认为false
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setTextTitleSizeTag(boolean textSizeTag);

/**
* 设置选中的title字体是否变粗
*
* @param textTitleSizeCoarsening true是变粗false为不变粗。默认为false
*
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setTextTitleSizeCoarsening(boolean textTitleSizeCoarsening);

/**
* 设置标题字体尺寸
*
* @param textSize 字体尺寸
*
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setTextTitleSize(int textSize);

/**
* 设置标题放大字体尺寸
*
* @param textZoomInSize 标题放大字体尺寸
*
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setTextTitleZoomInSize(int textZoomInSize);

/**
* 单个添加要显示的fragment界面和fragment标题名字
*<p>
*提示"setFragmentObjList()赋值",请调用此方法赋值。
*</p>
* @param titleName fragment标题名字
* @param fragmentClass 要显示的fragment界面class
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.addFragment(String titleName,Class<? extends BaseFragment> fragmentClass);

/**
* 批量添加要显示的fragment界面和fragment标题名字
*<p>
*提示"setFragmentObjList()赋值",请调用此方法赋值。
*</p>
* @param titleName fragment标题名字数组
* @param fragmentClassList 要显示的fragment界面class集合
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.addFragment(String[] titleName, List<Class<? extends BaseFragment>> fragmentClassList);

/**
* 设置滑动控件显示控件方位枚举。默认顶部
*
* @param showOrientationEnum 滑动控件显示控件方位枚举
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setSlidingShowOrientation(SlidingShowOrientationEnum showOrientationEnum);

/**
* 设置滑块独立控件内边距。
* <p>
* 设置的值不能为负数,设置值单位为px.
* <p>
*
* @param left   左边内边距.默认值-1
* @param top    顶部内边距.默认值-1
* @param right  右边内边距.默认值-1
* @param bottom 底部内边距.默认值-1
* @return ExploreViewPagerFragment
*/
ExploreViewPagerFragment.setPadding(int left, int top, int right, int bottom);

/**
* 运行当前显示界面捆绑的fragment显示方法
*/
ExploreViewPagerFragment.onShow();

如有问题,请下载Demo查看或者查看我的博客文档

我的博客

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].