projects
/
android
/
android-app-development-getting-started.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
232a5bb
)
androink.py: add support for xxhdpi and xxxhdpi resources
author
Antonio Ospite <ao2@ao2.it>
Tue, 24 Nov 2015 18:23:29 +0000
(19:23 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Tue, 24 Nov 2015 18:23:29 +0000
(19:23 +0100)
ic_launcher_template/androink.py
patch
|
blob
|
history
diff --git
a/ic_launcher_template/androink.py
b/ic_launcher_template/androink.py
index
558293c
..
9473f35
100755
(executable)
--- a/
ic_launcher_template/androink.py
+++ b/
ic_launcher_template/androink.py
@@
-52,6
+52,8
@@
densities_baseline_mdpi = [
('drawable-mdpi', BASELINE_DPI * 1.0), # 4/4
('drawable-hdpi', BASELINE_DPI * 1.5), # 6/4
('drawable-xhdpi', BASELINE_DPI * 2.0), # 8/4
('drawable-mdpi', BASELINE_DPI * 1.0), # 4/4
('drawable-hdpi', BASELINE_DPI * 1.5), # 6/4
('drawable-xhdpi', BASELINE_DPI * 2.0), # 8/4
+ ('drawable-xxhdpi', BASELINE_DPI * 3.0), # 12/4
+ ('drawable-xxxhdpi', BASELINE_DPI * 4.0), # 16/4
]
# for baseline hdpi consider 6 as the base ratio
]
# for baseline hdpi consider 6 as the base ratio
@@
-60,6
+62,8
@@
densities_baseline_hdpi = [
('drawable-mdpi', BASELINE_DPI * 0.666666667), # 4/6
('drawable-hdpi', BASELINE_DPI * 1.0), # 6/6
('drawable-xhdpi', BASELINE_DPI * 1.333333333), # 8/6
('drawable-mdpi', BASELINE_DPI * 0.666666667), # 4/6
('drawable-hdpi', BASELINE_DPI * 1.0), # 6/6
('drawable-xhdpi', BASELINE_DPI * 1.333333333), # 8/6
+ ('drawable-xxhdpi', BASELINE_DPI * 2.0), # 12/6
+ ('drawable-xxxhdpi', BASELINE_DPI * 2.666666667), # 16/6
]
]