moodtracker | A serverless and offline-first PWA that lets you track | State Container library
kandi X-RAY | moodtracker Summary
kandi X-RAY | moodtracker Summary
MoodTracker is a free and open source web app app that aims to help you understand yourself better. Track your emotional landscape, keep a mood journal, time your meditations, keep a meditation log and gain new insights into yourself. It's simple to use, works offline and because it runs in your browser you can use it across all your devices!. The MoodTracker UI was built using a component library I made called Eri.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of moodtracker
moodtracker Key Features
moodtracker Examples and Code Snippets
Community Discussions
Trending Discussions on moodtracker
QUESTION
I have a MoodTracker application who store the daily mood into prefs every 24H and show a History of last 7 days mood.
My problem is the following:
My History layout has 7 Relative layouts (one for each day) inside a LinearLayout.
Preview is perfect, one upside another. But when I run the application,
I can only see 4/7 layouts, each one is way bigger than the expected...
this is my code :
XML : https://github.com/matteovaccari/MoodTracker/blob/master/app/src/main/res/layout/activity_mood_history.xml
java: https://github.com/matteovaccari/MoodTracker/blob/master/app/src/main/java/com/matt/android/moodtracker_v2/controllers/MoodHistoryActivity.java
Thanks in advance
ANSWER
Answered 2019-Mar-09 at 11:06The problem is in your RelativeLayouts:
QUESTION
I encounter a problem with my code, and I would be interested in the concrete explanation of one concept. Basically, I understood how the SharedPreferences are working, I know the key-values concept, but although i searched on the official documentation and other websites, I cannot figure how the Mapping is working.
I'm making an app that is a "M.Mood" like. When user scroll up or down, the mood and color of mood is changing. When you click on history, you have a new screen in a new Activity that displays the 7 last days values.
Here is my problem : I retrieved the SharedPreferences from my MainActivity.java in my HistoryActivity.java, I tried to map it, but then the color of my TextViews stay red. Being a beginner in Java, i would like to have your opinion on why it is not displaying colors that i registered on my colors.xml resources.
Here is my MainActivity.java file :
...ANSWER
Answered 2018-Oct-03 at 11:59You are using the current date and time as key to store the color and using another date and time to retrieve it. The return values of the two calls of android.text.format.DateFormat.format("yyyyMMddhms", new java.util.Date()).toString()
will be different. Use the same value (a constant value) for store and retrieve the data that you want to use.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install moodtracker
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page