Skip to content
Debug banner lib allows you to attach debug (🐛) banner on all your activities, just by one line of code.
Kotlin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app Version 1.0.3 Aug 27, 2018
debugBanner Version 1.0.3 Aug 31, 2018
gradle/wrapper Did uploaded to jcenter Aug 26, 2018
screenshots Add files via upload Sep 1, 2018
.gitignore Initial commit Aug 20, 2018
README.md Update README.md Oct 30, 2018
build.gradle Version 1.0.3 Aug 31, 2018
gradle.properties
gradlew Initial commit Aug 20, 2018
gradlew.bat
settings.gradle Initial commit Aug 20, 2018

README.md

DebugBanner

Debug banner lib allows you to attach debug (🐛) banner on all your activities, just by one line of code.

Download

Download sample apk

The current minSDK version is API level 16.

Download ⬇️


Gradle:

implementation 'com.github.armcha:DebugBanner:1.0.4'

Setup and usage

Add it on your application onCreate

  DebugBanner.init(application = this)

Customizations

  1. You can change banner color, text, text color and banner gravity

    val bannerGravity: BannerGravity val bannerColorRes: Int val textColorRes: Int val bannerText: Strin

   DebugBanner.init(application = this,
                    banner = Banner(bannerText = "BETA"))
  1. You can change banner attributes only for one activity. For doing this you just need to implement BannerView interface
   class ExampleActivity : AppCompatActivity(), BannerView {

      override fun createBanner(): Banner {
          return Banner(
                 bannerText = "BETA",
                 bannerColorRes = R.color.yellow,
                 textColorRes = android.R.color.black,
                 bannerGravity = BannerGravity.END)
        }
  }

That's all 👌

Contact 📖

Pull requests are more than welcome.

▶️ Email: chatikyana@gmail.com

▶️ Medium: https://medium.com/@chatikyan

▶️ Twitter: https://twitter.com/ArmanChatikyan

▶️ Google +: https://plus.google.com/+ArmanChatikyan

▶️ Website: https://armcha.github.io/

License

  DebugBanner
  Copyright (c) 2018 Arman Chatikyan (https://github.com/armcha/DebugBanner).

  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.
You can’t perform that action at this time.