Repository navigation
Add kotlin tutorial - #13
Merged
Merged
Conversation
matt-oakes
reviewed
Apr 12, 2018
matt-oakes
left a comment
Collaborator
There was a problem hiding this comment.
This looks really good!
There are just a few small bits which need tweaking, but it looks great! 😃
|
|
||
|  | ||
|
|
||
| Before starting, please ensure you have Android Studio installed and setup correctly. |
Collaborator
There was a problem hiding this comment.
It might be good to link to the setup guide here, just in case.
|
|
||
| ## 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! |
Collaborator
There was a problem hiding this comment.
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?
| 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". |
Collaborator
There was a problem hiding this comment.
The code should be in backticks (`) to make it easier to spot that it is code to copy and use.
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.