Building a Simple Calculator using Android Studio

Basic Calculator to add, subtract, multiply and divide numbers in android
Check out the source code on:
Download source code from github:

46 Replies to “Building a Simple Calculator using Android Studio”

  1. abhiswami reddy

    when i change the name of text view to calculator……it throws an warning msg like this.." [I18N] Hardcoded string "Calculator", should use `@string` resource"

  2. shahrukh javed

    <RelativeLayout xmlns:android=""
    xmlns:tools="" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">

    Couldn't resolve resource @dimen/activity_horizontal_margin Tip: Try to refresh the layout.
    after doing everything not getting any solution can anyone plz hellp me out in this/….

  3. faraz butt

    Error:(15, 8) error: MainActivity is not abstract and does not override abstract method onClick(View) in OnClickListener
    Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.

    anyone an help me on this error?

Leave a Reply

Your email address will not be published. Required fields are marked *