Skip to content

Instantly share code, notes, and snippets.

View raymondctc's full-sized avatar
🤔
To be or not to be?

Raymond Chan raymondctc

🤔
To be or not to be?
View GitHub Profile
@mikelambert
mikelambert / models.txt
Created April 28, 2017 01:47
gcloud firebase test android models list
┌─────────────┬──────────┬───────────────────────────┬──────────┬─────────────┬────────────────┬──────────────┐
│ MODEL_ID │ MAKE │ MODEL_NAME │ FORM │ RESOLUTION │ OS_VERSION_IDS │ TAGS │
├─────────────┼──────────┼───────────────────────────┼──────────┼─────────────┼────────────────┼──────────────┤
│ A0001 │ OnePlus │ OnePlus One │ PHYSICAL │ 1920 x 1080 │ 22 │ │
│ D6503 │ Sony │ Xperia Z2 │ PHYSICAL │ 1920 x 1080 │ 21 │ │
│ D6603 │ Sony │ Xperia Z3 │ PHYSICAL │ 1920 x 1080 │ 21 │ │
│ E5803 │ Sony │ Xperia Z5 Compact │ PHYSICAL │ 1280 x 720 │ 22 │ │
│ F5121 │ Sony │ Sony Xperia X │ PHYSICAL │ 1920 x 1080 │ 23 │ │
│ Nexus10 │ Samsung │ Nexus 10 │ VIRTUAL │ 2560 x 1600 │ 19,21,22 │ │
@webserveis
webserveis / material text sizes.md
Last active August 10, 2024 02:29 — forked from passsy/material text sizes.md
Material font sizes

Material text sizes XML for Android

Simple helper file for standard text sizes in material design. The sizes are provided by the material design documentation https://www.google.com/design/spec/style/typography.html#typography-roboto

material typography

Standard Styles

Too many type sizes and styles at once can wreck any layout. A typographic scale is a limited set of type sizes that work well together, along with the layout grid. The basic set of styles are based on a typographic scale of 12, 14, 16, 20, and 34.

@dlew
dlew / themes-debug.xml
Last active March 1, 2024 15:46
With the new theming in AppCompat, a lot of assets are tinted automatically for you via theme attributes. That has often led me to wonder "where the hell did this color come from?" You can replace your normal theme with this debug theme to help figure out the source of that color.
<!-- You can change the parent around to whatever you normally use -->
<style name="DebugColors" parent="Theme.AppCompat">
<!-- System colors -->
<item name="android:windowBackground">@color/__debugWindowBackground</item>
<item name="android:colorPressedHighlight">#FF4400</item>
<item name="android:colorLongPressedHighlight">#FF0044</item>
<item name="android:colorFocusedHighlight">#44FF00</item>
<item name="android:colorActivatedHighlight">#00FF44</item>