This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
faq.html
executable file
·223 lines (192 loc) · 11.3 KB
/
faq.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!--
Copyright 2013 Android Holo Colors by Jérôme Van Der Linden
Copyright 2010 Android Asset Studio by Google Inc
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
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>F.A.Q.</title>
<link rel="stylesheet" href="include/lib/cssreset-3.4.1.min.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic,bold"
title="roboto">
<link rel="stylesheet" href="include/css/studio.css">
<link rel="stylesheet" href="include/lib/spectrum/spectrum-assetstudio.css">
<script src="include/lib/jquery.min.js"></script>
<!-- Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34362324-1']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
function positFix() {
$('#ads').css("left", $('#main-container').offset().left + $('#main-container').width() + 20);
}
</script>
<!-- Share This -->
<script type="text/javascript">var switchTo5x = true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "ed3a7034-081d-4179-9fad-3ea83de87da2"}); </script>
<style>
.faq {
padding-top: 20px;
}
.faq a {
font-weight: bold;
}
</style>
</head>
<body>
<div id="main-container">
<div id="header">
<h1>Android Holo Colors Generator</h1>
</div>
<div id="page-header">
<div id="breadcrumb">
<p>
<a href="index.php"><< Home</a>
</p>
</div>
<p id="page-intro">
<ul>
<li><a href="#many-pictures">Why does it genereate so many pictures ?</a></li>
<li><a href="#ldpi">Why the low density (ldpi) is not generated ?</a></li>
<li><a href="#opticalBoundsCrash">My application crash on gingerbread or froyo when adding optical bounds (red borders).</a></li>
<li><a href="#progressbar">Why the ProgressBar is not with my color ?</a></li>
<li><a href="#overiden-files">On Mac OS, when I copy the folders, it overwrite previous content</a></li>
<li><a href="#actionbar">The generator does not provide action bar files, how to get them ?</a></li>
<li><a href="#tabwidget">How to use TabWidget ?</a></li>
<li><a href="#donate">How to help you to improve the generator ?</a></li>
<li><a href="#ads">Why has there ads ?</a></li>
</ul>
</p>
<br/>
<p>>> The question you have is not here, please <a
href="https://github.com/jeromevdl/android-holo-colors/issues" target="_blank">report an issue</a>.
</div>
<div id="inputs">
<p class="faq"><a name="many-pictures">Why does it genereate so many pictures ?</a><br/>
Android Holo Colors Generator is based upon the default holo theme (in <a
href="http://omapzoom.org/?p=platform/frameworks/base.git;a=tree;f=core/res/res;h=a98b2c0f022e44d1dfabf89c46013b3a260c4aa0;hb=HEAD"
target="_blank">Android source code</a>) which use as many pictures as there (and even more !). You
may remove those you won't use and adjust the styles.xml to unreference those pictures. For example, if you
never disable widgets, you can remove the "disabled" pictures. You can also remove density you don't want,
for example mdpi. In that case, if a device with medium density use your application, hdpi pictures will be
used. As you can see, we do not generate ldpi, to avoid many more pictures (see <a href="#ldpi">Why the low
density (ldpi) is not generated ?</a>).</p>
<p class="faq"><a name="ldpi">Why the low density (ldpi) is not generated ?</a><br/>
Android Holo Colors Generator is based upon the default holo theme (in <a
href="http://omapzoom.org/?p=platform/frameworks/base.git;a=tree;f=core/res/res;h=a98b2c0f022e44d1dfabf89c46013b3a260c4aa0;hb=HEAD"
target="_blank">Android source code</a>) which does not provide any picture for low density devices.
Moreover, ldpi represents <a href="http://developer.android.com/about/dashboards/index.html#Screens"
target="_blank">less than 2%</a> of the Android Market Share. Finally, if a
device is in ldpi, it will use the mdpi or hdpi pictures (<a
href="http://developer.android.com/guide/practices/screens_support.html#support" target="_blank">more
info</a>).</p>
<p class="faq"><a name="opticalBoundsCrash">My application crash on gingerbread or froyo when adding optical bounds (red borders).</a><br/>
Indeed, Google introduced a new PNG processor in gradle plugin 0.9.1 (see <a href="http://tools.android.com/tech-docs/new-build-system" target="_blank">documentation</a>).
This PNG processor does not crunch the png as before, so that application crash at runtime (see this <a href="https://code.google.com/p/android/issues/detail?id=67376" target="_blank">issue</a>).
The solution is to use the old png processor in your gradle build (when using 0.9.+) : <br/> <code>android.aaptOptions.useAaptPngCruncher = true</code> <br/>
Thanks to <a href="https://github.com/JavierSP1209">Javier Silva</a> for this <a href="https://github.com/jeromevdl/android-holo-colors/issues/89">solution</a>.
</p>
<p class="faq"><a name="progressbar">Why the ProgressBar is not with my color ?</a><br/>
When using a ProgressBar, the default picture is the rolling ProgressBar. In order to get your pictures, set
the following to your ProgresBar : <br/> <code>style="?android:attr/progressBarStyleHorizontal"</code></p>
<p class="faq"><a name="overiden-files">On Mac OS, when I copy the folders, it overwrite previous
content</a><br/>
It is the default behavior of Finder. To avoid this, use another tool, for example muCommander or command
line : <br><code>ditto origin_folder destination_folder</code></p>
<p class="faq"><a name="actionbar">The generator does not provide action bar files, how to get them ?</a><br/>
There is another website for that. Go to <a
href="http://jgilfelt.github.com/android-actionbarstylegenerator/" target="_blank">actionbarstylegenerator</a>
to get your action bar pictures.
</p>
<p class="faq"><a name="tabwidget">How to use TabWidget ?</a><br/>
You should have a look at <a
href="http://developer.android.com/reference/android/support/v4/app/FragmentTabHost.html"
target="_blank">google documentation</a> for the basis. To use the custom color, replace the default
indicator like this:<br/>
<code>
View tabIndicator = LayoutInflater.from(this).inflate(R.layout.tab_indicator_holo,
mTabHost.getTabWidget(), false);
TextView title = (TextView) tabIndicator.findViewById(android.R.id.title);
title.setText("Tab 1");
</code>
</p>
<p class="faq"><a name="donate">How to help you to improve the generator ?</a><br/>
You can help by submitting your enhancement <a
href="https://github.com/jeromevdl/android-holo-colors/issues" target="_blank">requests</a> or with
a donation : <br/>
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XQSBX55A2Z46U">
<input type="image" src="support-button.png" border="0" name="submit"
alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</center>
</p>
<p class="faq"><a name="ads">Why has there ads ?</a><br/>
Android Holo Colors is totally free, but I need to pay the host and domain name. Furthermore, I keep adding
features and spending time on it. So Ads and Paypal are necessary to keep this website alive.
</p>
</div>
<div id="footer">
<p>Created by <a href="mailto:jeromevdl@android-holo-colors.com">Jérôme Van Der Linden</a>.</p>
<p>Built upon the <a href="http://code.google.com/p/android-ui-utils" target="_blank">android-ui-utils</a> asset
studio framework created by <a href="http://roman.nurik.net/" target="_blank">Roman Nurik</a>, copyright
Google Inc.</p><br/>
<p>All generated art is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/"
target="_blank">Creative Commons Attribution 3.0 Unported
License</a>.</p>
<br/><br/>
<div align="center">
<span class='st_twitter_hcount' displayText='Tweet'></span>
<span class='st_plusone_hcount' displayText='Google +1'></span>
<span class='st_googleplus_hcount' displayText='Google +'></span>
<span class='st_facebook_hcount' displayText='Facebook'></span>
<span class='st_linkedin_hcount' displayText='LinkedIn'></span>
<span class='st_yammer_hcount' displayText='Yammer'></span>
<span class='st_delicious_hcount' displayText='Delicious'></span>
<span class='st_email_hcount' displayText='Email'></span>
</div>
</div>
</div>
<div id="ads" style="position: fixed; top: 25px;">
<script type="text/javascript"><!--
amazon_ad_tag = "andholcol-20";
amazon_ad_width = "160";
amazon_ad_height = "600";
amazon_ad_logo = "hide";
amazon_ad_link_target = "new";
amazon_color_border = "33B5E5";
amazon_color_link = "33B5E5";
amazon_color_price = "FF8800";
amazon_color_logo = "FFFFFF";//--></script>
<script type="text/javascript" src="http://ir-na.amazon-adsystem.com/s/ads.js"></script>
</div>
<script>
positFix();
</script>
</body>
</html>