Skip to content

Commit

Permalink
Code Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
“Manikanta committed May 3, 2018
1 parent 8beba1e commit 1170569
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 18 deletions.
Binary file modified .gradle/4.4/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/4.4/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/4.4/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/4.4/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified .gradle/4.4/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file modified .gradle/4.4/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified .gradle/4.4/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/4.4/javaCompile/taskJars.bin
Binary file not shown.
Binary file modified .gradle/4.4/taskHistory/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/4.4/taskHistory/taskHistory.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
18 changes: 9 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "mani.itachi.toasterexample"
minSdkVersion 16
targetSdkVersion 26
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -20,12 +20,12 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.1.0'
testCompile 'junit:junit:4.12'
compile 'com.android.support.constraint:constraint-layout:1.1.0'
compile project(':toaster')
implementation 'com.android.support:appcompat-v7:27.1.1'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation project(':toaster')
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public void onClick(View view) {
Toaster.makeText(this, "Hi! This is a sample toast").show();
break;
case R.id.normal_icon:
Toaster.makeText(this, "A toast with a cute cat").setIcon(R.drawable.cat).show();
Toaster.makeText(this, "A toast with a cute cat").setIcon(R.drawable.cat)
.setBackgroundColor(Color.parseColor("#FFFFFF"))
.setTextColor(Color.parseColor("#000000"))
.show();
break;
case R.id.error:
Toaster.error(this, "Oops! Error occurred").show();
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_toaster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
android:layout_margin="8dp"
android:gravity="center"
android:orientation="vertical"
android:background="#5422"
tools:context="mani.itachi.toasterexample.ToasterActivity">

<Button
Expand Down Expand Up @@ -49,7 +50,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClick"
android:text="Toasst with custom config" />
android:text="Toast with custom config" />

<Button
android:id="@+id/center"
Expand Down
14 changes: 7 additions & 7 deletions toaster/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ group = 'com.github.Mani-Itachi'
version = '1.0'

android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
compileSdkVersion 27
buildToolsVersion "27.0.3"


defaultConfig {
minSdkVersion 16
targetSdkVersion 26
targetSdkVersion 27
versionCode 1
versionName "1.0"

Expand All @@ -26,11 +26,11 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

compile 'com.android.support:appcompat-v7:26.1.0'
testCompile 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:27.1.1'
testImplementation 'junit:junit:4.12'
}

0 comments on commit 1170569

Please sign in to comment.