RecyclerView & ListView basic comparison

Do you remember the good old ListView? Back then it was the only option for showing items in scrolling lists. Then, at some point, a new player entered the field – the RecyclerView. For some period of time I was definitely confused about which one should I use. But day by day the RecyclerView took the whole stage and there was almost nothing left for the old ListView. Nowadays, if you need a listing functionality, the RecyclerView is the place to go. But what was the reason behind the success of the RecyclerView? Let’s try to find out!

Read More »

Android tricks – Is there a way to customize the permissions dialog?

With Android 6.0 Marshmallow a really important feature was introduced to the Android users. Yes! I’m talking about the run-time permissions. The “all or nothing” approach related to the app’s permissions was wiped out. If running on Marshmallow or a later version, the users can enable and disable permissions whenever they want. And that’s how the nightmare for all of us, the developers, began!Read More »

Android tricks – How to add strikethrough text in TextView

The strikethrough effect can be really useful in many situations. You can use it when you want to show a discount price, when you want to mark a wrong word or in many other situations. We all know that feature from software products like Word, Evernote, Sublime, etc. But how can we do the same thing with our simple TextView?

Read More »

Android tricks – Determine current screen density

Do you know the thing I hate the most about Android? It’s screen fragmentation! On the one hand, having a huge variety of screen sizes is great for the end users. But it’s a complete nightmare for developers! Thus, it’s really hard to create a good looking UI without any problems. There will always be a device with some wired screen size on which your layout will look bad!

Read More »

DiffUtil in details

The chances of developing a medium to large size Android application without using RecyclerView are relatively low. The scrollable list, as UI and UX pattern, is really powerful. It gives us the possibility to group similar items or entities into lists. They are easy to grab and to understand.

Read More »

Intent vs PendingIntent

2016 is officially over and here we are at the beginning of 2017! So let’s start the year with some wisdom!

Have you ever wondered what is the difference between Intent and PendingIntent? Well, although they sound similar, there is a difference between them. As you can see, the documentation about these two entities is extensive and provides lots of information. But we will try to summarize it in a shorter version.

Read More »

Android tricks – How to make the text of a RadioButton appear on it’s left side?

Let’s start 2017 with a quick and useful ‘How to’ article!

Have you ever tried to make the text of a RadioButton¬†appear on it’s left side? It’s tricky! You can check to source code down below:

Read More »

Geo-fencing with MVP Part 4

Here we are, at the last, fourth part of the series about Geofencing and MVP. In this last article we will talk about the actual registration and addition process of the predefined POJO geofences. Aaand we will make a short summery of the articles up till now.

Read More »

Android tricks – How to find view’s dimensions before displaying the view?

Two days ago I had to work with some views (Surprise! Surprise!). At some point I had to get the actual views’ width and height, before actually displaying the views. Of course, they were included in my XML layout. Thus this made the task a little bit easier. After spending several minutes on Google (ALWAYS do that, when you are in trouble), I found a solution.

Read More »

Geo-fencing with MVP Part 3

With the previous two posts, we went through the basic concepts behind the idea of geofencing, why using design patterns and we dived deeper in the main components used in the construction of the example application for these series. Now in the third part, we will go through the classes which are responsible for the core geofencing functionality. I hope you still remember the overall MVP design diagram from the previous post! The one down below seems similar to the previous one, but some additional components are included as well:

Read More »