-
Notifications
You must be signed in to change notification settings - Fork 17
/
Todo_for_Calc_App.txt
156 lines (142 loc) · 9.25 KB
/
Todo_for_Calc_App.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
------------------ToDo Next--------------------
- currency sync icon:
https://static.ivanti.com/sites/marketing/media/images/solutions/cloud-service/cloud-service_block2-icon3.svg?ext=.svg
- add fortnight
- add km/min
- bug, back out of app, come back in and type single character, result preview size is wrong
- bug, click currency, leave app, come back, selected currency's text has no color
- https://forums.xamarin.com/discussion/51142/error-inflating-class-android-support-design-widget-tablayout
- hacker news
- oi site
- Nav drawer:
Settings:
- Unit Settings
- Unit Types Shown
- Add Custom Units
- Calculator Settings
- Solve precision
- Default button chooses
- Appearance Settings
- Font size?
- light/dark theme
- lock portrait
- currencies should be caps
- instant result preview clips onto next line now, make text dynamic sized?
- Fix long press on Edittext http://stackoverflow.com/questions/14169040/enable-disable-actionbar-menu-item
- http://fedepaol.github.io/blog/2014/09/01/dragging-with-viewdraghelper/
https://github.com/android/platform_frameworks_support/blob/master/v4/java/android/support/v4/view/ViewPager.java
- Make long press C open dialog asking for clear history
- hit same unit twice from empty should not be 1, should just be nothing
- Shrink app size https://developer.android.com/studio/build/shrink-code.html
- Add 0.1 to 12,345,678 yields 12,345,678. -> this isn't a bug, we just have 8 sig figs. might want to increase this though? or go sci not one digit earlier
- add llama to all conversations
- add kegs
- Custom units
- Add Ethereum currency? https://coinmarketcap-nexuist.rhcloud.com/api/all
- bug when you scroll up to the top of the result list and close app, sometimes crashes
with "Fragment s not currently in the FragmentManager"
- Tap preview copy's to clipboard; hold press...has options to disable it? idk
- Double tap on the 15 of 15E-19 should just select 15 (not 15E) and double tapping on -19 should grab the - sign and not just 19
- Bug: type 1E1000 long press equals freezes; limit plain number digits
- Look into adding app theme engine https://github.com/afollestad/app-theme-engine
- Save state (or really just result list) after every equals
- fix for LTL to EUR (and other obsoleted currencies)
As for the price of LTL, you are correct. I'm using Yahoo's prices, who look like they do the conversion wrong, as does google. What's going on here is the value of LTL that I'm using from Yahoo is dollars to LTL on June 22, 2015 (not sure why it has that date). But when you convert dollars to EUR using the current conversion rate of ~.906 instead of that from June 22, 2015 of ~.88, you get ~3.36 instead of 3.45280. I'll look into adding a fix to this (probably the same thing is occurring for other obsoleted currencies).
- Curr search function
- Should perhaps standardized date styling using pure HTML (instead of extra textView)
- When doing regular currency to historical, should change to year date code (instead of day or hour)
- Should use API update historical USD to today's USD
- hold 0 to add three 0s
-Add rpm and rad/sec
- Hold unit to "Clear" it and move it to more menu
- Once a unit in the more list has been used, move it to the top of the list of "More"
- Another collection of currencies http://coinmill.com/sources.html
- 2015 Historical (grab latest CPI numbers)
- Click equals again for sci notation - when going back into reg, grab more accurate version (store it in a precise BigDecimal
- getting occasional null pointer from "getListView().getPositionForView((View)view.getParent());" in ResultListFrag
- Error from getListView().setSelection(getListAdapter().getCount()-1); content view not created yet
- When currency update, toast
- Make secondary buttons text change to black when clicked
- Think about adding a graphic for shrinking unit keys
- Make convert summary text view's font size slightly dynamic
- Add square root
http://stackoverflow.com/questions/1309629/how-to-change-colors-of-a-drawable-in-android
-----Stuff to Test (squashed bugs, etc)-----
- hit decimal and then equals
- Type 4*5 then add - after 4, enter; then do 1+1
- Empty expression, tap previous result with different unit type than curr, adds a one
- Test min/mile to mph and back again
- Reset then hit num and then unit, unit doesn't appear
- Make sure tapping "Convert" doesn't select text or break, also try entering text after that
- Dialog boxes for first unit conversion
- When syntax error thrown make sure unit is not displayed, aka not "Syntax Error in"
- 1E99999 should just throw number too large error
- Select input it in weight, hit back, come back, still selected.
- Select key at left and right most convkeys and swipe away, make sure key is not selected any more
- Select key at left+1 and right-1 convkey pos and move to left and right respectively, make sure no key is selected
- Hold click empty expression brings up menu (dunno how to test this...)
- Hold click full expression selects all text and brings up menu
- When app is closed (or whatever backspace does) make sure UnitType pos and Unit selection are preserved
- When unit type is switched, set cursor pos to end
- Be sure convert that are empty don't break things
- Hold click on empty expression should pop up paste dialog (maybe clicking or down press brings up cursor?)
- Check all unit values
- ResultList has a max size
- Catch JSON read errors and do a reset calc
- When clicking result with unit not visible, unit doesn't stay selected
----------------------Fix----------------------
---- TRY TO ADD UNIT TESTING FOR ALL PROBLEMS FIXED -----
- Convert unit to another, tap expression, adds convert to
- After long press unit switch, select unit
- Type "54+43)" and delete auto close para --> syntax error
- Screen rotation clears unit
- For every solve or unit convert, save app state
- Font size issues with large text sizes (also run the emulator for a few diff size screens and resolutions.
- When prev expression exists, operators should take last expression it back instead of doing nothing even when current expression is empty
- Black flash seems to happen after clear operation?
- Construct results out of expressions such that 1/3, then delete, then recall 0.33333*3 == 1
- "Converting inches to feet" bug still there; do unit coverts, back, then open app again
- (fixed?) If its been a while since open, app crashes
- Reduce redundant case checking before an big number addition/subtraction
- Backspace drawable selected turns white instead of dark
- Single character vs multi character results are treated differently when clicked with Unit
- Use of AndroidManifest file to change styles seems crude, investigate this
- Perhaps selection access should be revisited--should it be initiated from the model side or the controller side?
-------------------Features----------------------
- Maybe add a [Exact] or [Approx] to each conversion
- Add check/click results functionality to ConsoleTester
- Add sqrt
- Add fractional mode
- Tap equals after solve for scientific notation (hold equals for sci notation preferences)?
- Add preferences
- Make "Convert milimeters to..." blink or something cool
- Make arrows in a circle instead of line
- Make arrows pulse when waiting to convert
- Also allow for custom unit
- Implement infinity properly instead of just saying number too large
- Kitkat now has arrows at bottom. To move cursor, add these to calc
- Maybe add sqrt and possibly trig
- Try to implement pretty print, or at least superscript ^'s
- Add phantom close paren after open? Goes away with any selection, close/equals makes permanent,
- Pinch zoom to change size of prev expression's text
- Re-factor and clean code (make an expression class)
- Use gridlayout and support library instead of nested weights and linear layouts
- Copy and maybe paste buttons (maybe left side of expression's text box) show copy button after solve and paste if properly formatted thing in clipboard?
- Maybe copy and paste in status bar, although this is going to take a lot of vertical space
- Add hold options for lots of keys (add indicating names for these) eg, sqrt, !, mod
- Explore adding another coloum of keys to main calc app, might be too cluttered, but also might be nice (maybe make it an option?)
- Swipe down on units to hide; use three horz lines to signify swipeable. When hidden only show unittypes
- Use animation to move expression up and to the left after ='s; also make answer bold or something for a second
- Use spannable to create custom colors for operators and numbers
- Swipe out left from numbers to access options menu (flip EE/^, maybe custom units, default units open or closed)
- Add programming conversions (binary, hex, oct etc)
----Usability Upgrades----
- For first time opening show how the units can be slide left and right and other not obvious features
- Change event flow (1. User input in controller, 2. Controller calls model with basic user input, model updates some stuff maybe 3. Controller updates screen liberally) model classes should be usable in iOS app
Why singleton:
- Just get this done, make it cleaner when it's finished.
- What are you really loosing this way?
- The book did it
- Where would calc live otherwise (in the activity seems like a dumb place for it)
- How would fragments access it easily (passing between frag to activity seems uncessarily difficult)
- This also somewhat solves saving issues