Skip to content

Commit d438739

Browse files
committed
Ported the project to the Android Studio IDE
1 parent 20765fe commit d438739

File tree

76 files changed

+1432
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1432
-52
lines changed

.DS_Store

6 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Sun Jan 24 12:41:17 PET 2016
17 Bytes
Binary file not shown.
22 KB
Binary file not shown.
50.7 KB
Binary file not shown.
18.9 KB
Binary file not shown.
42.6 KB
Binary file not shown.

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ The setup of the custom view should be as simple as placing this snippet in your
99

1010
```xml
1111
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
12-
xmlns:tools="http://schemas.android.com/tools"
13-
xmlns:custom="http://schemas.android.com/apk/res/com.luminiasoft.labs.views"
14-
android:layout_width="match_parent"
15-
android:layout_height="match_parent">
16-
<com.luminiasoft.labs.views.Speedometer
17-
android:id="@+id/Speedometer"
18-
android:layout_width="wrap_content"
19-
android:layout_height="wrap_content"
20-
custom:currentSpeed="100"
21-
custom:maxSpeed="300" />
12+
xmlns:tools="http://schemas.android.com/tools"
13+
xmlns:custom="http://schemas.android.com/apk/res/com.luminiasoft.labs.views"
14+
android:layout_width="match_parent"
15+
android:layout_height="match_parent">
16+
<com.luminiasoft.labs.views.Speedometer
17+
android:id="@+id/Speedometer"
18+
android:layout_width="wrap_content"
19+
android:layout_height="wrap_content"
20+
custom:currentSpeed="100"
21+
custom:maxSpeed="300" />
2222
</RelativeLayout>
23-
```
23+
```
2424

2525
Of course, don't forget to include the `/values/attrs.xml` file in your project for this to work.
2626

app/build.gradle

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 17
5+
buildToolsVersion "23.0.2"
6+
7+
defaultConfig {
8+
applicationId "com.luminiasoft.labs.views"
9+
minSdkVersion 8
10+
targetSdkVersion 17
11+
}
12+
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
17+
}
18+
}
19+
}
20+
21+
dependencies {
22+
compile 'com.android.support:support-v4:18.0.0'
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Automatically generated file. DO NOT MODIFY
3+
*/
4+
package com.luminiasoft.labs.views.test;
5+
6+
public final class BuildConfig {
7+
public static final boolean DEBUG = Boolean.parseBoolean("true");
8+
public static final String APPLICATION_ID = "com.luminiasoft.labs.views.test";
9+
public static final String BUILD_TYPE = "debug";
10+
public static final String FLAVOR = "";
11+
public static final int VERSION_CODE = -1;
12+
public static final String VERSION_NAME = "";
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Automatically generated file. DO NOT MODIFY
3+
*/
4+
package com.luminiasoft.labs.views;
5+
6+
public final class BuildConfig {
7+
public static final boolean DEBUG = Boolean.parseBoolean("true");
8+
public static final String APPLICATION_ID = "com.luminiasoft.labs.views";
9+
public static final String BUILD_TYPE = "debug";
10+
public static final String FLAVOR = "";
11+
public static final int VERSION_CODE = 2;
12+
public static final String VERSION_NAME = "1.1";
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,250 @@
1+
/* AUTO-GENERATED FILE. DO NOT MODIFY.
2+
*
3+
* This class was automatically generated by the
4+
* aapt tool from the resource data it found. It
5+
* should not be modified by hand.
6+
*/
7+
8+
package com.luminiasoft.labs.views;
9+
10+
public final class R {
11+
public static final class attr {
12+
/** <p>Must be a floating point value, such as "<code>1.2</code>".
13+
<p>This may also be a reference to a resource (in the form
14+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
15+
theme attribute (in the form
16+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
17+
containing a value of this type.
18+
*/
19+
public static final int currentSpeed=0x7f010001;
20+
/** <p>Must be a floating point value, such as "<code>1.2</code>".
21+
<p>This may also be a reference to a resource (in the form
22+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
23+
theme attribute (in the form
24+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
25+
containing a value of this type.
26+
*/
27+
public static final int maxSpeed=0x7f010000;
28+
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
29+
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
30+
<p>This may also be a reference to a resource (in the form
31+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
32+
theme attribute (in the form
33+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
34+
containing a value of this type.
35+
*/
36+
public static final int offColor=0x7f010003;
37+
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
38+
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
39+
<p>This may also be a reference to a resource (in the form
40+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
41+
theme attribute (in the form
42+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
43+
containing a value of this type.
44+
*/
45+
public static final int onColor=0x7f010002;
46+
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
47+
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
48+
in (inches), mm (millimeters).
49+
<p>This may also be a reference to a resource (in the form
50+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
51+
theme attribute (in the form
52+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
53+
containing a value of this type.
54+
*/
55+
public static final int readingTextSize=0x7f010006;
56+
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
57+
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
58+
<p>This may also be a reference to a resource (in the form
59+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
60+
theme attribute (in the form
61+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
62+
containing a value of this type.
63+
*/
64+
public static final int scaleColor=0x7f010004;
65+
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
66+
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
67+
in (inches), mm (millimeters).
68+
<p>This may also be a reference to a resource (in the form
69+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
70+
theme attribute (in the form
71+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
72+
containing a value of this type.
73+
*/
74+
public static final int scaleTextSize=0x7f010005;
75+
}
76+
public static final class dimen {
77+
public static final int activity_horizontal_margin=0x7f040000;
78+
public static final int activity_vertical_margin=0x7f040001;
79+
}
80+
public static final class drawable {
81+
public static final int ic_launcher=0x7f020000;
82+
}
83+
public static final class id {
84+
public static final int DecreaseSpeed=0x7f080003;
85+
public static final int IncreaseSpeed=0x7f080001;
86+
public static final int MiddleView=0x7f080002;
87+
public static final int Speedometer=0x7f080000;
88+
public static final int action_settings=0x7f080004;
89+
}
90+
public static final class layout {
91+
public static final int activity_main=0x7f030000;
92+
}
93+
public static final class menu {
94+
public static final int main=0x7f070000;
95+
}
96+
public static final class string {
97+
public static final int action_settings=0x7f060000;
98+
public static final int app_name=0x7f060001;
99+
public static final int decrease=0x7f060002;
100+
public static final int hello_world=0x7f060003;
101+
public static final int increase=0x7f060004;
102+
}
103+
public static final class style {
104+
/** API 11 theme customizations can go here.
105+
API 14 theme customizations can go here.
106+
107+
Theme customizations available in newer API levels can go in
108+
res/values-vXX/styles.xml, while customizations related to
109+
backward-compatibility can go here.
110+
111+
*/
112+
public static final int AppBaseTheme=0x7f050000;
113+
/** All customizations that are NOT specific to a particular API-level can go here.
114+
*/
115+
public static final int AppTheme=0x7f050001;
116+
}
117+
public static final class styleable {
118+
/** Attributes that can be used with a Speedometer.
119+
<p>Includes the following attributes:</p>
120+
<table>
121+
<colgroup align="left" />
122+
<colgroup align="left" />
123+
<tr><th>Attribute</th><th>Description</th></tr>
124+
<tr><td><code>{@link #Speedometer_currentSpeed com.luminiasoft.labs.views:currentSpeed}</code></td><td></td></tr>
125+
<tr><td><code>{@link #Speedometer_maxSpeed com.luminiasoft.labs.views:maxSpeed}</code></td><td></td></tr>
126+
<tr><td><code>{@link #Speedometer_offColor com.luminiasoft.labs.views:offColor}</code></td><td></td></tr>
127+
<tr><td><code>{@link #Speedometer_onColor com.luminiasoft.labs.views:onColor}</code></td><td></td></tr>
128+
<tr><td><code>{@link #Speedometer_readingTextSize com.luminiasoft.labs.views:readingTextSize}</code></td><td></td></tr>
129+
<tr><td><code>{@link #Speedometer_scaleColor com.luminiasoft.labs.views:scaleColor}</code></td><td></td></tr>
130+
<tr><td><code>{@link #Speedometer_scaleTextSize com.luminiasoft.labs.views:scaleTextSize}</code></td><td></td></tr>
131+
</table>
132+
@see #Speedometer_currentSpeed
133+
@see #Speedometer_maxSpeed
134+
@see #Speedometer_offColor
135+
@see #Speedometer_onColor
136+
@see #Speedometer_readingTextSize
137+
@see #Speedometer_scaleColor
138+
@see #Speedometer_scaleTextSize
139+
*/
140+
public static final int[] Speedometer = {
141+
0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003,
142+
0x7f010004, 0x7f010005, 0x7f010006
143+
};
144+
/**
145+
<p>This symbol is the offset where the {@link com.luminiasoft.labs.views.R.attr#currentSpeed}
146+
attribute's value can be found in the {@link #Speedometer} array.
147+
148+
149+
<p>Must be a floating point value, such as "<code>1.2</code>".
150+
<p>This may also be a reference to a resource (in the form
151+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
152+
theme attribute (in the form
153+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
154+
containing a value of this type.
155+
@attr name com.luminiasoft.labs.views:currentSpeed
156+
*/
157+
public static final int Speedometer_currentSpeed = 1;
158+
/**
159+
<p>This symbol is the offset where the {@link com.luminiasoft.labs.views.R.attr#maxSpeed}
160+
attribute's value can be found in the {@link #Speedometer} array.
161+
162+
163+
<p>Must be a floating point value, such as "<code>1.2</code>".
164+
<p>This may also be a reference to a resource (in the form
165+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
166+
theme attribute (in the form
167+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
168+
containing a value of this type.
169+
@attr name com.luminiasoft.labs.views:maxSpeed
170+
*/
171+
public static final int Speedometer_maxSpeed = 0;
172+
/**
173+
<p>This symbol is the offset where the {@link com.luminiasoft.labs.views.R.attr#offColor}
174+
attribute's value can be found in the {@link #Speedometer} array.
175+
176+
177+
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
178+
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
179+
<p>This may also be a reference to a resource (in the form
180+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
181+
theme attribute (in the form
182+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
183+
containing a value of this type.
184+
@attr name com.luminiasoft.labs.views:offColor
185+
*/
186+
public static final int Speedometer_offColor = 3;
187+
/**
188+
<p>This symbol is the offset where the {@link com.luminiasoft.labs.views.R.attr#onColor}
189+
attribute's value can be found in the {@link #Speedometer} array.
190+
191+
192+
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
193+
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
194+
<p>This may also be a reference to a resource (in the form
195+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
196+
theme attribute (in the form
197+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
198+
containing a value of this type.
199+
@attr name com.luminiasoft.labs.views:onColor
200+
*/
201+
public static final int Speedometer_onColor = 2;
202+
/**
203+
<p>This symbol is the offset where the {@link com.luminiasoft.labs.views.R.attr#readingTextSize}
204+
attribute's value can be found in the {@link #Speedometer} array.
205+
206+
207+
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
208+
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
209+
in (inches), mm (millimeters).
210+
<p>This may also be a reference to a resource (in the form
211+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
212+
theme attribute (in the form
213+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
214+
containing a value of this type.
215+
@attr name com.luminiasoft.labs.views:readingTextSize
216+
*/
217+
public static final int Speedometer_readingTextSize = 6;
218+
/**
219+
<p>This symbol is the offset where the {@link com.luminiasoft.labs.views.R.attr#scaleColor}
220+
attribute's value can be found in the {@link #Speedometer} array.
221+
222+
223+
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
224+
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
225+
<p>This may also be a reference to a resource (in the form
226+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
227+
theme attribute (in the form
228+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
229+
containing a value of this type.
230+
@attr name com.luminiasoft.labs.views:scaleColor
231+
*/
232+
public static final int Speedometer_scaleColor = 4;
233+
/**
234+
<p>This symbol is the offset where the {@link com.luminiasoft.labs.views.R.attr#scaleTextSize}
235+
attribute's value can be found in the {@link #Speedometer} array.
236+
237+
238+
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
239+
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
240+
in (inches), mm (millimeters).
241+
<p>This may also be a reference to a resource (in the form
242+
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
243+
theme attribute (in the form
244+
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
245+
containing a value of this type.
246+
@attr name com.luminiasoft.labs.views:scaleTextSize
247+
*/
248+
public static final int Speedometer_scaleTextSize = 5;
249+
};
250+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[
2+
{
3+
"outputFile": "/Users/nelson/Development/Android/Apps/Android-Speedometer-AS/app/build/intermediates/res/merged/debug/values-sw720dp-land-v13/values-sw720dp-land-v13.xml",
4+
"map": [
5+
{
6+
"to": {
7+
"startLine": 2,
8+
"startColumn": 4,
9+
"startOffset": 55,
10+
"endColumn": 58,
11+
"endOffset": 109
12+
},
13+
"from": {
14+
"file": "/Users/nelson/Development/Android/Apps/Android-Speedometer-AS/app/src/main/res/values-sw720dp-land/dimens.xml",
15+
"position": {
16+
"startLine": 6,
17+
"startColumn": 4,
18+
"startOffset": 200,
19+
"endColumn": 58,
20+
"endOffset": 254
21+
}
22+
}
23+
}
24+
]
25+
},
26+
{
27+
"outputFile": "/Users/nelson/Development/Android/Demos/Android-Speedometer/app/build/intermediates/res/merged/debug/values-sw720dp-land-v13/values-sw720dp-land-v13.xml",
28+
"map": [
29+
{
30+
"to": {
31+
"startLine": 2,
32+
"startColumn": 4,
33+
"startOffset": 55,
34+
"endColumn": 58,
35+
"endOffset": 109
36+
},
37+
"from": {
38+
"file": "/Users/nelson/Development/Android/Demos/Android-Speedometer/app/src/main/res/values-sw720dp-land/dimens.xml",
39+
"position": {
40+
"startLine": 6,
41+
"startColumn": 4,
42+
"startOffset": 200,
43+
"endColumn": 58,
44+
"endOffset": 254
45+
}
46+
}
47+
}
48+
]
49+
}
50+
]

0 commit comments

Comments
 (0)