小编SRE*_*REE的帖子

如何将位图旋转90度

在android中有一个声明 canvas.drawBitmap(visiblePage, 0, 0, paint);

当我添加时canvas.rotate(90),没有任何效果.但如果我写

canvas.rotate(90)
canvas.drawBitmap(visiblePage, 0, 0, paint);
Run Code Online (Sandbox Code Playgroud)

我没有得到位图.那么我做得对不对?

android

108
推荐指数
7
解决办法
15万
查看次数

Android - 如何在有意图的情况下调用日历时指定位置?

我正在创建一个Intent从我的应用程序创建一个新的日历事件.我正在试图弄清楚如何在日历项目的"Where"字段中指定应该是什么,以便我可以在其中放置一个地址,但我尝试过的是不起作用.有谁知道什么

//Create our intent
Intent intent = new Intent(Intent.ACTION_EDIT); 
intent.setType("vnd.android.cursor.item/event");
intent.putExtra("title", myTitle);
intent.putExtra("description", myDescription);
//Trying to get the where to wrk
intent.putExtra("where", myAddress);
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)

我已经尝试设置"where",如上所示,但这不起作用.

java android calendar android-intent

11
推荐指数
1
解决办法
2452
查看次数

标签 统计

android ×2

android-intent ×1

calendar ×1

java ×1