Skip to content

Commit 0a520f7

Browse files
committed
Imported to eclipse
1 parent 2c57f23 commit 0a520f7

24 files changed

+263
-0
lines changed

.settings/org.eclipse.jdt.core.prefs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.6
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11+
org.eclipse.jdt.core.compiler.source=1.6

AndroidManifest.xml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.example.paymeback"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="17" />
10+
11+
<application
12+
android:allowBackup="true"
13+
android:icon="@drawable/ic_launcher"
14+
android:label="@string/app_name"
15+
android:theme="@style/AppTheme" >
16+
<activity
17+
android:name="com.example.paymeback.MainActivity"
18+
android:label="@string/app_name" >
19+
<intent-filter>
20+
<action android:name="android.intent.action.MAIN" />
21+
22+
<category android:name="android.intent.category.LAUNCHER" />
23+
</intent-filter>
24+
</activity>
25+
</application>
26+
27+
</manifest>

ic_launcher-web.png

54.4 KB
Loading

libs/android-support-v4.jar

377 KB
Binary file not shown.

proguard-project.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# To enable ProGuard in your project, edit project.properties
2+
# to define the proguard.config property as described in that file.
3+
#
4+
# Add project specific ProGuard rules here.
5+
# By default, the flags in this file are appended to flags specified
6+
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7+
# You can edit the include path and order by changing the ProGuard
8+
# include property in project.properties.
9+
#
10+
# For more details, see
11+
# http://developer.android.com/guide/developing/tools/proguard.html
12+
13+
# Add any project specific keep options here:
14+
15+
# If your project uses WebView with JS, uncomment the following
16+
# and specify the fully qualified class name to the JavaScript interface
17+
# class:
18+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19+
# public *;
20+
#}

project.properties

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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 edit
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
#
10+
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11+
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12+
13+
# Project target.
14+
target=android-17
15+
android.library.reference.1=../gridlayout_v7
16+
android.library.reference.2=../gridlayout_v7

res/drawable-hdpi/ic_launcher.png

8.02 KB
Loading

res/drawable-ldpi/ic_launcher.png

2.5 KB
Loading

res/drawable-mdpi/ic_launcher.png

3.97 KB
Loading

res/drawable-xhdpi/group.png

51.6 KB
Loading

res/drawable-xhdpi/history.png

27.1 KB
Loading

res/drawable-xhdpi/ic_launcher.png

13.2 KB
Loading

res/drawable-xhdpi/loan.png

42.8 KB
Loading

res/drawable-xhdpi/tutorial.png

40.8 KB
Loading

res/layout/activity_main.xml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<android.support.v7.widget.GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
xmlns:app="http://schemas.android.com/apk/res/com.example.paymeback"
4+
android:layout_width="match_parent"
5+
android:layout_height="match_parent"
6+
app:columnCount="2"
7+
tools:context=".MainActivity" >
8+
9+
<android.support.v7.widget.Space
10+
android:id="@+id/space1"
11+
android:layout_width="wrap_content"
12+
android:layout_height="wrap_content" />
13+
14+
<android.support.v7.widget.Space
15+
android:id="@+id/space2"
16+
android:layout_width="wrap_content"
17+
android:layout_height="wrap_content" />
18+
19+
<ImageButton
20+
android:id="@+id/new_loan"
21+
android:layout_width="wrap_content"
22+
android:layout_height="wrap_content"
23+
app:layout_column="1"
24+
app:layout_row="0"
25+
android:src="@drawable/loan" />
26+
27+
<ImageButton
28+
android:id="@+id/tutorial"
29+
android:layout_width="wrap_content"
30+
android:layout_height="wrap_content"
31+
app:layout_column="1"
32+
app:layout_row="1"
33+
android:src="@drawable/tutorial" />
34+
35+
<ImageButton
36+
android:id="@+id/groups"
37+
android:layout_width="wrap_content"
38+
android:layout_height="wrap_content"
39+
app:layout_column="0"
40+
app:layout_row="1"
41+
android:src="@drawable/group" />
42+
43+
<ImageButton
44+
android:id="@+id/history"
45+
android:layout_width="wrap_content"
46+
android:layout_height="wrap_content"
47+
app:layout_column="0"
48+
app:layout_row="0"
49+
android:src="@drawable/history" />
50+
51+
</android.support.v7.widget.GridLayout>

res/layout/activity_newloan.xml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent" >
5+
6+
<Button
7+
android:id="@+id/button1"
8+
android:layout_width="wrap_content"
9+
android:layout_height="wrap_content"
10+
android:layout_x="57dp"
11+
android:layout_y="72dp"
12+
android:text="Button" />
13+
14+
</AbsoluteLayout>

res/layout/test.xml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<android.support.v7.widget.GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res/com.example.paymeback"
4+
android:layout_width="wrap_content"
5+
android:layout_height="match_parent"
6+
app:columnCount="2"
7+
app:orientation="vertical" >
8+
9+
<android.support.v7.widget.Space
10+
android:id="@+id/space1"
11+
android:layout_width="1dp"
12+
android:layout_height="15dp" />
13+
14+
<android.support.v7.widget.Space
15+
android:id="@+id/space2"
16+
android:layout_width="1dp"
17+
android:layout_height="15dp" />
18+
19+
</android.support.v7.widget.GridLayout>

res/menu/activity_main.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
2+
3+
<item
4+
android:id="@+id/menu_settings"
5+
android:orderInCategory="100"
6+
android:showAsAction="never"
7+
android:title="@string/menu_settings"/>
8+
9+
</menu>

res/values-v11/styles.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme for API 11+. This theme completely replaces
5+
AppBaseTheme from res/values/styles.xml on API 11+ devices.
6+
-->
7+
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
8+
<!-- API 11 theme customizations can go here. -->
9+
</style>
10+
11+
</resources>

res/values-v14/styles.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme for API 14+. This theme completely replaces
5+
AppBaseTheme from BOTH res/values/styles.xml and
6+
res/values-v11/styles.xml on API 14+ devices.
7+
-->
8+
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
9+
<!-- API 14 theme customizations can go here. -->
10+
</style>
11+
12+
</resources>

res/values/strings.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<string name="app_name">payMeBack</string>
5+
<string name="hello_world">Hello world!</string>
6+
<string name="menu_settings">Settings</string>
7+
<string name="History">History</string>
8+
9+
</resources>

res/values/styles.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme, dependent on API level. This theme is replaced
5+
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
6+
-->
7+
<style name="AppBaseTheme" parent="android:Theme.Light">
8+
<!--
9+
Theme customizations available in newer API levels can go in
10+
res/values-vXX/styles.xml, while customizations related to
11+
backward-compatibility can go here.
12+
-->
13+
</style>
14+
15+
<!-- Application theme. -->
16+
<style name="AppTheme" parent="AppBaseTheme">
17+
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
18+
</style>
19+
20+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.example.paymeback;
2+
3+
import android.os.Bundle;
4+
import android.app.Activity;
5+
import android.view.Menu;
6+
7+
public class MainActivity extends Activity {
8+
9+
@Override
10+
protected void onCreate(Bundle savedInstanceState) {
11+
super.onCreate(savedInstanceState);
12+
setContentView(R.layout.activity_main);
13+
}
14+
15+
@Override
16+
public boolean onCreateOptionsMenu(Menu menu) {
17+
// Inflate the menu; this adds items to the action bar if it is present.
18+
getMenuInflater().inflate(R.menu.activity_main, menu);
19+
return true;
20+
}
21+
22+
}
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.example.paymeback;
2+
3+
import android.os.Bundle;
4+
import android.app.Activity;
5+
import android.view.Menu;
6+
7+
public class NewLoan extends Activity {
8+
9+
@Override
10+
protected void onCreate(Bundle savedInstanceState) {
11+
super.onCreate(savedInstanceState);
12+
setContentView(R.layout.activity_main);
13+
}
14+
15+
@Override
16+
public boolean onCreateOptionsMenu(Menu menu) {
17+
// Inflate the menu; this adds items to the action bar if it is present.
18+
getMenuInflater().inflate(R.menu.activity_main, menu);
19+
return true;
20+
}
21+
22+
}

0 commit comments

Comments
 (0)