Git Product home page Git Product logo

material-calculator's Introduction

Material Calculator

A backport of the recent redesign of the default calculator app shipped with Android Lollipop. Most of the material design goodness has been ported to work on all versions of the platform back to Android 2.3.3 (API Level 10). The source code was forked from the AOSP platform package.

Features that couldn't be backported include:

  • Custom theme colors. Whatever is allowed by the the v7 appcompat library has been implemented
  • Ripple drawables

Material Calculator

Demo

The gif was recorded on a Android 4.4 KitKat device (API Level 19).

Sample Application

The application has been published onto Google Play for easy access:

Get it on Google Play

How to use this source code

The material-calculator project can be opened in Android Studio.

The folder structure is similar to the one in AOSP with the addition of the local gradle wrapper (gradlew).

The project can be compiled from the command line using Gradle.

License

Copyright 2014 Rahul Parsani

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Library licenses

android-ui-1.2 is subject to the Apache License, Version 2.0. More information on the official web site.

nineoldandroids-2.4.0 is subject to the Apache License, Version 2.0. More information on the official web site.

material-calculator's People

Contributors

adamp avatar adrianroos avatar alanv avatar alexkucherenko avatar christianrobertson avatar dmitriplotnikov avatar dsandler avatar firefart avatar hwwang-google avatar jaceksur avatar jham avatar kruton avatar mikejurka avatar narayank avatar neel-google avatar onoratoj 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

material-calculator's Issues

Problem

Hi
Problem sin() and cos()
it make sin(90 = 0.89399966636
excuse me im 16 years old and i from iran
i cannt speek engilish very weel
thanks for this src

.

.

Missing layout_width and layout_height

On Android 4.2.2 the calculator crashes the app because it is expecting a layout_width and layout_height on the buttons. I've gone through and added them, but even setting them to match_parent, it doesn't look right. Do you have any ideas on how to fix the layout when using layout_width and layout_height? Or possibly how I can get around them being needed?

calc

Gradle sync failed: Unsupported method: BaseConfig.getApplicationIdSuffix().

When I compile it in Android Studio, it throw a error:

Gradle sync failed: Unsupported method: BaseConfig.getApplicationIdSuffix().
		The version of Gradle you connect to does not support that method.
		To resolve the problem you can change/upgrade the target version of Gradle you connect to.
		Alternatively, you can ignore this exception and read other information from the model.

This is my enviroment:

  • Android Studio 3.0 Canary 3
  • Build #AI-171.4056697, built on June 1, 2017
  • JRE: 1.8.0_112-release-736 amd64
  • JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  • Windows 10 10.0

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.