DebugBanner

Additional

Language
Kotlin
Version
N/A
Created
Aug 20, 2018
Updated
Sep 1, 2018
Owner
Arman (armcha)
Contributor
Arman (armcha)
1
Activity
Badge
Generate
Download
Source code
APK file

Advertisement

DebugBanner

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

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

▶️ Facebook: https://web.facebook.com/chatikyana

▶️ 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.