Coder Social home page Coder Social logo

cs481-a2's Introduction

Assignment 2: Fragments

Before working on this or any assignment, you will need to set up the Android Studio IDE on your computer. You will create an Android project with the name Fragment_YOURNAME_YOURPARTNERNAME by selecting Kotlin as the language. We suggest that you do this as early as possible, because some students may get stuck and need time to get the IDE set up.

Assignment Description:

For this second assignment, we'll practice whatever topics we covered in the class. You should develop an app that has the following:

  1. Your app should be set up as an Android Studio project, so it can easily be opened/graded by others.
  2. Create two buttons named Bar and Line in MainActivity. Then create one FragmentContainer. Your app will display a Line graph (LineFragment) by default into the FragmentContainer. Based on the button click, it will display either a Line graph and Bar graph(BarFragment). You have to dynamically load either one of the graphs. Please use the below data to produce your graphs. Here, a, b, c are series, and 1, 2, 3, 4 are domain labels. For drawing the graph, you can use the following library: https://github.com/halfhp/androidplot

🛑Please don’t load images of Bar and Line, rather draw graphs based on sample data.

If you want help, please feel free to show your code to others or ask for help in our online discussion forum. Feel free to make an app as simple or as complex as you like, relative to your familiarity level and time constraints. If you work on your solution for a few hours and are still not done, you can turn it in, and we will award you credit. You can do it!

For submitting the project, you have to follow three steps:

  1. Create a folder name called “Output” inside the project folder. Make a small video showing your program functionality in the emulator and show your code as well. 1~2 minutes video is fine.
  2. Please take screenshots of the Kotlin code and test the running console, then make a PDF file like Class activities. You have to upload that PDF into your Canvas.
  3. Push your code and pdf in this Github.

It does not need to be perfect or bug-free to receive credit. Your code will not be graded on style, but we still encourage you to follow a good overall coding style for your own sake.

Grading Rubrics:
- Successfully load the dynamic fragments into MainActivity: 3 points
- Successfully draw the Bar graph using provided library with sample data: 2.5 points
- Successfully draw the Line graph using provided library with sample data: 2.5 points
- Overall functionality and UI/UX: 1 pts

cs481-a2's People

Contributors

raigz avatar github-classroom[bot] 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.