This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<dimen name="toolbar_elevation">8dp</dimen> | |
<dimen name="dimen_margin_small">4dp</dimen> | |
<dimen name="dimen_margin_medium">8dp</dimen> | |
<dimen name="dimen_margin_large">16dp</dimen> | |
<dimen name="dimen_margin_xl">32dp</dimen> | |
<dimen name="dimen_margin_xxl">64dp</dimen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.SharedPreferences | |
import androidx.preference.PreferenceManager | |
/** | |
* @author ketzalv | |
* @version 1.0 | |
* Need add library this dependency to gradle | |
* { implementation 'androidx.preference:preference-ktx:1.1.1' } | |
*/ | |
object Preferences { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- android:fontFamily="sans-serif" // roboto regular--> | |
<!-- android:fontFamily="sans-serif-light" // roboto light--> | |
<!-- android:fontFamily="sans-serif-condensed" // roboto condensed--> | |
<!-- android:fontFamily="sans-serif-black" // roboto black--> | |
<!-- android:fontFamily="sans-serif-thin" // roboto thin (android 4.2)--> | |
<!-- android:fontFamily="sans-serif-medium" // roboto medium (android 5.0)--> | |
<string name="font_regular">sans-serif</string> | |
<string name="font_light">sans-serif-light</string> | |
<string name="font_condensed">sans-serif-condensed</string> | |
<string name="font_black">sans-serif-black</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.android.view; | |
import android.graphics.Canvas; | |
import android.graphics.ColorFilter; | |
import android.graphics.Paint; | |
import android.graphics.Rect; | |
import android.graphics.RectF; | |
import android.graphics.drawable.Drawable; | |
import android.util.DisplayMetrics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.view.View; | |
import android.widget.Toast; | |
import com.google.android.material.snackbar.Snackbar; | |
public class UiUtils { | |
public static void showToast(String message, Context context) { | |
Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); |