hey all, I found some of app's Dilaog with more than 2 lines title
can't show() correctly in the new sdk v1.1_r1.
for example : I 've a dialog' title:
"Line1:aaa" + "\n" +
"Line2:bbb" + "\n" +
"Line3:ccc" + "\n" +
"Line4:ddd" + "\n" +
"Line5:eee"
In the old sdk v1.0_r2 , it show prefert:
Line1:aaa
Line2:bbb
Line3:ccc
Line4:ddd
Line5:eee
and with a "(I)" icon on the left (means the default icon is INFO)
but in sdk v1.1_r1, it just show the TOP TWO LINES as:
Line1: aaa
Line2: bbb
and a "(↓)" icon on the left ( the default icon is "MORE" ???)
my code below:
=============================begin=======================================
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// simple alert test, in test3 layout, only a button on the top
setContentView(R.layout.test3);
// click to show dialog
View.OnClickListener l = new OnClickListener() {
public void onClick(View v) {
Builder b = new AlertDialog.Builder(Test3.this);
// set 5 lines in the dialog
b.setTitle("Line1:aaa" + "\n" + "Line2:bbb" + "\n"
+ "Line3:ccc" + "\n" + "Line4:ddd" + "\n"
+ "Line5:eee");
b.create().show();
}
};
// button: hello
findViewById(R.id.hello).setOnClickListener(l);
}
==================================end================================
and more: I notice sometime when the title is not too long, the Dialog
will ignore the "\n" and join the title text in one line, such as :
b.setTitle("Line1:aaa" + "\n" + "Line2:bbb");
So what's the point of the sdk v1.1_r1 about AlertDialog or did I miss
sth?
( I checked the doc about upgrading sdk1.1 and found nothing about it)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---