diff --git a/CuteButton/src/main/java/com/rejowan/cutebutton/CuteButton.java b/CuteButton/src/main/java/com/rejowan/cutebutton/CuteButton.java index e09f71c..d5b626b 100644 --- a/CuteButton/src/main/java/com/rejowan/cutebutton/CuteButton.java +++ b/CuteButton/src/main/java/com/rejowan/cutebutton/CuteButton.java @@ -325,7 +325,7 @@ private void setupTextView() { private void setupImageView() { imageView = new ImageView(context); - if (icon == 0 ) { + if (icon == 0) { iconSize = 0; } diff --git a/app/build.gradle b/app/build.gradle index 6185a18..e330d6c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,7 +28,7 @@ android { } dependencies { - implementation 'androidx.appcompat:appcompat:1.2.0' + implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'com.google.android.material:material:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation project(path: ':CuteButton') diff --git a/app/src/androidTest/java/com/rejowan/cutebutton/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/rejowan/cutebutton/ExampleInstrumentedTest.java index 0aac5e1..5e60e50 100644 --- a/app/src/androidTest/java/com/rejowan/cutebutton/ExampleInstrumentedTest.java +++ b/app/src/androidTest/java/com/rejowan/cutebutton/ExampleInstrumentedTest.java @@ -2,13 +2,13 @@ import android.content.Context; -import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; +import androidx.test.platform.app.InstrumentationRegistry; import org.junit.Test; import org.junit.runner.RunWith; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; /** * Instrumented test, which will execute on an Android device. diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0ac547a..1d1165b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,5 +1,6 @@ + android:theme="@style/Theme.CuteButton" + tools:ignore="AllowBackup"> diff --git a/app/src/main/java/com/rejowan/cutebutton/MainActivity.java b/app/src/main/java/com/rejowan/cutebutton/MainActivity.java index f8e40c7..489d593 100644 --- a/app/src/main/java/com/rejowan/cutebutton/MainActivity.java +++ b/app/src/main/java/com/rejowan/cutebutton/MainActivity.java @@ -1,11 +1,34 @@ package com.rejowan.cutebutton; -import android.graphics.Color; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { + /* + CuteButton Library for Android + Created by K M Rejowan Ahmmed (ahmmedrejowan) + Min Api 21 + Target Api 30 + Java Version 1.8 + */ + + + /* + Copyright 2021 K M Rejowan Ahmmed (ahmmedrejowan) + + 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. + */ @Override @@ -14,6 +37,5 @@ protected void onCreate(Bundle savedInstanceState) { setContentView(R.layout.activity_main); - } } \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_baseline_add_shopping_cart_24.xml b/app/src/main/res/drawable/ic_baseline_add_shopping_cart_24.xml index 53de01a..5f2871b 100644 --- a/app/src/main/res/drawable/ic_baseline_add_shopping_cart_24.xml +++ b/app/src/main/res/drawable/ic_baseline_add_shopping_cart_24.xml @@ -1,5 +1,10 @@ - - + + diff --git a/app/src/main/res/drawable/ic_baseline_arrow_circle_down_24.xml b/app/src/main/res/drawable/ic_baseline_arrow_circle_down_24.xml index 890060b..1192416 100644 --- a/app/src/main/res/drawable/ic_baseline_arrow_circle_down_24.xml +++ b/app/src/main/res/drawable/ic_baseline_arrow_circle_down_24.xml @@ -1,5 +1,10 @@ - - + + diff --git a/app/src/main/res/drawable/ic_baseline_bookmark_border_24.xml b/app/src/main/res/drawable/ic_baseline_bookmark_border_24.xml index 95cd4cb..f102984 100644 --- a/app/src/main/res/drawable/ic_baseline_bookmark_border_24.xml +++ b/app/src/main/res/drawable/ic_baseline_bookmark_border_24.xml @@ -1,5 +1,10 @@ - - + + diff --git a/app/src/main/res/drawable/ic_baseline_check_24.xml b/app/src/main/res/drawable/ic_baseline_check_24.xml index 2501e9f..9e21ec4 100644 --- a/app/src/main/res/drawable/ic_baseline_check_24.xml +++ b/app/src/main/res/drawable/ic_baseline_check_24.xml @@ -1,5 +1,10 @@ - - + + diff --git a/app/src/main/res/drawable/ic_baseline_create_24.xml b/app/src/main/res/drawable/ic_baseline_create_24.xml index 8be4e8c..24b5164 100644 --- a/app/src/main/res/drawable/ic_baseline_create_24.xml +++ b/app/src/main/res/drawable/ic_baseline_create_24.xml @@ -1,5 +1,10 @@ - - + + diff --git a/app/src/main/res/drawable/ic_baseline_delete_24.xml b/app/src/main/res/drawable/ic_baseline_delete_24.xml index 282594c..c710ac7 100644 --- a/app/src/main/res/drawable/ic_baseline_delete_24.xml +++ b/app/src/main/res/drawable/ic_baseline_delete_24.xml @@ -1,5 +1,10 @@ - - + + diff --git a/app/src/main/res/drawable/ic_baseline_login_24.xml b/app/src/main/res/drawable/ic_baseline_login_24.xml index 3193447..50a2f8b 100644 --- a/app/src/main/res/drawable/ic_baseline_login_24.xml +++ b/app/src/main/res/drawable/ic_baseline_login_24.xml @@ -1,5 +1,10 @@ - - + + diff --git a/app/src/main/res/drawable/ic_baseline_save_24.xml b/app/src/main/res/drawable/ic_baseline_save_24.xml index 999020d..555a07c 100644 --- a/app/src/main/res/drawable/ic_baseline_save_24.xml +++ b/app/src/main/res/drawable/ic_baseline_save_24.xml @@ -1,5 +1,10 @@ - - + + diff --git a/app/src/test/java/com/rejowan/cutebutton/ExampleUnitTest.java b/app/src/test/java/com/rejowan/cutebutton/ExampleUnitTest.java index 0a66ecf..b8b0676 100644 --- a/app/src/test/java/com/rejowan/cutebutton/ExampleUnitTest.java +++ b/app/src/test/java/com/rejowan/cutebutton/ExampleUnitTest.java @@ -2,7 +2,7 @@ import org.junit.Test; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; /** * Example local unit test, which will execute on the development machine (host).