Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 28 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 18 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,28 @@ android {
}
}
}

repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support:design:25.2.0'
compile 'com.google.android.gms:play-services-auth:10.2.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.google.firebase:firebase-auth:10.2.0'
compile 'com.android.support:support-v4:25.2.0'
compile 'com.android.support:cardview-v7:25.2.0'
compile 'com.getbase:floatingactionbutton:1.10.1'
compile 'com.google.android.gms:play-services-maps:10.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:recyclerview-v7:25.2.0'
compile 'com.github.PhilJay:MPAndroidChart:v2.2.4'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
55 changes: 55 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"project_info": {
"project_number": "631867473063",
"firebase_url": "https://smartbudget-71d08.firebaseio.com",
"project_id": "smartbudget-71d08",
"storage_bucket": "smartbudget-71d08.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:631867473063:android:b67b1d269b5c818f",
"android_client_info": {
"package_name": "com.example.kenneth.smartbudget"
}
},
"oauth_client": [
{
"client_id": "631867473063-kipb7r1pgn53erktjomjgr6nev0cuvsp.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.example.kenneth.smartbudget",
"certificate_hash": "72bdcd44688b8e2af1f17d0044c3c1850eff0f3c"
}
},
{
"client_id": "631867473063-ua0m2qtq2gvhrl0fl5lc4omjj2ct320s.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAeGouVnxTcF-57_Q44b4p5eaaXZCk0eXY"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "631867473063-ua0m2qtq2gvhrl0fl5lc4omjj2ct320s.apps.googleusercontent.com",
"client_type": 3
}
]
},
"ads_service": {
"status": 2
}
}
}
],
"configuration_version": "1"
}
Binary file added app/libs/YouTubeAndroidPlayerApi.jar
Binary file not shown.
26 changes: 26 additions & 0 deletions app/src/debug/res/values/google_maps_api.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<resources>
<!--
TODO: Before you run your application, you need a Google Maps API key.

To get one, follow this link, follow the directions and press "Create" at the end:

https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=EA:53:37:E7:18:B2:39:55:13:FB:19:26:92:94:30:DB:6E:69:DD:2D%3Bcom.example.kenneth.smartbudget

You can also add your credentials to an existing key, using these values:

Package name:
EA:53:37:E7:18:B2:39:55:13:FB:19:26:92:94:30:DB:6E:69:DD:2D

SHA-1 certificate fingerprint:
EA:53:37:E7:18:B2:39:55:13:FB:19:26:92:94:30:DB:6E:69:DD:2D

Alternatively, follow the directions here:
https://developers.google.com/maps/documentation/android/start#get-key

Once you have your key (it starts with "AIza"), replace the "google_maps_key"
string in this file.
-->
<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">
AIzaSyDVD7AdXiMHT5oAi7VgiowUnli2uKQnfLI
</string>
</resources>
42 changes: 41 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,59 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.kenneth.smartbudget">

<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name=".LoginActivity" />
<activity
android:name=".DashBoardActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".SignUpActivity"
android:label="@string/title_activity_sign_up" />
<activity android:name=".SplashScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ConfiguracionActivity"
android:label="Configuración"
android:parentActivityName=".DashBoardActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".DashBoardActivity" />
</activity>
<!--
The API key for Google Maps-based APIs is defined as a string resource.
(See the file "res/values/google_maps_api.xml").
Note that the API key is linked to the encryption key used to sign the APK.
You need a different API key for each encryption key, including the release key that is used to
sign the APK for publishing.
You can define the keys for the debug and release targets in src/debug/ and src/release/.
-->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />

<activity
android:name=".MapsActivity"
android:label="@string/title_activity_maps" />
<activity android:name=".DetalleActivity"></activity>
</application>

</manifest>
Binary file added app/src/main/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.example.kenneth.smartbudget;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


public class AhorrosFragment extends Fragment {
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_ahorros, container, false);
}

@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
getActivity().setTitle("Ahorros");
}
}
102 changes: 102 additions & 0 deletions app/src/main/java/com/example/kenneth/smartbudget/ConfigFragment.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
package com.example.kenneth.smartbudget;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;


public class ConfigFragment extends Fragment {

ListView listView;

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_config, container, false);
}

Integer[] imageIDs = {
R.drawable.ic_notifications,
R.drawable.ic_account
};

String[] titles = {
"Notificaciones",
"Cuenta"
};


@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
getActivity().setTitle("Configuración");

listView = (ListView) getActivity().findViewById(R.id.listview_config);
final Adaptador adaptador = new Adaptador();
listView.setAdapter(adaptador);

listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {

@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {

switch (position) {
case 0:
Intent intent = new Intent(getActivity(), NotificationsActivity.class);
startActivity(intent);
break;
case 1:
Intent intent2 = new Intent(getActivity(), ProfileActivity.class);
startActivity(intent2);
break;

default:
break;
}

}

});
}

class Adaptador extends BaseAdapter {

@Override
public int getCount() {
return imageIDs.length;
}

@Override
public Object getItem(int position) {
return null;
}

@Override
public long getItemId(int position) {
return 0;
}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
convertView = getActivity().getLayoutInflater().inflate(R.layout.content_list_config, null);
TextView title_config = (TextView) convertView.findViewById(R.id.txt_config);
ImageView image_config = (ImageView) convertView.findViewById(R.id.image_config);
title_config.setText(titles[position]);
image_config.setImageResource(imageIDs[position]);


return convertView;
}


}
}
Loading