Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.fccaikai:BottomMenuTutorial:1.0.1'
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.fccaikai</groupId>
<artifactId>BottomMenuTutorial</artifactId>
<version>1.0.1</version>
</dependency>
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();
}
});