Skip to content

Commit f3826fe

Browse files
committed
Added res/ and src/ directories.
1 parent 806f280 commit f3826fe

15 files changed

+639
-0
lines changed

AndroidManifest.xml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.craigsc.gthive"
4+
android:versionCode="2"
5+
android:versionName="1.1">
6+
<application
7+
android:icon="@drawable/icon"
8+
android:label="@string/app_name" >
9+
10+
<activity android:name=".GTHive"
11+
android:label="@string/app_name"
12+
android:configChanges="keyboardHidden|orientation">
13+
<intent-filter>
14+
<action android:name="android.intent.action.MAIN" />
15+
<category android:name="android.intent.category.LAUNCHER" />
16+
</intent-filter>
17+
</activity>
18+
<activity android:name=".Prefs"
19+
android:label="@string/settings_label" >
20+
</activity>
21+
<activity android:name=".Web"
22+
android:label="@string/web_label" >
23+
</activity>
24+
25+
</application>
26+
<uses-sdk android:minSdkVersion="2"/>
27+
<uses-permission android:name="android.permission.INTERNET"/>
28+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
29+
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
30+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
31+
<uses-permission android:name="android.permission.WAKE_LOCK"/>
32+
</manifest>

default.properties

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system use,
7+
# "build.properties", and override values to adapt the script to your
8+
# project structure.
9+
10+
# Indicates whether an apk should be generated for each density.
11+
split.density=false
12+
# Project target.
13+
target=android-3

res/drawable/icon.png

5.39 KB
Loading

res/drawable/stadiumsmall.png

279 KB
Loading

res/drawable/title2.png

6.95 KB
Loading

res/layout-land/main.xml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:id="@+id/background"
4+
android:orientation="vertical"
5+
android:layout_width="fill_parent"
6+
android:layout_height="fill_parent"
7+
android:paddingLeft="20dp"
8+
android:paddingRight="20dp">
9+
<LinearLayout
10+
android:layout_width="0dp"
11+
android:layout_height="0dp"
12+
android:focusable="true"
13+
android:focusableInTouchMode="true" />
14+
<ImageView
15+
android:layout_width="wrap_content"
16+
android:layout_height="wrap_content"
17+
android:src="@drawable/title2"
18+
android:padding="20dp"
19+
android:layout_gravity="center_horizontal" />
20+
21+
<EditText
22+
android:id="@+id/username"
23+
android:layout_width="fill_parent"
24+
android:layout_height="wrap_content"
25+
android:singleLine="true"
26+
android:nextFocusUp="@id/username"
27+
android:hint="Username" />
28+
29+
<EditText
30+
android:id="@+id/password"
31+
android:layout_width="fill_parent"
32+
android:layout_height="wrap_content"
33+
android:singleLine="true"
34+
android:password="true"
35+
android:hint="Password" />
36+
37+
<LinearLayout
38+
android:layout_width="fill_parent"
39+
android:layout_height="wrap_content"
40+
android:paddingLeft="30dp"
41+
android:paddingRight="30dp"
42+
android:paddingTop="20dp" >
43+
<Button
44+
android:id="@+id/login"
45+
android:text="Login"
46+
android:layout_width="fill_parent"
47+
android:layout_height="wrap_content"/>
48+
</LinearLayout>
49+
50+
</LinearLayout>

res/layout/main.xml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:id="@+id/background"
4+
android:orientation="vertical"
5+
android:layout_width="fill_parent"
6+
android:layout_height="fill_parent"
7+
android:paddingLeft="20dp"
8+
android:paddingRight="20dp"
9+
android:background="@drawable/stadiumsmall">
10+
<LinearLayout
11+
android:layout_width="0dp"
12+
android:layout_height="0dp"
13+
android:focusable="true"
14+
android:focusableInTouchMode="true" />
15+
<ImageView
16+
android:layout_width="wrap_content"
17+
android:layout_height="wrap_content"
18+
android:src="@drawable/title2"
19+
android:padding="20dp"
20+
android:layout_gravity="center_horizontal" />
21+
22+
<EditText
23+
android:id="@+id/username"
24+
android:layout_width="fill_parent"
25+
android:layout_height="wrap_content"
26+
android:singleLine="true"
27+
android:nextFocusUp="@id/username"
28+
android:hint="Username" />
29+
30+
<EditText
31+
android:id="@+id/password"
32+
android:layout_width="fill_parent"
33+
android:layout_height="wrap_content"
34+
android:singleLine="true"
35+
android:password="true"
36+
android:hint="Password" />
37+
38+
<LinearLayout
39+
android:layout_width="fill_parent"
40+
android:layout_height="wrap_content"
41+
android:paddingLeft="30dp"
42+
android:paddingRight="30dp"
43+
android:paddingTop="20dp" >
44+
<Button
45+
android:id="@+id/login"
46+
android:text="Login"
47+
android:layout_width="fill_parent"
48+
android:layout_height="wrap_content"/>
49+
</LinearLayout>
50+
51+
</LinearLayout>

res/layout/notification.xml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent"
4+
android:layout_height="fill_parent"
5+
android:id="@+id/layout_root"
6+
android:padding="10dp">
7+
8+
<TextView android:id="@+id/notification_text"
9+
android:layout_width="wrap_content"
10+
android:layout_height="wrap_content"
11+
android:textColor="#FFF"
12+
android:textSize="15dp"/>
13+
14+
</LinearLayout>

res/layout/web.xml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:layout_width="fill_parent"
5+
android:layout_height="fill_parent">
6+
<WebView
7+
android:id="@+id/webview"
8+
android:layout_width="fill_parent"
9+
android:layout_height="fill_parent" />
10+
</LinearLayout>

res/menu/menu.xml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<menu xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item
4+
android:id="@+id/email"
5+
android:icon="@android:drawable/ic_menu_send"
6+
android:title="Email"
7+
android:alphabeticShortcut="e"/>
8+
<item
9+
android:id="@+id/settings"
10+
android:icon="@android:drawable/ic_menu_preferences"
11+
android:title="Settings"
12+
android:alphabeticShortcut="s"/>
13+
<item
14+
android:id="@+id/quit"
15+
android:icon="@android:drawable/ic_menu_close_clear_cancel"
16+
android:title="Quit"
17+
android:alphabeticShortcut="q" />
18+
</menu>

res/values/strings.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="hello">Hello World, GTHive!</string>
4+
<string name="app_name">GTHive</string>
5+
<string name="settings_label">GTHive Settings</string>
6+
<string name="web_label">Web</string>
7+
</resources>

res/xml/settings.xml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
3+
<PreferenceCategory
4+
android:title="Login Settings">
5+
<CheckBoxPreference
6+
android:key="iss"
7+
android:title="Enable ISS"
8+
android:summary="Enable the inbound security service."
9+
android:defaultValue="true"/>
10+
<CheckBoxPreference
11+
android:key="wifi"
12+
android:title="Auto-Enable Wifi"
13+
android:summary="Automatically enable wifi when needed."
14+
android:defaultValue="false"/>
15+
</PreferenceCategory>
16+
17+
<PreferenceCategory
18+
android:title="Security Settings">
19+
<CheckBoxPreference
20+
android:key="remember_login"
21+
android:title="Remember me"
22+
android:summary="Save username and password."
23+
android:defaultValue="true" />
24+
<Preference
25+
android:key="clear_data"
26+
android:title="Clear login data"
27+
android:summary="Clear the saved username and password." />
28+
</PreferenceCategory>
29+
</PreferenceScreen>

0 commit comments

Comments
 (0)