![]() |
GoogleがAndroid 16 Beta 1をリリース!Pixel 6以降で利用可能に |
@Override
protected NotificationgetNotification() {
returnnew Notification.Builder(mContext, CHANNEL_ID)
.setSmallIcon(R.drawable.ic_app_icon)
.setContentTitle("Ride requested")
.setContentText("Looking for nearby drivers")
.setStyle(
new Notification.ProgressStyle()
.addProgressSegment(
new Notification.ProgressStyle.Segment(100)
.setColor(COLOR_ORANGE)
).setProgressIndeterminate(true)
).build();
}
val text ="「春は、曙。」"
Box(Modifier
.padding(innerPadding)
.background(Color.White)
.fillMaxSize()
.drawWithContent {
drawIntoCanvas { canvas ->
val paint = Paint().apply {
textSize =64.sp.toPx()
}
// Draw text vertically
paint.flags = paint.flags or VERTICAL_TEXT_FLAG
val height = paint.measureText(text)
canvas.nativeCanvas.drawText(
text,0, text.length, size.width /2, (size.height - height) /2, paint
)
}
})
{}
🎉 Android 16Beta 1 is here! Check out the newest changes including Adaptive Apps, Live Updates, and the APV codec!
— Android Developers (@AndroidDev)January 23, 2025
Read the blog for more and don't forget to submit your feedback after testing →https://t.co/wLnFjzZ9zYpic.twitter.com/Hjb2nGJD4z