Code Monkey home page Code Monkey logo

krharsh17 / barview-android Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 36.0 1.63 MB

A native android UI library that facilitates representation of categorical data in the form of interesting bars!

Home Page: https://gitter.im/barview-android/community

Java 2.18% Shell 2.81% Kotlin 95.02%
android android-development android-library android-studio android-ui androidstudio barview gradle java java-library jitpack kotlin kotlin-android library module native ui

barview-android's Introduction

Namaste! ๐Ÿ™๐Ÿป

I am Kumar Harsh, an indie software developer and a developer advocate ๐Ÿ’ป I create apps for mobile, web & cloud ๐ŸŒฉ I can also help you with technical marketing

๐Ÿ”ญ Iโ€™m currently working as a Developer Advocate ๐Ÿ–ฅ

๐ŸŒฑ Iโ€™m currently learning Web Security โ˜

๐Ÿ’ฌ Ask me about anything, I'm happy to help! ๐Ÿค

๐Ÿ“ซ How to reach me: hey [at] kumarharsh.me ๐Ÿ“ง

๐Ÿ˜„ Pronouns: he/him ๐Ÿ‘จโ€๐Ÿ’ป

โšก Fun fact: Can sleep all day and work all night!๐Ÿ˜

barview-android's People

Contributors

alaska18 avatar aman-codes avatar bhuwanchandra avatar chrisproductions avatar codacy-badger avatar jamesjose03 avatar krharsh17 avatar lugo0 avatar medhavi-16 avatar parthsharma07 avatar prince-09 avatar raghavawasthi avatar rajkothari634 avatar rasacharjee avatar rohittt728 avatar saumya1singh avatar shivangisingh17 avatar sourish-mukherjee avatar spacemonkey1101 avatar sumanthst24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

barview-android's Issues

Remove redundant toast on click

Describe the bug
A toast "Bar at position x" appears when you click on the bars.

To Reproduce
Click on a bar

Expected behaviour
No toast should appear

[BUG] Crash due to missing '#' in Constants.java

Describe the bug
The current version of the Android app is crashing on Launch

To Reproduce
Steps to reproduce the behavior:

  1. Run the app on Android device
  2. See the app crashing

Expected behavior
The app should show the current implementation of Bar View

Screenshots
screenshot

Additional context
The bug arose because several resources were not moved properly to the constants file.
This bug was introduced in PR #19

I would like to work on this issue

** Stack Trace**

Process: in.krharsh17.barview_sample, PID: 6933
    java.lang.IllegalArgumentException: Unknown color
        at android.graphics.Color.parseColor(Color.java:1400)
        at in.krharsh17.barview.BarGroup.setupInitial(BarGroup.java:112)
        at in.krharsh17.barview.BarGroup.onAttachedToWindow(BarGroup.java:81)
        at android.view.View.dispatchAttachedToWindow(View.java:19553)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3430)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2028)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1721)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7598)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:966)
        at android.view.Choreographer.doCallbacks(Choreographer.java:790)
        at android.view.Choreographer.doFrame(Choreographer.java:725)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:951)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Update Readme

Add the system requirements for running the app and add a tutorial link for installing android.

Allow the use of local fonts stored in target app's fonts folder in the library

The fonts have to be discussed with the mentors before being put into the project.

The ttf or otf files for each selected font has to be included in the project and an xml attribute has to be defined which can allow devs to choose from the available list of fonts.

Use the target app's fonts in the library with the help of @FontRes annotations. Also make sure to remove the files currently stored in the library's fonts folder.

Migrate to Travis CI

Is your feature request related to a problem? Please describe.
In order to ease the development workflow. It would be more convenient if we moved to Travis CI.
I will be working on this issue

Add TOC to README.md

Is your feature request related to a problem? Please describe.
Currently, the README is quite long and there is no TOC.

Describe the solution you'd like
A TOC will help provide easier navigation through the README.

Describe alternatives you've considered
N/A

Additional context
Screenshot:
image

Update the README with all of the customizations available in the library

A lot of features have been added to the library over the course of GSSoC20. Now it is necessary to document those features properly so that any dev willing to use the library may find it easy to do so.

  • Go through the entire library and make a list of all possible customizations
  • Create a separate section in the README for each customization describing how to use it both through Java & XML

Add CODE_OF_CONDUCT.md

Is your feature request related to a problem? Please describe.
No CODE_OF_CONDUCT.md file is present.

Describe the solution you'd like
@krharsh17 As a GSSOC participant I would like to add a CODE_OF_CONDUCT.md file in this project. Using this as a reference.

Additional context

Screenshots

code of conduct1
code of conduct2

Improve code quality

The current quality rating of the codebase is B. Make changes to the repo to make it reach A. Please go through this to know what changes would help.

bar-android does not have splash screen

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
A splash screen can be added to improve the first user experience with the app.

Allow the use of local colors of app in color.xml folder of app.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

We should allow users to use the local colors from the color.xml folder of the app.
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Fix shadow

Describe the bug
The shadow's controls are completely broken. Either fix their XML attributes and provide proper documentation in the README.md for them or remove the shadows entirely.

Update Readme

Readme can be updated with details of mentors,admins,slack channels and details of gssoc. Please assign me this issue.

Option to set a background color for the entire barview

Include an attribute in the xml tag of the library to directly specify a background colour. Alternatively, define a setBackgroundColor(Color color) function in the library to allow dynamic modification of the background color.

Incorporating constants in the strings.xml file

Is your feature request related to a problem? Please describe.
Refactoring the constants.java file

Describe the solution you'd like
Incorporating all the constants frim the constants.java file to the strings.xml file

Automatically Building and Updating Sample APK

Is your feature request related to a problem? Please describe.
It would be good if we Rebuild an APK on every merge into the Develop branch and Master Branch.
This way it would be easy for user to test the application without having any hassle.

Describe the solution you'd like
We can use the Automatic Code Building by CI/CD Pipelines to build a development APK and push it to the APK Branch.
We can use the build output directories generated by the Trevor CI and copy the APK file from there using a simple upload script and then use git CLI interface available in the Trevor to upload the apk to our branch using our Github API KEY.

Describe alternatives you've considered
I guess Travis CI and Circle CI are quite good alternatives to address the above problem

I would like to work on this issue

Convert project into kotlin

Before submitting a PR, ensure that your code is in level with the then code in the develop branch, and also that each and every java file has been converted into kotlin.

Add Pull Request Template

Is your feature request related to a problem? Please describe.
Currently no pull request template is available in this project.

Describe the solution you'd like
@krharsh17 I am a GSSOC participant and I would like to add a pull_request_template.md file in this project.

Additional context

Screenshots

Pull request

pull request

Add a listener for click event on bars

The user should be able to attach the listener by calling barViewObject.addOnClickListener() and the listener should have an argument index which would contain the index of the bar that has been clicked.

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.