Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report