简体   繁体   中英

Spinner issue on samsung galaxy s3

Im using samsung galaxy s3 to test my application, I have three edittext and one spinner. whenever i click the spinner, it clears the edittext value of three edittext, and after clicking item from the spinner, i get the valuo of edit text. For below version of android, spinner will display like dialog, covers maximum screen. But in the Android 4.0, its like drop down, and its also clears the edittext data.

How to fix this issue?

    spRejectionCode = (Spinner) findViewById(R.id.spRejection);     
    ArrayAdapter<String> adapterNo = new ArrayAdapter<String>(this,
            android.R.layout.simple_spinner_item,Constants.rejectioncode);
    adapterNo.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    spRejectionCode.setAdapter(adapterNo);

这不是问题,在早期版本中,微调器看起来像对话框,而在android 4.0及更高版本中,它看起来像下拉菜单,因此不必担心微调器的外观。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM