Articles, Solutions

Print Android instrumentation tests logs in the terminal/console

While debugging some Android instrumentation tests that were ran using adb shell am instrument, I needed to print some logs into the terminal/console to inspect the flow and resolve some issues. Ever been coding away, trying to track down what’s happening under the hood, thinking Log.i/e/d or System.out would be your trusty sidekicks for logging

, , , ,
Tutorial

Android Simple Section RecylerView

In this tutorial I will create a simple Sectioned RecyclerView that will show 2 sections and a few items in each section and how to move an item from one section to another. Note: For RecyclerView I used AndroidX imports and not android.support.v7.widget.RecyclerView Setup We need to import the recycler view from AndroidX. The build.gradle

, , , ,
Solutions

Android Bottom Border Line

The simplest way to add a bottom border line to a view is this one. If you search on Google and StackOverflow you will find many ways to do this, but they seemed overly complex compared to this one. So if you ever need a border line at the bottom of a view you can

Uncategorized

Xamarin Forms: Label LineBreakMode

You can set a LineBreakMode attribute to a Label that can have the following values: TailTruncation HeadTruncation MiddleTruncation CharacterWrap WordWrap NoWrap TailTruncation If you have a text that is to large to fit the width of your label, you can use the attribute called LineBreakMode=TailTruncation. This will display a text with “…” at the end

Privacy Policy

Kotlin RecyclerView with Click Listener

Create a RecyclerView in Android with Kotlin – A Step-by-Step Guide In today’s tutorial we’ll learn how to create a RecyclerView in Kotlin for Android with items that are clickable. This approach, distinct from the traditional ListView, offers a more dynamic and flexible way to display a scrollable list. Read on to discover how to

sponsored
Exit mobile version