Skip to content

Commit eeae62d

Browse files
committed
Adicionado arquivos de template para ActionbarSherlock;
Atualizado manifest; Atualizado pom.xml; Adicionado icone da aplicação; Atualizado .gitignore;
1 parent 95b94f6 commit eeae62d

File tree

96 files changed

+481
-76
lines changed

Some content is hidden

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

96 files changed

+481
-76
lines changed

.gitignore

+24-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
1+
########## Intellij #########
2+
13
*.iml
2-
*.jar
3-
*.swp
4-
/.idea/
5-
/.settings/
6-
/.classpath
7-
/.project
8-
/bin/
9-
/gen/
10-
/gen-*/
11-
/out/
12-
/target/
13-
/tmp/
4+
.idea/
5+
out/
6+
gen-external-apklibs/
7+
8+
########## Eclipse ##########
9+
10+
.classpath
11+
.settings/
12+
.project
13+
classes/
14+
libs/
15+
bin/
1416
project.properties
17+
18+
########### Maven ###########
19+
20+
target/
21+
tmp/
22+
23+
########### Android ###########
24+
25+
gen/
26+
lint.xml

AndroidManifest.xml

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="org.gujavasc.opennetworking.android"
4-
android:versionCode="1"
5-
android:versionName="1.0" >
3+
package="org.gujavasc.opennetworking.android"
4+
android:versionCode="1"
5+
android:versionName="1.0">
66

77
<uses-sdk
8-
android:maxSdkVersion="16"
9-
android:minSdkVersion="8"
10-
android:targetSdkVersion="16" />
8+
android:maxSdkVersion="17"
9+
android:minSdkVersion="7"
10+
android:targetSdkVersion="16"/>
1111

12-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
13-
<uses-permission android:name="android.permission.INTERNET" />
12+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
13+
<uses-permission android:name="android.permission.INTERNET"/>
1414

15-
<application android:label="@string/app_name" >
15+
<application android:label="@string/app_name">
1616
<activity
17-
android:name="MainActivity"
18-
android:label="@string/app_name" android:theme="@style/Theme.Sherlock" >
17+
android:name="MainActivity"
18+
android:label="@string/app_name"
19+
android:icon="@drawable/ic_launcher"
20+
android:theme="@style/Theme.Gujavasc">
1921
<intent-filter>
20-
<action android:name="android.intent.action.MAIN" />
21-
22-
<category android:name="android.intent.category.LAUNCHER" />
22+
<action android:name="android.intent.action.MAIN"/>
23+
<category android:name="android.intent.category.LAUNCHER"/>
2324
</intent-filter>
2425
</activity>
2526
</application>

pom.xml

+13-36
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,10 @@
1414
<version.android>4.1.1.4</version.android>
1515
<version.actionbarsherlock>4.3.1</version.actionbarsherlock>
1616

17-
<version.clean.plugin>2.5</version.clean.plugin>
18-
<version.compiler.plugin>3.1</version.compiler.plugin>
1917
<version.android.plugin>3.6.0</version.android.plugin>
2018

2119
<!-- platform or api level (api level 16 = platform 4.1) -->
2220
<maven.android.platform>16</maven.android.platform>
23-
24-
<!-- maven-compiler-plugin -->
25-
<maven.compiler.target>1.6</maven.compiler.target>
26-
<maven.compiler.source>1.6</maven.compiler.source>
2721
</properties>
2822

2923
<dependencies>
@@ -40,49 +34,32 @@
4034
<type>apklib</type>
4135
</dependency>
4236
</dependencies>
37+
4338
<build>
4439
<finalName>${project.artifactId}</finalName>
4540
<sourceDirectory>src</sourceDirectory>
41+
<testSourceDirectory>test</testSourceDirectory>
42+
<pluginManagement>
43+
<plugins>
44+
<plugin>
45+
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
46+
<artifactId>android-maven-plugin</artifactId>
47+
<version>${version.android.plugin}</version>
48+
<extensions>true</extensions>
49+
</plugin>
50+
</plugins>
51+
</pluginManagement>
4652
<plugins>
47-
<plugin>
48-
<groupId>org.apache.maven.plugins</groupId>
49-
<artifactId>maven-compiler-plugin</artifactId>
50-
<version>${version.compiler.plugin}</version>
51-
<configuration>
52-
<source>${maven.compiler.source}</source>
53-
<target>${maven.compiler.target}</target>
54-
</configuration>
55-
</plugin>
56-
<plugin>
57-
<groupId>org.apache.maven.plugins</groupId>
58-
<artifactId>maven-clean-plugin</artifactId>
59-
<version>${version.clean.plugin}</version>
60-
<configuration>
61-
<filesets>
62-
<fileset>
63-
<directory>${basedir}</directory>
64-
<includes>
65-
<include>bin/**</include>
66-
<include>gen/**</include>
67-
<include>gen-*/**</include>
68-
<include>out/**</include>
69-
</includes>
70-
</fileset>
71-
</filesets>
72-
</configuration>
73-
</plugin>
7453
<plugin>
7554
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
7655
<artifactId>android-maven-plugin</artifactId>
77-
<version>${version.android.plugin}</version>
78-
<extensions>true</extensions>
7956
<configuration>
8057
<sdk>
8158
<platform>${maven.android.platform}</platform>
8259
</sdk>
83-
<undeployBeforeDeploy>true</undeployBeforeDeploy>
8460
</configuration>
8561
</plugin>
8662
</plugins>
8763
</build>
64+
8865
</project>
204 Bytes
213 Bytes
199 Bytes
136 Bytes
205 Bytes
206 Bytes

res/drawable-hdpi/ic_launcher.png

10.1 KB
145 Bytes
133 Bytes
800 Bytes
139 Bytes
376 Bytes
568 Bytes
514 Bytes
101 Bytes
103 Bytes
156 Bytes
166 Bytes
166 Bytes
105 Bytes
164 Bytes
155 Bytes

res/drawable-mdpi/ic_launcher.png

5.59 KB
120 Bytes
126 Bytes
501 Bytes
126 Bytes
314 Bytes
407 Bytes
370 Bytes
97 Bytes
107 Bytes
264 Bytes
277 Bytes
256 Bytes
123 Bytes
269 Bytes

res/drawable-xhdpi/ic_launcher.png

16.5 KB
149 Bytes
134 Bytes
105 Bytes
116 Bytes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- File created by the Android Action Bar Style Generator
3+
4+
Copyright (C) 2012 readyState Software Ltd
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
19+
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
20+
android:src="@drawable/ab_texture_tile_gujavasc"
21+
android:tileMode="repeat" />
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- File created by the Android Action Bar Style Generator
3+
4+
Copyright (C) 2011 The Android Open Source Project
5+
Copyright (C) 2012 readyState Software Ltd
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
-->
19+
20+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
21+
<item android:state_pressed="true"
22+
android:drawable="@drawable/btn_cab_done_pressed_gujavasc" />
23+
<item android:state_focused="true" android:state_enabled="true"
24+
android:drawable="@drawable/btn_cab_done_focused_gujavasc" />
25+
<item android:state_enabled="true"
26+
android:drawable="@drawable/btn_cab_done_default_gujavasc" />
27+
</selector>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- File created by the Android Action Bar Style Generator
3+
4+
Copyright (C) 2011 The Android Open Source Project
5+
Copyright (C) 2012 readyState Software Ltd
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
-->
19+
20+
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
21+
<solid android:color="@color/pressed_gujavasc" />
22+
</shape>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- File created by the Android Action Bar Style Generator
3+
4+
Copyright (C) 2011 The Android Open Source Project
5+
Copyright (C) 2012 readyState Software Ltd
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
-->
19+
20+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
21+
22+
<item android:id="@android:id/background"
23+
android:drawable="@drawable/progress_bg_gujavasc" />
24+
25+
<item android:id="@android:id/secondaryProgress">
26+
<scale android:scaleWidth="100%"
27+
android:drawable="@drawable/progress_secondary_gujavasc" />
28+
</item>
29+
30+
<item android:id="@android:id/progress">
31+
<scale android:scaleWidth="100%"
32+
android:drawable="@drawable/progress_primary_gujavasc" />
33+
</item>
34+
35+
</layer-list>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- File created by the Android Action Bar Style Generator
3+
4+
Copyright (C) 2011 The Android Open Source Project
5+
Copyright (C) 2012 readyState Software Ltd
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
-->
19+
20+
<selector xmlns:android="http://schemas.android.com/apk/res/android"
21+
android:exitFadeDuration="@android:integer/config_mediumAnimTime" >
22+
<item android:state_pressed="false" android:state_focused="true" android:drawable="@drawable/list_focused_gujavasc" />
23+
<item android:state_pressed="true" android:drawable="@drawable/pressed_background_gujavasc" />
24+
<item android:drawable="@android:color/transparent" />
25+
</selector>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- File created by the Android Action Bar Style Generator
3+
4+
Copyright (C) 2011 The Android Open Source Project
5+
Copyright (C) 2012 readyState Software Ltd
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
-->
19+
20+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
21+
<item android:state_enabled="false"
22+
android:drawable="@drawable/spinner_ab_disabled_gujavasc" />
23+
<item android:state_pressed="true"
24+
android:drawable="@drawable/spinner_ab_pressed_gujavasc" />
25+
<item android:state_pressed="false" android:state_focused="true"
26+
android:drawable="@drawable/spinner_ab_focused_gujavasc" />
27+
<item android:drawable="@drawable/spinner_ab_default_gujavasc" />
28+
</selector>
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- File created by the Android Action Bar Style Generator
3+
4+
Copyright (C) 2011 The Android Open Source Project
5+
Copyright (C) 2012 readyState Software Ltd
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
-->
19+
20+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
21+
<!-- Non focused states -->
22+
<item android:state_focused="false" android:state_selected="false" android:state_pressed="false" android:drawable="@android:color/transparent" />
23+
<item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/tab_selected_gujavasc" />
24+
25+
<!-- Focused states -->
26+
<item android:state_focused="true" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/tab_unselected_focused_gujavasc" />
27+
<item android:state_focused="true" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/tab_selected_focused_gujavasc" />
28+
29+
<!-- Pressed -->
30+
<!-- Non focused states -->
31+
<item android:state_focused="false" android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/tab_unselected_pressed_gujavasc" />
32+
<item android:state_focused="false" android:state_selected="true" android:state_pressed="true" android:drawable="@drawable/tab_selected_pressed_gujavasc" />
33+
34+
<!-- Focused states -->
35+
<item android:state_focused="true" android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/tab_unselected_pressed_gujavasc" />
36+
<item android:state_focused="true" android:state_selected="true" android:state_pressed="true" android:drawable="@drawable/tab_selected_pressed_gujavasc" />
37+
</selector>

res/layout/activity_main.xml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:orientation="vertical"
4+
android:layout_width="fill_parent"
5+
android:layout_height="fill_parent">
6+
7+
<TextView
8+
android:layout_width="wrap_content"
9+
android:layout_height="wrap_content"
10+
android:text="@string/txt_which_event_looking_for"
11+
android:layout_gravity="center"
12+
android:layout_margin="12sp"/>
13+
14+
<EditText
15+
android:layout_width="fill_parent"
16+
android:layout_height="wrap_content"
17+
android:id="@+id/edit_text_what"
18+
android:layout_marginLeft="30sp"
19+
android:layout_marginRight="30sp"
20+
android:singleLine="true"
21+
android:editable="true"
22+
android:hint="@string/hint_example"/>
23+
24+
<Button
25+
android:layout_width="fill_parent"
26+
android:layout_height="wrap_content"
27+
android:layout_marginLeft="30sp"
28+
android:layout_marginRight="30sp"
29+
android:text="@string/txt_search"
30+
android:id="@+id/button_search"
31+
android:layout_marginTop="12sp"/>
32+
</LinearLayout>
33+

0 commit comments

Comments
 (0)