项目需求封装一个底部弹窗

github地址:https://github.com/zhangxiang0316/BottomDialog底部弹窗


使用方法

BottomDialog<String> dialog = new BottomDialog<>(this, datas, new SelectPositionCallBack() {
           @Override
           public void selectPosition(int position) {
               Toast.makeText(MainActivity.this, datas.get(position), Toast.LENGTH_SHORT).show();
           }
       });
       dialog.show();

跟项目添加

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
	

项目中添加

  dependencies {
	        compile 'com.github.zhangxiang0316:BottomDialog:1.0.0'
	}
 

相关文章:

  • 2022-01-19
  • 2021-09-07
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-16
  • 2022-12-23
  • 2022-12-23
  • 2018-01-17
相关资源
相似解决方案