DropDownMenu 下拉菜单,可独立分离使用 2021.3.2 --增加使用后的阴影. 添加依赖 Add it in your root build.gradle at the end of repositories: allprojects { repositories { ... maven { url 'https://jitpack.io' } } } Step 2. Add the dependency ...
1: 添加“下拉列表”内容。 public Dropdown Drd_IPList; //初始化 Dropdown.OptionData op1=new Dropdown.OptionData(); op1.text = "220.110.1.10"; Drd_IPList.options.Add(op1); Dropdown.OptionData op2 = new Dropdown.OptionData(); op2.text = "220.110.1.11"; Drd_IPList.options.Add(op2)...