Android – how to obtain resource from Android’s internal resources
Here is the picture which describes how to do it:
Here is the picture which describes how to do it:
After users have been engaging with your Android app for a while, they may encounter a window that prompts them to rate the app. This valuable call to action presents…
The first thing users see when they open your app. A well-designed splash screen can set the tone for the entire user experience, while a poorly designed one can frustrate…
"Kotlin is compatible with Java and can be used to create applications for the Android platform.""Kotlin is safer and more flexible than Java, thanks to additional data types (e.g. nullable…
Here is a small snippet to use if you want to force screen to be displayed in landscape mode. Place it before onCreate call. .line 9 const/4 v0, 0x0 invoke-virtual…
Validating the password: private fun validatePassword(password: String, passwordConfirmation: String): Boolean { val specialCharPattern = Pattern.compile("[^a-z0-9]", Pattern.CASE_INSENSITIVE) val upperCasePatten = Pattern.compile("[A-Z]") val lowerCasePatten = Pattern.compile("[a-z]") val digitCasePatten = Pattern.compile("[0-9]") if (TextUtils.isEmpty(password)…
Here is simple snippet for making imitation of underline for textview. To use it - just set it as a textview's background. <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:background="#EDF5F5"> <item…
This script helps move builded apk to external path i.e Dropbox drive or Google drive. Here is a gradle script for copying apk according to build type: def publish =…
Here is the batch script: @echo off for /r %%i in (*.apk) do ( echo "Installing %%i"; adb install -r "%%i" ) Or you can just download it.
public class RainbowSpan extends CharacterStyle implements UpdateAppearance { private final int colors; public RainbowSpan(Context context) { colors = new int{ Color.parseColor("#FF0033"), Color.parseColor("#FF8000"), Color.parseColor("#FFE600"), Color.parseColor("#1AB34D"), Color.parseColor("#1A66FF"), Color.parseColor("#801AB3") }; } @Override public…