Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,422 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="gen"/> | ||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>Bankdroid</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#Sun May 02 21:44:53 CEST 2010 | ||
eclipse.preferences.version=1 | ||
org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.liato.bankdroid" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
<application android:icon="@drawable/icon" android:label="@string/app_name"> | ||
<activity android:label="@string/app_name" android:multiprocess="false" android:name=".MainActivity" android:alwaysRetainTaskState="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name=".AccountsActivity" | ||
android:label="@string/app_name"> | ||
</activity> | ||
<activity android:name=".AccountActivity" | ||
android:label="@string/app_name"> | ||
</activity> | ||
|
||
</application> | ||
<uses-sdk android:minSdkVersion="3" /> | ||
|
||
|
||
<uses-permission android:name="android.permission.INTERNET"></uses-permission> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This file is automatically generated by Android Tools. | ||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | ||
# | ||
# This file must be checked in Version Control Systems. | ||
# | ||
# To customize properties used by the Ant build system use, | ||
# "build.properties", and override values to adapt the script to your | ||
# project structure. | ||
|
||
# Indicates whether an apk should be generated for each density. | ||
split.density=false | ||
# Project target. | ||
target=android-3 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" android:paddingLeft="10dp" android:paddingRight="10dp" android:paddingTop="10dp"> | ||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" android:text="Personnummer" android:typeface="sans" android:textSize="20sp"/> | ||
|
||
<EditText android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/edtBankeditUsername" android:digits="0123456789-" android:inputType="phone"></EditText><TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" android:typeface="sans" android:textSize="20sp" android:text="Lösenord"/><EditText android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/edtBankeditPassword" android:inputType="textPassword"></EditText><TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:typeface="sans" android:textSize="20sp" android:text="Bank"/> | ||
|
||
|
||
<Spinner android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/spnBankeditBanklist"></Spinner><TableLayout android:id="@+id/TableLayout01" android:layout_width="fill_parent" android:stretchColumns="*" android:gravity="bottom" android:layout_height="fill_parent"> | ||
<TableRow android:id="@+id/TableRow01" android:layout_height="wrap_content" android:layout_width="fill_parent"> | ||
<Button android:layout_height="wrap_content" android:drawableLeft="@android:drawable/ic_menu_close_clear_cancel" android:layout_width="fill_parent" android:id="@+id/btnSettingsCancel" android:text="Avbryt"></Button> | ||
<Button android:layout_height="wrap_content" android:drawableLeft="@android:drawable/ic_menu_save" android:layout_width="fill_parent" android:id="@+id/btnSettingsOk" android:text="Spara"></Button> | ||
</TableRow> | ||
</TableLayout> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:tag="rv"><TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Du har inte lagt till någon bank ännu, tryck på knappen för att lägga till en bank." android:id="@+id/txtBanksDesc" android:visibility="visible" android:layout_margin="10dp" /><ListView android:layout_width="fill_parent" android:id="@+id/lstvBanksList" android:layout_height="fill_parent" android:fitsSystemWindows="true" android:layout_above="@+id/LinearLayout01"></ListView><LinearLayout android:id="@+id/LinearLayout01" android:gravity="bottom" android:layout_width="fill_parent" android:layout_weight="1" android:layout_height="wrap_content" android:layout_alignParentBottom="true"><Button android:id="@+id/btnBanksNewaccount" android:drawableLeft="@android:drawable/ic_menu_add" android:text="Lägg till ett nytt bankkonto" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_marginLeft="10dp" android:layout_marginRight="10dp"></Button></LinearLayout></RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:background="@drawable/title_bar_medium" android:layout_height="62dp" android:clickable="false" android:paddingBottom="5dp" android:paddingLeft="5dp" android:paddingTop="5dp" android:paddingRight="10dp"> | ||
|
||
<ImageView | ||
android:id="@+id/imgListitemAccountsGroup" | ||
|
||
android:layout_height="fill_parent" | ||
|
||
android:layout_alignParentTop="true" | ||
android:layout_alignParentBottom="true" | ||
android:layout_marginRight="2dp" | ||
|
||
android:src="@drawable/icon" android:layout_alignParentLeft="true" android:padding="0dp" android:layout_marginLeft="0dp" android:layout_width="48dp" android:maxHeight="48dp" android:maxWidth="48dp" android:minHeight="48dp" android:minWidth="48dp"/> | ||
|
||
<TextView | ||
android:id="@+id/txtListitemAccountsGroupBankname" | ||
|
||
android:layout_height="26dip" | ||
|
||
android:layout_toRightOf="@id/imgListitemAccountsGroup" | ||
android:layout_alignParentBottom="true" | ||
android:singleLine="true" | ||
android:ellipsize="marquee" | ||
android:gravity="center_vertical" android:text="Banknamn" android:textColor="#000" android:layout_width="wrap_content" android:layout_alignParentRight="false"/> | ||
|
||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
|
||
android:layout_toRightOf="@id/imgListitemAccountsGroup" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentTop="true" | ||
android:layout_above="@id/txtListitemAccountsGroupBankname" | ||
android:layout_alignWithParentIfMissing="true" | ||
|
||
android:gravity="center_vertical" | ||
android:id="@+id/txtListitemAccountsGroupAccountname" android:textSize="23sp" android:text="Personnummer" android:textColor="#000"/> | ||
<TextView | ||
android:id="@+id/txtListitemAccountsGroupTotal" | ||
android:layout_height="26dip" | ||
android:layout_alignParentBottom="true" | ||
android:singleLine="true" | ||
android:ellipsize="marquee" | ||
android:gravity="center_vertical" android:text="00000 SEK" android:layout_width="wrap_content" android:layout_alignParentRight="true" android:textColor="#333"/> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:background="#000" android:layout_height="35dp" android:layout_gravity="center_horizontal" android:paddingLeft="15dp" android:paddingRight="10dp"> | ||
|
||
<TextView | ||
android:layout_alignParentBottom="true" | ||
android:ellipsize="marquee" | ||
android:gravity="center_vertical" android:layout_width="wrap_content" android:layout_alignParentRight="false" android:textColor="#fff" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:id="@+id/txtListitemAccountsItemAccountname" android:inputType="none" android:text="Kontonamn" android:textStyle="bold" android:layout_height="fill_parent"/> | ||
|
||
|
||
<TextView | ||
android:layout_alignParentBottom="true" | ||
android:ellipsize="marquee" | ||
android:text="00000 SEK" android:layout_width="wrap_content" android:layout_alignParentRight="true" android:textColor="#fff" android:layout_alignParentTop="true" android:id="@+id/txtListitemAccountsItemBalance" android:inputType="none" android:layout_toRightOf="@+id/txtListitemAccountsItemAccountname" android:gravity="right|center_vertical" android:layout_height="fill_parent"/> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="?android:attr/listPreferredItemHeight" android:paddingBottom="5dp" android:paddingTop="5dp"> | ||
|
||
<ImageView | ||
android:id="@+id/imgListitemBanks" | ||
|
||
android:layout_width="wrap_content" | ||
android:layout_height="fill_parent" | ||
|
||
android:layout_alignParentTop="true" | ||
android:layout_alignParentBottom="true" | ||
android:layout_marginRight="2dp" | ||
|
||
android:src="@drawable/icon" android:maxHeight="32dp" android:maxWidth="32dp"/> | ||
|
||
<TextView | ||
android:id="@+id/txtListitemBankname" | ||
|
||
android:layout_width="fill_parent" | ||
android:layout_height="26dip" | ||
|
||
android:layout_toRightOf="@id/imgListitemBanks" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentRight="true" | ||
|
||
android:singleLine="true" | ||
android:ellipsize="marquee" | ||
android:gravity="center_vertical" android:text="Banknamn"/> | ||
|
||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
|
||
android:layout_toRightOf="@id/imgListitemBanks" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentTop="true" | ||
android:layout_above="@id/txtListitemBankname" | ||
android:layout_alignWithParentIfMissing="true" | ||
|
||
android:gravity="center_vertical" | ||
android:id="@+id/txtListitemAccountname" android:textSize="23sp" android:text="Personnummer"/> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/RelativeLayout01" | ||
android:layout_width="wrap_content" | ||
android:layout_height="fill_parent"> | ||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Du har inte lagt till någon bank ännu, gå till menyn och tryck på konton för att lägga till ett nytt bankkonto." | ||
android:id="@+id/txtAccountsDesc" | ||
android:visibility="visible" | ||
android:layout_margin="10dp" /> | ||
<ListView | ||
android:layout_width="fill_parent" | ||
android:id="@+id/lstAccountsList" | ||
android:layout_height="fill_parent" | ||
android:fitsSystemWindows="true" | ||
android:layout_above="@+id/LinearLayout02" /> | ||
<LinearLayout | ||
android:id="@+id/LinearLayout02" | ||
android:gravity="bottom" android:layout_width="fill_parent" | ||
android:layout_weight="1" android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true"> | ||
<Button | ||
android:drawableLeft="@android:drawable/ic_menu_rotate" | ||
android:text="Uppdatera saldoinformation" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="bottom" | ||
android:id="@+id/btnAccountsRefresh" android:visibility="gone"/> | ||
</LinearLayout> | ||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<menu xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:id="@+id/accounts" android:title="Konton" android:icon="@android:drawable/ic_menu_agenda"/> | ||
<item android:id="@+id/settings" android:title="Inställningar" android:icon="@android:drawable/ic_menu_preferences"/> | ||
<item android:id="@+id/about" android:title="Om" android:icon="@android:drawable/ic_menu_info_details" /> | ||
<item android:id="@+id/exit" android:title="Avsluta" android:icon="@android:drawable/ic_menu_close_clear_cancel" /> | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="hello">Hello World, main!</string> | ||
<string name="app_name">Bankdroid</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.liato.bankdroid; | ||
|
||
import java.math.BigDecimal; | ||
|
||
public class Account { | ||
private String name; | ||
private BigDecimal balance; | ||
|
||
public Account(String name, BigDecimal balance) { | ||
this.name = name; | ||
this.balance = balance; | ||
} | ||
|
||
public void setBalance(BigDecimal balance) { | ||
this.balance = balance; | ||
} | ||
|
||
public BigDecimal getBalance() { | ||
return balance; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
} |
Oops, something went wrong.