This file contains hidden or 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: 'strip_play_services.gradle' |
This file contains hidden or 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
# Project-wide Gradle settings. | |
# IDE (e.g. Android Studio) users: | |
# Settings specified in this file will override any Gradle settings | |
# configured through the IDE. | |
# For more details on how to configure your build environment visit | |
# http://www.gradle.org/docs/current/userguide/build_environment.html | |
# The Gradle daemon aims to improve the startup and execution time of Gradle. | |
# When set to true the Gradle daemon is to run the build. | |
# TODO: disable daemon on CI, since builds should be clean and reliable on servers | |
org.gradle.daemon=true |
This file contains hidden or 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
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
compile project(':libraries:pulltorefresh') | |
} |
This file contains hidden or 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 { | |
dexOptions { | |
jumboMode true | |
} | |
} |
This file contains hidden or 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
$ rm -Rf /Applications/Android\ Studio.app | |
$ rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
$ rm -Rf ~/Library/Logs/AndroidStudio* | |
$ rm -Rf ~/Library/Caches/AndroidStudio* |
This file contains hidden or 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
buildTypes { | |
debug { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} |
This file contains hidden or 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
# Sammary | |
Many people think localization is diffecult. But actually it's just because they don't know what they have to do for localization. So I'm gonna talk about what and how we have to do for localization. For example, how to manage many strings.xml files, to implement plurals by languages, to apply Right-to-Left language. | |
If you will hear this talk, you become a localization master. | |
I'm developing Android app called Taptrip (https://play.google.com/store/apps/details?id=com.taptrip), 17 languages supports. And I developed DroidKaigi 2016 (The biggest Android conference in Tokyo) app (https://github.com/konifar/droidkaigi2016). It supports Japanese, English, Arabic, Korean. So I gonna talk by using these app as sample code. | |
# Detail | |
- How to manage many strings.xml files | |
- How to implement plural strings, diffrent time format | |
- How to implement Right-to-Left language text |
This file contains hidden or 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
[ | |
{ | |
"id": 1, | |
"title": "ウェルカムトーク", | |
"description": "", | |
"speaker": { | |
"id": 1, | |
"name": "mhidaka", | |
"image_url": "", | |
"twitter_name": "", |
This file contains hidden or 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 'dart:convert'; | |
import 'dart:io'; | |
import 'package:http/http.dart' as http; | |
main() async { | |
var response = await http.read( | |
'https://raw.githubusercontent.com/konifar/droidkaigi2016/master/app/src/main/res/raw/sessions_ja.json'); | |
var json = {'ja': JSON.decode(response)}; |
This file contains hidden or 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
private void refreshMenuItem(@Nullable MenuItem menuItem) { | |
if (menuItem != null) { | |
Drawable drawable = ContextCompat.getDrawable(this, R.drawable.vec_ic_refresh_22); | |
drawable = DrawableCompat.wrap(drawable); | |
DrawableCompat.setTintMode(drawable, PorterDuff.Mode.SRC_ATOP); | |
DrawableCompat.setTint(drawable, ResourcesCompat.getColor(getResources(), R.color.grey600, null)); | |
menuItem.setIcon(drawable); | |
} | |
} |
OlderNewer