GithubHelp home page GithubHelp logo

debasis56 / my-garden-widget-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 940 KB

My Garden is a simple app that allows you to add plants to your garden and keep them alive by watering them on time. The app illustrates the power of widgets and collection widgets by making it easier for the user to monitor and water their plants from the home screen. It makes use of a widget provider which defines the customized widget screen and actions.

Java 100.00%
android-app android-studio java broadcast-reciever widget-providers remote-views pending-intent grid-layout widget-library

my-garden-widget-app's Introduction

My Garden

The app

My Garden is a simple game that allows you to add plants to your garden and keep them alive by watering them on time. The app illustrates the power of widgets and collection widgets by making it easier for the user to monitor and water their plants from the home screen. It makes use of a widget provider which defines the customized widget screen and actions. We use the widget as a Broadcast Receiver to provide services for watering plants that haven't been watered. The plants with the longest last_Watered time is shown in order to be watered first. Once the plant exceeds the maximum_watered time, the plant dies, after which it could no longer be watered. The widget screen also changes from the simple linear layout to grid layout once the width of the widget exceeds 300dp. In the grid layout all the plants in the garden are shown. Each plant is associated with a fillInIntent which tends to store the id of each plant and open that respective plant when clicked. The Grid Layout automatically refreshes when it notices any changes with the plant in garden. This is a dynamic app and the app keeps updating the image of the plants as it gets on growing older.

Screenshots

Screenshot 2022-01-20 at 7 40 22 PM Screenshot 2022-01-20 at 7 39 05 PM Screenshot 2022-01-20 at 7 38 26 PM Screenshot 2022-01-20 at 7 36 52 PM

my-garden-widget-app's People

Contributors

debasis56 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.