Adding HDR Video Capabilities to Android Apps | by PAD Editorial | Sep, 2023
TL;DR: High Dynamic Range (HDR) provides improved color, contrast, and brightness for visually stunning video experiences in media-rich Android apps. Developers can enhance their Android apps with HDR video capabilities on devices powered by Snapdragon mobile platforms. This blog dives into using Android’s Camera2 API…
3-step guide to adding emojis — Jetpack Emoji Picker | by Nav Singh | Sep, 2023
class CustomRecentEmojiProvider(context: Context) : RecentEmojiAsyncProvider { private val sharedPreferences by lazy {context.getSharedPreferences(RECENT_EMOJI_LIST_PREF_NAME, Context.MODE_PRIVATE)} private val emoji2Frequency: MutableMap<String, Int> by lazy {sharedPreferences.getString(CUSTOM_EMOJI_FREQ_PREF_KEY, null)?.split(SPLIT_CHAR)?.associate { entry ->entry.split(VALUE_DELIMITER, limit = 2).let { value -> value[0] to value[1].toInt() }}?.toMutableMap() ?: mutableMapOf()} override fun getRecentEmojiListAsync(): ListenableFuture<List<String>> =Futures.immediateFuture(emoji2Frequency.toList().sortedByDescending { it.second }.map…
Implementing a Crypto Trade App in Jetpack Compose: Adding the Custom Crypto Cap Card | by Alejandro Zurcher | Jul, 2023
Let’s begin by creating a new Composable under our composables/home package to keep things organized in our project. Now, let’s write the root function of our new Composable. This new view looks quite similar to a native Card, so for now, let’s start with that…
More Accessible Graphs with Jetpack Compose Part 1: Adding Content Description | by Eevis Panula | Jul, 2023
Data visualizations rely on the visual representation of data. And that data is usually portrayed by some combination of colors. On mobile apps, they also often include different interactions that rely on touch. But what if your user can’t see? Or if they’re colorblind, and…