![]() GitHub Profile Avatar URL val githubAvatarURL = jsonObject. GitHub Email val githubEmail = jsonObject.getString( "email") Now pick an Empty Activity as your starting template. Log.i( "GitHub Display Name: ", githubDisplayName) Once that’s done, start a new project and make sure you’ve selected Kotlin as the language from the dropdown menu. GitHub Display Name val githubDisplayName = jsonObject.getString( "login") Log.i( "GitHub Id: ", githubId.toString()) GitHub Id val githubId = jsonObject.getInt( "id") start() Added support methods to CanvasĭrawArc(centerX, centerY, circleRadius, startAngle, sweepAngle, paint)ĭrawArc(center: PointF, circleRadius, startAngle, sweepAngle, paint)ĭrawArc(left, top, right, bottom, startAngle, sweepAngle, useCenter, paint)ĭrawOval(left, top, right, bottom, startAngle, sweepAngle, useCenter, paint)ĭrawLine(start: PointF, end: PointF, paint)ĭrawRoundRect(left, top, right, bottom, rx, ry, paint) Added support methods to PathĪddRoundRect(left, top, right, bottom, rx, ry, dir: Path.Direction)ĪddRoundRect(left, top, right, bottom, radiiArray, dir: Path.Override fun onCreate (savedInstanceState: Bundle?) // defaults to UTF-8 val jsonObject = JSONTokener(response).nextValue() as JSONObject Then use your ShapeAnimator to execute this animation ay(m圜ircleShape.animate().centerX.to(15) ). animate()įor example, for a CircleShape, you can animate his position (centerX) using m圜ircleShape.animate().centerX.to(15) Shape animations are executed by an instance of ShapeAnimator attached to your view val canvasAnimator = CanvasAnimator(this)Īll animated methods of shapes are wrapped into the method. Use shapes & write less code to do more magic val canvasAnimator = CanvasAnimator(this) val background = RectShape Examples Make canvas easier to use in Kotlin blush
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |