
Avid gamer, film and music fan. iOS and Android Developer. Author of https://xitter.cf/t.co/YkGoYZHv7K. Apple Team @GoodnotesApp.
Rugby, England
Joined September 2014
- Tweets1.1K
- Following164
- Followers409
- Likes2.1K
On Android, learn how add a Jetpack Compose M3 SearchBar as a second row in the TopAppBar.
🔎 Build a SearchBar
➕ Add as a second row of the TopAppBar
🎨 Fix the padding and styling
🕺Build a nice active state with animation
lordcodes.com/articles/embed…
#androiddev #JetpackCompose
3
368
Been playing around with @canva, seems to have a pretty decent library of graphical elements to build a simple app icon. Very easy to lay out and tweak colours. Better than other icon design tools I've tried in the past by far!
#buildinpublic
1
290
AdoptOpenJDK suggest a great function to easily switch between different JDKs on the command line. Add to ~/.zshrc or with your shell functions. Run like 'jdk 1.8' or 'jdk 11' to switch to an installed JDK version github.com/AdoptOpenJDK/home… #AndroidDev #Kotlin #Java 🙏🚀
My next #AndroidDev article is all about authorising web requests and retrying them if they fail due to authorisation issues, when using OkHttp and Retrofit in #Kotlin and #Android. Let me know what you think! 🚀
lordcodes.com/articles/autho…
I am compressing images all the time using @TinyPNG and so to make things easier I wrote a simple command line tool to do it for me. Makes preparing images for my articles so muck quicker! It was great fun writing a CLI in #swiftlang as well 👍.
github.com/lordcodes/imagecr…
1
My next #swiftlang article is all about using SPM in your Swift project to run project automation tasks with a small CLI and to install and run all command line tool dependencies. It's great to use SPM for all of it! 🚀
lordcodes.com/articles/manag… #iOSDev
My next #AndroidDev article is all about lazy properties in Kotlin. It goes through how to create lazy properties, different ways of assigning a value to them and situations in which they can really come in handy 🎉
lordcodes.com/articles/the-p… #AndroidDev #Kotlin
Any #swiftlang developers who know why this function would take longer than others to compile. 250-275ms to type-check?
It seems very simple.
#iosdev #Swift
1
I love using extension functions to make life easier. This one makes launching Android Activities much simpler.
♺ Generic for all Activities
🏁Uses startActivity or startActivityForResult
🔧Alter Intent using provided function
lordcodes.com/tips/start-act… #AndroidDev #Kotlin
I have a new #AndroidDev article out: "Uploading a file with progress in Kotlin" 🎉
🌍 Using Retrofit, OkHttp and Okio to upload a file
👀 How to observe the upload progress
🎁 Wrapping the process into a reactive stream
lordcodes.com/articles/uploa… #Android #Kotlin
1
I have a new #AndroidDev article out: "Protecting secrets in an Android project" 🎉
🚪 Keep secrets out of source control
🔧 Configure values locally and on CI
🔐 Implementing encryption of secrets
lordcodes.com/articles/deali… #Android #Kotlin
I have a new #AndroidDev article out: "Enforcing type safety of identifiers in Kotlin" 🎉
👤 How to identify entities in our codebases
♺ Writing a generic identifier type
🦺 Making our identifier class type-safe
lordcodes.com/articles/enfor… #Android #Kotlin
I have a new #AndroidDev article out: "The power of sealed classes in Kotlin" 🎉
👷♀️ How sealed classes work
✅ The power of using them
🛠 Some great use cases
lordcodes.com/posts/the-powe… #Android #Kotlin













