2012-03-03 10 views
1

これはちょうど最近注目された奇妙なケースです。再起動が必要なプロセスを完了するようユーザーに警告するために、AlertDialogを表示するアクティビティがあります。私のデバイス(Galaxy Nexus)ではうまく表示されます。最近、他の多くのデバイスでは、切断される前にいくつかの言葉しか表示されていなかったことが私の注目を集めました。Android AlertDialogが特定のデバイスでsetMessage全体を表示しない

 AlertDialog.Builder builder = new AlertDialog.Builder(ReportActivity.this); 
     builder.setTitle("Finished!"); 
     builder.setMessage("Due to the different storage mediums across the various Android devices this app may eb used for, " 
              +"I've decided not to force a media rescan because depending on your device, " 
              +"it may or may not even be possible. " 
              +"This means that you will need to reboot your device or unmount/mount your sdcard in the Settings app before most players will pull in all the information for the songs." 
              +"\n Please reboot or rescan before claiming that the app did not work.") 
       .setCancelable(false) 
       .setPositiveButton("Dismiss", new DialogInterface.OnClickListener() { 
        public void onClick(DialogInterface dialog, int id) { 
            dialog.dismiss(); 
          lv1.setAdapter(new ResultsAdapter(ReportActivity.this, results)); 
        } 
       }); 

      AlertDialog alert = builder.create(); 
      alert.show(); 

Galaxy Nexus

Motorola Photon

+0

関連:http://stackoverflow.com/questions/9795347/long次の行をオンにする - しかし、gb-and-below/9847862 – Blundell

答えて

3

よりもむしろsetMessage()を使用し、あなたが表示される行数を制御することができ、独自のTextViewを供給、setView()を試してみてください。

+1

は、あのショットを与えるが、将来の参照のために、あなたはその振る舞いの仕方そういうことです?アイブはこれまでにこのような問題はなかった。私の悲しみの原因になっているのはこの画面だけではありません。私は、テキストビューと私のデバイス上で正常に表示され、いくつかの他の単一の行を表示するボタンと別の画面があります。 – r2DoesInc

0

直接work.Iはアンドロイドとラインのない定義も新しい行のために\ nを指定しないとしていたしませんビューを設定:行は属性

関連する問題