GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - datalink747/NiceNavigation: Nice navigation with animation Kotlin

BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
navigationview
navigationview
 
 
picture
picture
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

NiceNavigation By Soussidev

Nice navigation with animation

Ansible Role Hex.pm API

Preview :

  • Nice Navigation :

 

Add dependencie to your project :

repositories {
    jcenter()
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.datalink747:NiceNavigation:1.1'
}

Code in Kotlin:

  • onCreate activity :
override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        paperflower = PaperFlower.attach2Window(this)

        navigationView = findViewById(R.id.navigationview) as NavigationView

        if (navigationView != null) {
            navigationView!!.isWithText(true)
            navigationView!!.disableShadow()
            navigationView!!.isColoredBackground(false)
            navigationView!!.setItemActiveColorWithoutColoredBackground(ContextCompat.getColor(this, R.color.menu_color_10))
        }

        val toolbar = findViewById(R.id.toolbar) as Toolbar
        setSupportActionBar(toolbar)

        viewPager = findViewById(R.id.viewpager) as ViewPager
        setupViewPager(viewPager)



        navigationView!!.setUpWithViewPager(viewPager!!, color, image, this@MainActivity)
        navigationView!!.setOnBottomNavigationItemClickListener { index ->
            getflower(toolbar)
            //   navigationView.selectTab(index);
            val name = viewPager!!.adapter.getPageTitle(index).toString()

            toolbar.title = name
            toolbar.subtitle = "By soussidev"
            toolbar.setTitleTextColor(resources.getColor(R.color.white))
            toolbar.setSubtitleTextColor(resources.getColor(R.color.menu_color_1))
            toolbar.setLogo(R.mipmap.icon_fav)
        }


    }
  • Fun get animation from Paper Flower :
 fun getflower(view: View) {
        paperflower!!.paperflower(view, 450f, object : PaperFlowerListener {
            override fun onAnimationStart() {

            }

            override fun onAnimationEnd() {

            }
        })
    }
    

SDK Required

  • Target sdk:
    API
  • Min sdk:
    API

Social Media

Soussi Mohamed Soussi Mohamed

Licence

Copyright 2017 Soussidev, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Nice navigation with animation Kotlin

Resources

Readme
Activity

Stars

26 stars

Watchers

2 watching

Forks

12 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.