JensKlingenberg.de

Android | Linux | Internet

Category

Allgemein

Gradle: How to group Maven Repos in a list

In some of my Gradle based projects, i use libraries which have to be downloaded from many different Maven Repositories. To get a better overview of all used repos i wanted to group them in a list. Unfortunately it was… Continue Reading →

How to get started with Dagger 2 on Android

This is a small example on how to get started with Dagger 2. I will explain how to create a component that will provide an instance of an Retrofit Api. Please check out my example Github project If you have… Continue Reading →

Learn how to use LiveData

In this post i want explain what is LiveData and how you can use it. 1) What is LiveData LiveData is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other… Continue Reading →

Higher Order Functions in Kotlin

What is a Higher Order Function? A higher-order function is a function that can take other functions as parameters and returns other functions. How to create a Higher Order Function?

You can create a higher order function like any… Continue Reading →

How to use StateListDrawable

What is a StateListDrawable? Let’s say you have a View like a Button. You want to set a background to the button, you use

But what can you do when you want to set a different background while the… Continue Reading →

How to use a SearchView with an empty query text submit

At the moment i’m working on an App with a search function. This alone is nothing special. Every second App has a search function. As a standard component the Android SDK offers the class SearchView. You can add an SearchView.OnQueryTextListener… Continue Reading →

Android LPT 1: Use variables in Gradle

In this post i want to explain you how i use Gradle variables to keep my buildscript clearer. DefaultConfig and Dependencies The problem

By default you add your dependencies under dependencies in your build.gradle . But the more dependencies… Continue Reading →

Android LPT: Overview

This is an ongoing series of blog posts with small tipps and tricks that helped me at developing Android apps. Android LPT: 1 Use variables in Gradle

Kotlin: Extensions

Kotlin has a feature to extend classes with new functions and properties, that you are normally not able to extend, maybe because they are final classes. Or you don’t want to create a custom type just because you are missing… Continue Reading →

Merge Sort in Kotlin

I’m learning Kotlin. It’s a statically typed programming language developed by JetBrains running on the JVM. I believe Kotlin has a great future on Android, because it`s offering a lot of functions that Java is missing and i think Google… Continue Reading →

© 2018 JensKlingenberg.de — Powered by WordPress

Theme by Anders NorenUp ↑