All Projects → cesarferreira → Materialcomponent.banner

cesarferreira / Materialcomponent.banner

Licence: mit
Material component for Android: Banner

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Materialcomponent.banner

Xposed Fast Repo
EdXposed Repo
Stars: ✭ 101 (-12.17%)
Mutual labels:  material-design, material
Materialtextfield
A different beautiful Floating Edit Text
Stars: ✭ 1,504 (+1207.83%)
Mutual labels:  material-design, material
Cardview
Material Design Cards ? How cool is that !
Stars: ✭ 101 (-12.17%)
Mutual labels:  material-design, material
Vue Material
Material design for Vue.js
Stars: ✭ 9,528 (+8185.22%)
Mutual labels:  material-design, material
Materialize
Materialize, a CSS Framework based on Material Design
Stars: ✭ 38,630 (+33491.3%)
Mutual labels:  material-design, material
Material Design For Bootstrap
Important! A new UI Kit version for Bootstrap 5 is available. Access the latest free version via the link below.
Stars: ✭ 9,463 (+8128.7%)
Mutual labels:  material-design, material
Materialtaptargetprompt
Material Design tap target for Android. https://sjwall.github.io/MaterialTapTargetPrompt/
Stars: ✭ 1,378 (+1098.26%)
Mutual labels:  material-design, material
Core
Onscreen virtual keyboard for Angular ≥ 5 (https://angular.io/) using Angular Material (https://material.angular.io/).
Stars: ✭ 92 (-20%)
Mutual labels:  material-design, material
Smart Webcomponents
Web Components & Custom Elements for Professional Web Applications
Stars: ✭ 110 (-4.35%)
Mutual labels:  material-design, material
Keepassdx
📱 KeePass implementation for android with material design and deluxe features
Stars: ✭ 1,395 (+1113.04%)
Mutual labels:  material-design, material
Delern
Spaced repetition learning system
Stars: ✭ 98 (-14.78%)
Mutual labels:  material-design, material
Materialspinner
Implementation of a Material Spinner for Android with TextInputLayout functionalities
Stars: ✭ 107 (-6.96%)
Mutual labels:  material-design, material
Android Art
🎄 Android™ 设计相关的在线工具: 图标制作、配色方案、尺寸修改、截图加壳等,持续更新...
Stars: ✭ 95 (-17.39%)
Mutual labels:  material-design, material
Material Remixer Js
Remixer for JavaScript. Live adjustment of app variables.
Stars: ✭ 100 (-13.04%)
Mutual labels:  material-design, material
Cyanea
A theme engine for Android
Stars: ✭ 1,319 (+1046.96%)
Mutual labels:  material-design, material
Material Remixer Ios
Remixer for iOS: Live adjustment of app variables.
Stars: ✭ 101 (-12.17%)
Mutual labels:  material-design, material
Togglebuttons
Android toggle buttons that adhere to the Material Design documentation.
Stars: ✭ 88 (-23.48%)
Mutual labels:  material-design, material
Iconshowcase
Full-of-features, easy-to-customize, free and open source, Material Design dashboard for icon packs.
Stars: ✭ 91 (-20.87%)
Mutual labels:  material-design, material
Materialdesigndemo
A beautiful app designed with Material Design.
Stars: ✭ 1,391 (+1109.57%)
Mutual labels:  material-design, material
Material Design Icons
Material Design icons by Google
Stars: ✭ 44,551 (+38640%)
Mutual labels:  material-design, material

Banners

A banner displays a prominent message and related optional actions.

Usage

in your layout.xml

  <com.cesar.materialcomponents.Banner
        android:id="@+id/banner"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#ccc"
        app:bannerBackgroundColor="@color/weird_green"
        app:contentText="Your password was updated on another device. Please sign in again"
        app:leftButtonText="Continue as Guest"
        app:rightButtonText="Sign in"/>

In your activity.kt

 banner.setLeftButtonAction { banner.dismiss() }
 banner.setRightButtonAction { navigator.goToSignIn() }

Install

Just add the following dependency in your app's build.gradle

allprojects { repositories { maven { url 'https://jitpack.io' } }}
dependencies {
    implementation 'com.github.cesarferreira:MaterialComponent.Banner:{latest_version}'
}

Reason

https://github.com/material-components/material-components-android/issues/74

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].