Commit graph

1054 commits

Author SHA1 Message Date
tibbi
4448b988cb change a constants' value for consistency 2016-01-03 17:26:10 +01:00
tibbi
9b4f82bc2e implement a slider for setting the widget background opacity 2016-01-03 17:25:23 +01:00
tibbi
8960387b48 remove the RelativeLayout wrapping the calculator 2016-01-03 16:10:55 +01:00
tibbi
dc09b69235 remove ripple effect and make buttons transparent
- they will inherit the backgrounds' color
2016-01-03 15:34:59 +01:00
tibbi
58a50e97a1 some widget corrections to make it work properly even when idle for a long time 2016-01-03 14:32:03 +01:00
tibbi
9037b9d8fe add ripple effect to buttons 2016-01-03 00:11:46 +01:00
tibbi
9f07615348 couple more UI changes 2016-01-02 23:03:32 +01:00
tibbi
f5d7c3e829 force portrait mode for now 2016-01-02 18:49:02 +01:00
tibbi
e423258a04 move the Button text size back to style 2016-01-02 18:47:16 +01:00
tibbi
ad9c907f12 improve the widget config screen + style changes 2016-01-02 18:41:18 +01:00
tibbi
fed4e15afb set the button text size directly, not through a style 2016-01-02 14:52:14 +01:00
tibbi
7389ec8dbc display a title bar at the widget config activity 2016-01-01 22:17:03 +01:00
tibbi
fb5ccc50dc create a simple widget config activity 2016-01-01 21:13:04 +01:00
tibbi
80f5637a9f remove a check at handleOperation 2016-01-01 19:43:09 +01:00
tibbi
e004d15c10 remove all paddings except the top one 2016-01-01 19:34:10 +01:00
tibbi
66dc345c1b add a AC (reset) button to the widget
- it does the same as long pressing the C in the app, however widgets cannot be long pressed
2015-12-30 22:34:09 +01:00
tibbi
5d75720619 change an Espresso test to add all digits 2015-12-30 20:57:30 +01:00
tibbi
4e1c556e8e add a basic home screen widget 2015-12-30 20:25:18 +01:00
tibbi
1969300620 change operation constants to strings 2015-12-30 15:35:50 +01:00
tibbi
920b8f87a6 fix Robolectric tests 2015-12-30 14:54:22 +01:00
tibbi
de3e1312ca move the functionality to an interface
- that way we can reuse all the code in the widget
2015-12-30 12:53:49 +01:00
tibbi
aecabbe7e0 use linearlayouts instead of tablelayout 2015-12-29 21:53:45 +01:00
tibbi
d37a1963de add some Espresso tests and a cheat sheet pdf 2015-12-29 16:08:51 +01:00
tibbi
a9539cdeb6 correct a Root test 2015-12-29 14:11:15 +01:00
Tibor Kaputa
f2a4535f5e Create README.md 2015-12-29 14:09:45 +01:00
tibbi
7fa8d5424f change the license to MIT 2015-12-29 13:31:50 +01:00
tibbi
ca53937aef implement an Espresso test 2015-12-29 12:49:48 +01:00
tibbi
cc856b3d05 add some more tests for the other buttons 2015-12-28 22:15:26 +01:00
tibbi
95d3b31102 add a couple tests + minor refactoring 2015-12-28 19:26:38 +01:00
tibbi
b0f64390dd setup Robolectric for tests 2015-12-26 22:35:45 +01:00
tibbi
e5e64f93fa replace Infinity at Power(x, y) with 0 2015-12-26 16:39:01 +01:00
tibbi
9d7b67ba16 implement Clear 2015-12-26 16:33:03 +01:00
tibbi
aa6ebd00b3 implement Root 2015-12-26 14:24:52 +01:00
tibbi
0e216ad692 implement Power(x, y) 2015-12-26 14:04:45 +01:00
tibbi
08dccc68ba implement Modulo 2015-12-25 14:39:26 +01:00
tibbi
9f4fc90a37 remove an unnecessary return statement 2015-12-24 23:17:08 +01:00
tibbi
c6aae26f94 minor refactoring, no functionality change 2015-12-24 23:07:50 +01:00
tibbi
637c47f5b5 correct some operations after equals 2015-12-24 22:56:56 +01:00
tibbi
9b1c979be6 implement division 2015-12-24 22:48:07 +01:00
tibbi
3be2aee4d3 implement multiplication 2015-12-24 22:36:06 +01:00
tibbi
82521af7b0 implement Subtraction 2015-12-24 21:41:48 +01:00
tibbi
271bf692dd move the formatter in a separate class 2015-12-24 21:00:58 +01:00
tibbi
eb40066bd2 change the app name to Simple Calculator 2015-12-24 20:41:24 +01:00
tibbi
ecfa09495b implement addition 2015-12-24 20:38:58 +01:00
tibbi
0c1f8257c9 create a common function for getting the displayed number 2015-12-24 16:48:44 +01:00
tibbi
576520dc3a implement decimals and correct handling of 0 2015-12-24 16:47:18 +01:00
tibbi
c84200a101 implement digit buttons 2015-12-24 15:34:45 +01:00
tibbi
b41d375d10 add modulo, power, root, clear buttons 2015-12-24 13:38:41 +01:00
tibbi
4798537a3a add a display 2015-12-24 13:32:18 +01:00
tibbi
587db72953 delete the w820dp version of dimens file for now 2015-12-24 13:22:27 +01:00