Android spinner automatically pops up the list and sets the title. ttextview does not wrap the automatic screenshot method. Search for Android spinner click on stackoverflow to obtain the available result. javasmclick (); // you can set the title.
Spinner. setprompt ("My title ");
The pop-up list cannot be listened to when you press the rollback key for the first time. // Unable to listen to the Return key tzone. setonkeylistener (new view. onkeylistener () {@ overridepublic Boolean onkey (view V, int keycode, keyevent event) {If (keycode = keyevent. keycode_back) {log. V ("tag", "onkeylistener"); timezonesetting. this. finish () ;}return false ;}}); --------------------------- textview does not wrap, automatic truncation (automatically added after ...) android: singleline = "true" <textviewandroid: Id = "@ + ID/timezonetv" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: gravity = "right" Android: layout_weight = "2" Android: paddingtop = "15dip" Android: text = "" Android: singleline = "true" Android: textcolor = "# 2a99fb" Android: textsize = "18sp" Android: textstyle = "bold"/>