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
textView.setAutoLinkMask(Linkify.WEB_URLS); |
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
Google devices info: | |
https://design.google.com/devices/ | |
===================== PHONES ====================== | |
Nexus S: | |
{1.0 0mcc0mnc en_US sw320dp w320dp h460dp nrml port finger qwerty/v/v dpad/v s.4} | |
Nexus 4: xhdpi | |
{1.0 310mcc?mnc en_US ldltr sw384dp w384dp h567dp 320dpi nrml port finger -keyb/v/h -nav/h s.5} |
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
apply from: "${rootDir}/android_common.gradle" |
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
List video annotation: | |
https://www.youtube.com/annotations_invideo?plid=bla&video_id=<video_id> |
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
drawable-ldpi 120 dpi : 36px x 36px | |
drawable-mdpi 160 dpi : 48px x 48px | |
drawable-hdpi 240 dpi : 72px x 72px | |
drawable-xhdpi 320 dpi : 96px x 96px | |
drawable-xxhdpi 480 dpi : 144px x 144px | |
drawable-xxhdpi 640 dpi : 196px x 196px |
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
# Publish local branch to repo and make it tracking: | |
$ git push -u origin branch_name | |
# List remote branches: | |
$ git remote show origin | |
# Show stale branches that will be removed: | |
$ git remote prune origin --dry-run | |
# Delete stale branches: |
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
Build or update kernel, using .config in /usr/src/linux: | |
# genkernel --no-mrproper --no-clean --install --oldconfig --bootloader=grub all |
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
Configure desktop icons, label and position: | |
Create file .gtkrc-2.0 in home directory: | |
style "xfdesktop-icon-view" { | |
XfdesktopIconView::label-alpha = 0 | |
XfdesktopIconView::selected-label-alpha = 100 | |
XfdesktopIconView::ellipsize-icon-labels = 0 | |
XfdesktopIconView::tooltip-size = 128 |
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-thin" // roboto thin | |
android:fontFamily="sans-serif-light" // roboto light | |
android:fontFamily="sans-serif-condensed" // roboto condensed |
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
To make emulator looks crystal clear, easiest way - change window size to be exact size. | |
On linux there is command: | |
wmctrl -r "win" -e G,X,Y,W,H | |
G - gravity | |
X,Y - window coords | |
W - width | |
H - height | |
For 1280x800 window, command will be: |