Skip to content

sohel274/BottomMenuTutorial

 
 

Repository files navigation

ScreenShots

SetUp

Gradle

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
	...
		maven { url 'https://jitpack.io' }
	}
}
Step 2. Add the dependency
dependencies {
	compile 'com.github.fccaikai:BottomMenuTutorial:1.0.1'
}

Maven

Step 1. Add the JitPack repository to your build file
<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>
Step 2. Add the dependency

<dependency>
	<groupId>com.github.fccaikai</groupId>
	<artifactId>BottomMenuTutorial</artifactId>
	<version>1.0.1</version>
</dependency>

Usage

BottomDialog dialog = BottomDialog.newInstance("title",new String[]{"item1","item2"});
        dialog.show(getChildFragmentManager(),"dialog");
        //add item click listener
        dialog.setListener(new BottomDialog.OnClickListener() {
            @Override
            public void click(int position) {
                Toast.makeText(getContext(), "" + position, Toast.LENGTH_LONG).show();
            }
 });

Packages

No packages published

Languages

  • Java 100.0%