Use alertdialog create dialog. Code:
new AlertDialog.Builder (this)
. SetTitle ("Change Password")
. SetMessage ("Do you really want to change the password right?")
. SetPositiveButton ("OK", new DialogInterface.OnClickListener () {
public void onClick (DialogInterface arg0, int arg1) {
/ / TODO Auto-generated method stub
}
})
. SetNegativeButton ("Cancel", new DialogInterface.OnClickListener () {
public void onClick (DialogInterface arg0, int arg1) {
/ / TODO Auto-generated method stub
}
.}) Show ();
I see someone else's app on my phone operating results Figure:
So, Google's default styles look good
4.0But my app is running is the case, the following figure:
So ugly, I used 4.0,4.1.2,4.2.0 have compiled a result, out of a kind, are so ugly
Very depressed, you ask you encountered in the development of such a situation it? Who knows why so?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Manifest in android: targetSdkVersion = "14" Try
Reply:
How many different versions of the system will be different from the interface. . .
Reply:
The same code is running on my phone ah
Reply:
Tried, useless
Reply:
Top that someone encountered such a situation?
Reply:
Use someone else's program theme is holo_light, you is dark
Reply:
Thank you very much, this question asked a lot of people can not solve
Reply:
This changed after the project is that how to create it?
Reply:
I just happened to have encountered this problem, if lz solve the case, remember also reply to me. .
Reply:
Reply:
Theme: none
Reply:
Results posted ah!
No comments:
Post a Comment