Skip to content

Instantly share code, notes, and snippets.

View mwolfson's full-sized avatar

Mike Wolfson mwolfson

View GitHub Profile
@mwolfson
mwolfson / Color.kt
Last active March 27, 2024 07:28
Material Design Color Resources for Jetpack Compose
import androidx.compose.ui.graphics.Color
// Material Color Resources
val amber_050 = Color(0xFFfff8e1) // Use with black text
val amber_100 = Color(0xFFffecb3) // Use with black text
val amber_200 = Color(0xFFffe082) // Use with black text
val amber_300 = Color(0xFFffd54f) // Use with black text
val amber_400 = Color(0xFFffca28) // Use with black text
val amber_500 = Color(0xFFffc107) // Use with black text
@mwolfson
mwolfson / Logcat Filter Strings
Last active December 25, 2021 05:27
Logcat Filter String to silence the noise in the Logcat file
^(?!Wifi|HierarchicalStateMachine|MotoNetwCtrlr|HeadsetStateMachine|bt-btif|rmt_storage|ThermalEngine|TCMD|QC-time-services|ActivityModePolicy|AlarmManager|BatteryService|SQLiteLog|BackupManagerService|UpdateIcingCorporaServi|IccSmsInterfaceManager|HeadsetPhoneState|Launcher|LocationFilter|DeviceScanner|GCoreUrl|Icing|GCoreUlr|PackageBroadcastService|WindowManager|InputReader|SFPerfTracker|UsageStatsService|GmsNetworkLocationProvi|ConnectivityService|ConfigFetchService|TaskPersister|Finsky|SFPerfTracer|OpenGLRenderer|HotwordRecognitionRnr).*$
@mwolfson
mwolfson / touchHelper_ItemTouchHelperAdapter.java
Last active August 19, 2021 13:48
Interfaces, and ItemTouchHelper.Callback implementation to assist in adding Swipe based gestures (Drag & Drop, Swipe to Dismiss) to a RecyclerView.
/*
* Copyright (C) 2015 Paul Burke
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software