How to realize the function of TeaScreenPopupWindow Multi-type filter pop-up Box in Android
This article mainly introduces how to achieve Android TeaScreenPopupWindow multi-type screening pop-up box function, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Introduction of module
Allprojects {repositories {google () jcenter () maven {url 'https://www.jitpack.io'} implementation' com.github.YangsBryant:TeaScreenPopupWindow:1.0.2'
Main code
Public class MainActivity extends AppCompatActivity {@ BindView (R.id.button) Button button; @ BindView (R.id.button2) Button button2; private ScreenPopWindow screenPopWindow; private List dictList = new ArrayList (); @ Override protected void onCreate (Bundle savedInstanceState) {super.onCreate (savedInstanceState); setContentView (R.layout.activity_main); ButterKnife.bind (this); initParam (); initView () } private void initView () {button.setOnClickListener (new View.OnClickListener () {@ Override public void onClick (View view) {screenPopWindow = new ScreenPopWindow (MainActivity.this, dictList); / / default radio, because a shared bean is called here to reset the data screenPopWindow.reset (). Build (); screenPopWindow.showAsDropDown (button). ScreenPopWindow.setOnConfirmClickListener (new ScreenPop_Window.OnConfirmClickListener () {@ Override public void onConfirmClick (List list) {StringBuilder str = new StringBuilder (); for (int iTuno)