zhanhui913 / budget Goto Github PK
View Code? Open in Web Editor NEWAndroid budgeting app
Android budgeting app
Adding new account should bring the user to another page with a list of circularview with colors only.
Similar to category but without the icon selection.
This makes the editing of transaction, category, and account to have similar UI.
Also remove the random color assigned to the account.
Add new category,
re-order its position.
come back and its position remains the same.
Make it so that any transactions in the future will be gray out, and that the user can approve it and it will be like any other transactions {PAST, FUTURE} enum maybe.
Adding a transaction in the year before makes the transaction scheduled instead of complete.
Mix of completed and scheduled transactions in list of transactions for a category for a month have the schedule's transaction's circular view's stroke a bit uneven.
For both category percentage list and the percent view drawing.
colorCategoryGridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
for (int i = 0; i < parent.getChildCount(); i++) {
View childView = parent.getChildAt(i);
CircularView ccv = (CircularView) (childView.findViewById(R.id.categoryIcon));
ccv.setStrokeColor(R.color.transparent);
if (i == position) {
ccv.setStrokeColor(R.color.darkgray);
}
}
mListener.onColorCategoryClick(colorList.get(position));
mListener.onColorCategoryClickIndex(position);
}
});
Position value will change when scrolling and top row is hidden
When swiping open, should disable long press mode to re-order. otherwise re-enable ordering.
Pressing 0 button many times, you wont see any changes, but the moment you press back button you see it.
Theres an online api called fixer.io
Maybe use this.
Also when starting app for first time, we should ask what currency the user wants to use.
Need to find all references of realm and close it before deleting.
PieChartFragment current have 3 different methods of handling its data (cost & amount).
Refactor it to have 3 classes use interface so that PieChartFragment only needs 1 function for all classes with that interface.
Decorators becomes invisible when your go to different Fragment and then come back.
can't add more than 1 event per day, need to change.
Allow change of name for locations, that when change will change all transaction's location property with the same name.
Change it to match the current month its displaying the data for.
The list in those views still display SCHEDULED transactions.
Code to ask users for permissions to create backup files.
Probably caused by scroll view.
After updating a category, and you click save; it bugs out (where category color and icon is 0)
12 17:31:34.927 23218-23218/com.zhan.budget I/ZHAN: ----------- onActivityResult ----------
02-12 17:31:34.927 23218-23218/com.zhan.budget D/ZHAN: category name is Dinner
02-12 17:31:34.927 23218-23218/com.zhan.budget D/ZHAN: category color is 0
02-12 17:31:34.927 23218-23218/com.zhan.budget D/ZHAN: category icon is 0
02-12 17:31:34.927 23218-23218/com.zhan.budget D/ZHAN: category budget is -200.0
02-12 17:31:34.927 23218-23218/com.zhan.budget I/ZHAN: ----------- onActivityResult ----------
02-12 17:31:34.927 23218-23218/com.zhan.budget I/ZHAN: eddited index :2
02-12 17:31:35.057 23218-23218/com.zhan.budget W/ResourceType: No package identifier when getting value for resource number 0x00000000
02-12 17:31:35.077 23218-23218/com.zhan.budget E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.zhan.budget, PID: 23218
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:1245)
at android.content.res.Resources.getColor(Resources.java:899)
at android.support.v4.content.ContextCompat.getColor(ContextCompat.java:368)
at com.zhan.circularview.CircularView.setCircleColor(CircularView.java:219)
at com.zhan.budget.Adapter.CategoryListAdapter.getView(CategoryListAdapter.java:154)
at android.widget.AbsListView.obtainView(AbsListView.java:2467)
at android.widget.ListView.makeAndAddView(ListView.java:1864)
Steps to replicate bug
Select a date to add transaction
When putting info for transaction, change date
Click save, the calendar should change the date to the updated date. not the original date
Got to fix scheduled transactions events in calendar view, sometimes it doesnt appear.
1857
Switching to 2015 or 2017 and clicking on any month will always yield that month's and 2016's results.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.