Skip to content

HMOS library with collection of some smart toasts designs.

License

Notifications You must be signed in to change notification settings

Applib-HarmonyOS/SmartyToast

Repository files navigation

Smarty Toast

Quality Gate Status .github/workflows/main.yml

Introduction

HMOS library with collection of some smart toasts designs which will help in situations of following :-

  • Completion of some work(Done!!)
  • Errors
  • Warnings(Done!!)
  • Connection Established(Done!!)
  • Saving completion(Saved!!)
  • Update Status(Updating...)

Source

The code in this repository was inspired from amanjeetsingh150/SmartyToast - v1.0. We are very thankful to amanjeetsingh150.

Screenshot

Installation

In order to use the library, add the following line to your root gradle file:

I) For using SmartyToast module in sample app, include the source code and add the below dependencies in entry/build.gradle to generate hap/support.har.

dependencies {
        implementation project(path: ':smartytoast')
        implementation fileTree(dir: 'libs', include: ['*.har'])
        testImplementation 'junit:junit:4.13'
}

II) For using SmartyToast in separate application using har file, add the har file in the entry/libs folder and add the dependencies in entry/build.gradle file.

dependencies {
        implementation fileTree(dir: 'libs', include: ['*.har'])
        testImplementation 'junit:junit:4.12'
}

III) For using SmartyToast from a remdropindicatorote repository in separate application, add the below dependencies in entry/build.gradle file.

dependencies {
        implementation 'dev.applibgroup:smartytoast:1.0.0'
        testCompile 'junit:junit:4.12'
}

Usage

I). Invoke makeText method of SmartyToast class. Set the type parameter to display the custom toast as required.

SmartyToast smartyToast = new SmartyToast(getApplicationContext());
smartyToast.makeText("Your Message!!", SmartyToast.LENGTH_SHORT, SmartyToast.DONE);

License

Copyright 2017 Amanjeet Singh

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.

About

HMOS library with collection of some smart toasts designs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages