내 앱에 알림을 추가하려고합니다. 아래의 코드를 시도했지만 문제는 아래 코드를 사용하면 표시되는 부분 텍스트 만 볼 수 있다는 것입니다. 즉, "가져온 Android 프로젝트 가져 오기" 나머지 텍스트는 잘립니다. 알림 표시 문제
NotificationCompat.Builder mBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_launcher)
.setContentText("Import the unzipped Android project into Eclipse by selecting File")
.setContentTitle(getApplicationContext().getString(R.string.app_name))
.setContentIntent(notifyIntent);
그래서 나는 BigTextStyle을 시도하지만 지금은 표시 아무것도 없다. 아래 코드 :
NotificationCompat.Builder mBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_launcher)
.setContentTitle(getApplicationContext().getString(R.string.app_name))
.setContentIntent(notifyIntent);
NotificationCompat.BigTextStyle textStyle = new NotificationCompat.BigTextStyle();
textStyle.bigText("Import the unzipped Android project into Eclipse by selecting File");
mBuilder.setStyle(textStyle);
NotificationManager mNotifyMgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
mNotifyMgr.notify(mNotificationId, mBuilder.build());
표적으로 API가 15 ~ 20이고 응용 프로그램이 API에 테스트되고 15
스크린 샷을 게시 할 수 있습니까? –
Screenshot attached – Psypher