Skip to content

Instantly share code, notes, and snippets.

View alex-amenos's full-sized avatar

Àlex Amenós alex-amenos

View GitHub Profile
@alex-amenos
alex-amenos / naming_conventions.md
Created December 1, 2019 01:19
Naming conventions

Modules

All the module resources have a module prefix.

On build.gradle file add the following lines to accomplish this rule with the module name

android {
   resourcePrefix 'module_name'
}
@alex-amenos
alex-amenos / android_studio_setup.md
Last active December 1, 2019 01:21
Android Studio Setup

Before to start working on the project you can follow some project rules to achieve project quality without effort.

You can create a scheme if you want for this project.

Android XML arrangement

Verify you Android XML arrangement

@alex-amenos
alex-amenos / localizable_google_spreadsheets_and_twine.md
Last active June 15, 2023 20:06
Generate localizable strings with Google Spreadsheets and Twine
  1. Create a Google spreadsheet like the following example:
KEY EN ES CA TAGS COMMENTS
// Core
core_accept Accept Aceptar D'acord android,ios,core -
core_cancel Cancel Cancelar Cancel·lar android,ios,core -
core_ok OK OK OK ios,core -
// Login
login_email_hint Enter your email Introduce tu email Introdueix el teu email android,ios,login -
@alex-amenos
alex-amenos / default-detekt-config.yml
Created February 2, 2020 10:56
default detekt configuration
autoCorrect: true
test-pattern: # Configure exclusions for test sources
active: true
patterns: # Test file regexes
- '.*/test/.*'
- '.*Test.kt'
- '.*Spec.kt'
exclude-rule-sets:
- 'comments'
@alex-amenos
alex-amenos / dart_samples.md
Last active December 18, 2020 12:11
Dart language samples
@alex-amenos
alex-amenos / Scrollbar.kt
Created March 30, 2022 19:42 — forked from mxalbert1996/Scrollbar.kt
Modifiers to draw scrollbars in Jetpack Compose
import android.view.ViewConfiguration
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding