Notification.Builder mBuilder = new Notification.Builder(this) .setSmallIcon(R.drawable.cmplayer) .setContentTitle("CoderoMusicPlayer") .setContentText("PLayer0!"); Intent resultIntent = new Intent(this, AndroidBuildingMusicPlayerActivity.class); resultIntent.setAction(Intent.ACTION_MAIN); resultIntent.addCategory(Intent.CATEGORY_LAUNCHER); PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, resultIntent, 0); mBuilder.setContentIntent(pendingIntent); NotificationManager mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); mNotificationManager.notify(1, mBuilder.build());
Просто скопируйте код и вставьте его в свою основную активность.
Я не уверен точно, но попробуйте этот стиль. следует начать:
table /deep/ td:first-child {
border-right: 1px solid black;
}
Вы можете поместить границу в первую ячейку .mat.
.mat-cell:first-of-type {
border-right: 1px solid rgba(0,0,0,.12);
}