Skip to content

Add kotlin tutorial - #13

Merged
daniellevass merged 4 commits into
masterfrom
kotlin
Apr 12, 2018
Merged

daniellevass merged 4 commits into
masterfrom
kotlin

Conversation

@daniellevass

Copy link
Copy Markdown
Collaborator

No description provided.

@matt-oakes matt-oakes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good!

There are just a few small bits which need tweaking, but it looks great! 😃

Comment thread worksheets/kotlin/1-krumble/index.md Outdated

![Imgur](https://i.imgur.com/3u9ATGZ.png)

Before starting, please ensure you have Android Studio installed and setup correctly.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be good to link to the setup guide here, just in case.

Comment thread worksheets/kotlin/1-krumble/index.md Outdated

## 2 Layout

If you feel confident with layouts already, or would prefer to focus on purely kotlin this time. Copy paste the code in this file <https://gist.github.com/daniellevass/aa6d4042b950aaf6c0f2345530e4baa4> into your layout. This will give you all the layout elements we'll use later!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth making it more obvious that this is an optional step and something they could skip in favour of doing the steps below. Maybe make it italic?

Comment thread worksheets/kotlin/1-krumble/index.md Outdated
In Android we don't use pixels, but instead use `dp` which is a Density-independent Pixel. 1 point might be 1 pixel on a really low resolution device, but might be 4 pixels, or even 8 pixels on a newer device. Take a look at this handy guide Android wrote for more information <https://developer.android.com/guide/practices/screens_support.html>, you can also check out this stack overflow post <https://stackoverflow.com/a/2025541>


Because we have a RelativeLayout parent this means we can do some special things to position our cookie on our screen. We can provide an attribute like android:layout_centerHorizontal="true".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code should be in backticks (`) to make it easier to spot that it is code to copy and use.

Comment thread index.md Outdated
<p>Automatically test your cookie clicker app using Espresso</p>
<a href="{{ site.baseurl }}/worksheets/espresso-testing/" class="btn btn-primary">Read Tutorial</a>
<img src="images/kotlin.png" />
<p>These are our shiney new tutorials which use the Kotlin Language instead.</p>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shiny

@daniellevass
daniellevass merged commit 38aff39 into master Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants