Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the function of TeaScreenPopupWindow Multi-type filter pop-up Box in Android

Shulou Source: shulou.com Published: 2022-06-03 09:25:06 10月02日 Update

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)

Tags: Color font size article data function multi-type split line attribute button text background border middle time playboy T-shirt code value son interest Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Linux Shulou Tech Info MySQL Apple