All Projects → hatamiarash7 → RTL-Toast

hatamiarash7 / RTL-Toast

Licence: MIT license
Android Toast For RTL Applications

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to RTL-Toast

Loafjet
🚀 Loafjet is a lightweight custom framework used to add Loafs, Dash Board, Popup Card, and Loading indicator in your Swift project
Stars: ✭ 63 (+293.75%)
Mutual labels:  toast, toasts, toast-message, toast-ui
tall-toasts
A Toast notification library for the Laravel TALL stack. You can push notifications from the backend or frontend to render customizable toasts with almost zero footprint on the published CSS/JS 🔥🚀
Stars: ✭ 296 (+1750%)
Mutual labels:  toast, toasts, toast-notifications
bs5-utils
A JavaScript utility package for Bootstrap 5 components.
Stars: ✭ 26 (+62.5%)
Mutual labels:  toast, toast-message, toast-notifications
simple-notify
Pure javascript toast notifications.
Stars: ✭ 108 (+575%)
Mutual labels:  toast, toast-message, toast-notifications
JDToaster
🍞 Toasty iOS alerts
Stars: ✭ 25 (+56.25%)
Mutual labels:  toast, toast-message, toast-notifications
react-toast
Minimal toast notifications for React.
Stars: ✭ 47 (+193.75%)
Mutual labels:  toast, toast-notifications
BalloonPopup
Forget Android Toast! BalloonPopup displays a round or squared popup and attaches it to a View, like a callout. Uses the Builder pattern for maximum ease. The popup can automatically hide and can persist when the value is updated.
Stars: ✭ 32 (+100%)
Mutual labels:  toast, android-ui
Pudding
🌟 Pudding use WindowManager(don't need request permission) to pull down a view that are displayed on top their attached window
Stars: ✭ 371 (+2218.75%)
Mutual labels:  toast, android-ui
Notistack
Highly customizable notification snackbars (toasts) that can be stacked on top of each other
Stars: ✭ 2,562 (+15912.5%)
Mutual labels:  toast, toast-notifications
Cookiebar2
Android library for displaying text messages, notifications and alerts at the top or bottom of the screen. A great alternative for toast and snackbar alerts.
Stars: ✭ 499 (+3018.75%)
Mutual labels:  toast, android-ui
React Toast Notifications
🍞 A toast notification system for react
Stars: ✭ 2,103 (+13043.75%)
Mutual labels:  toast, toast-notifications
v-tostini
Toast plugin for Vue.js 2.x
Stars: ✭ 12 (-25%)
Mutual labels:  toast, toast-notifications
Vue Toasted
🖖 Responsive Touch Compatible Toast plugin for VueJS 2+
Stars: ✭ 2,091 (+12968.75%)
Mutual labels:  toast, toast-plugin
toaststrap
A simple, lightweight JavaScript library for showing Bootstrap 5 toast popups.
Stars: ✭ 16 (+0%)
Mutual labels:  toast, toast-notifications
neodigm55
An eclectic low-code vanilla JavaScript UX micro-library for those that defiantly think for themselves.
Stars: ✭ 14 (-12.5%)
Mutual labels:  toast, toast-notifications
Toastutils
Android 吐司框架,专治 Toast 各种疑难杂症
Stars: ✭ 2,087 (+12943.75%)
Mutual labels:  toast, toast-notifications
ComposableSweetToast
Jetpack Compose, Custom Toast, Solid Principles, Kotlin
Stars: ✭ 60 (+275%)
Mutual labels:  toast, toast-message
SteamAchievementNotifier
Steam Achievement Notifier is an Electron application that shows a customisable notification when you unlock any Steam Achievement! It uses the Steam Web API to track achievement stats in real time, and displays an achievement summary within the notification.
Stars: ✭ 77 (+381.25%)
Mutual labels:  toast, toast-notifications
Glidetoast
GlideToast is a android library to implement flying Toast Animation
Stars: ✭ 162 (+912.5%)
Mutual labels:  toast, android-ui
iOSUtilitiesSource
IOS Utilities Library for Swift
Stars: ✭ 46 (+187.5%)
Mutual labels:  toast, toast-message

RTL-Toast

Android Arsenal GitHub license Open Source Love png1 FOSSA Status

Android library to show Toasts in a pretty RTL way

ScreenShot

Install

Add it in your root build.gradle

allprojects {
    repositories {
        ...
	maven {
	    url 'https://jitpack.io'
	}
    }
}

Add the dependency

dependencies {
    implementation 'com.github.hatamiarash7:RTL-Toast:1.3'
}

Usage

RTLToast.error(context, message, length, withIcon);
RTLToast.success(context, message, length, withIcon);
RTLToast.info(context, message, length, withIcon);
RTLToast.warning(context, message, length, withIcon);
RTLToast.normal(context, message, length, withIcon);

You can use formatted strings

RTLToast.info(context, getFormattedMessage())

private CharSequence getFormattedMessage() {  
    final String prefix = "متن ";  
    final String highlight = "با فرمت ";  
    final String suffix = " مخصوص";  
    SpannableStringBuilder ssb = new SpannableStringBuilder(prefix).append(highlight).append(suffix);  
    int prefixLen = prefix.length();  
    ssb.setSpan(new StyleSpan(BOLD_ITALIC), prefixLen, prefixLen + highlight.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);  
    return ssb;  
}

Or you can customize your toast with RTLToast.Config

RTLToast.Config.getInstance()  
    .setTextColor(Color.GREEN)  
    .setToastTypeface(Typeface.createFromAsset(getAssets(), "IRANSans.ttf"))  
    .apply();  
RTLToast.custom(context, message, getResources().getDrawable(R.drawable.laptop512), Color.BLACK, length, withIcon, shouldTint).show();
RTLToast.Config.reset();

Support

ko-fi

Contributing

  1. Fork it!
  2. Create your feature branch : git checkout -b my-new-feature
  3. Commit your changes : git commit -am 'Add some feature'
  4. Push to the branch : git push origin my-new-feature
  5. Submit a pull request :D

Issues

Each project may have many problems. Contributing to the better development of this project by reporting them

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].