kandi background
Explore Kits

StatusBarUtil | A util for setting status bar style on Android App.

 by   laobie Java Version: Current License: Apache-2.0

 by   laobie Java Version: Current License: Apache-2.0

Download this library from

kandi X-RAY | StatusBarUtil Summary

StatusBarUtil is a Java library. StatusBarUtil has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub.
招人广告: 字节跳动各业务线均可内推,可直接推我现在所在的部门 TikTok/抖音 业务线,提供以下服务: 简历修改 面试指导 进度跟进 欢迎看机会的人加我微信,也欢迎进行技术交流。. A util for setting status bar style on Android App. It can work above API 19(KitKat 4.4).
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • StatusBarUtil has a medium active ecosystem.
  • It has 8684 star(s) with 1732 fork(s). There are 183 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 104 open issues and 178 have been closed. On average issues are closed in 30 days. There are 3 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of StatusBarUtil is current.
StatusBarUtil Support
Best in #Java
Average in #Java
StatusBarUtil Support
Best in #Java
Average in #Java

quality kandi Quality

  • StatusBarUtil has 0 bugs and 0 code smells.
StatusBarUtil Quality
Best in #Java
Average in #Java
StatusBarUtil Quality
Best in #Java
Average in #Java

securitySecurity

  • StatusBarUtil has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • StatusBarUtil code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
StatusBarUtil Security
Best in #Java
Average in #Java
StatusBarUtil Security
Best in #Java
Average in #Java

license License

  • StatusBarUtil is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
StatusBarUtil License
Best in #Java
Average in #Java
StatusBarUtil License
Best in #Java
Average in #Java

buildReuse

  • StatusBarUtil releases are not available. You will need to build from source code and install.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • StatusBarUtil saves you 700 person hours of effort in developing the same functionality from scratch.
  • It has 1620 lines of code, 65 functions and 45 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
StatusBarUtil Reuse
Best in #Java
Average in #Java
StatusBarUtil Reuse
Best in #Java
Average in #Java
Top functions reviewed by kandi - BETA

kandi has reviewed StatusBarUtil and discovered the below as its top functions. This is intended to give you an instant insight into StatusBarUtil implemented functionality, and help decide if they suit your requirements.

  • Initializes the status bar .
  • set the status color for the drawer layout
  • Set the status bar
  • helper method to set the visibility of the drawer layout
  • Override this method to handle the menu item selected .
  • Initializes the view created by the view .
  • Set the contentView with the layoutResID .
  • Sets the background color of the dialog s title .
  • Set the status bar .

StatusBarUtil Key Features

Set status bar color StatusBarUtil.setColor(Activity activity, int color)

Set status bar translucent StatusBarUtil.setTranslucent(Activity activity, int statusBarAlpha)

Set status bar transparent StatusBarUtil.setTransparent(Activity activity)

Set status bar color for DrawerLayout StatusBarUtil.setColorForDrawerLayout(Activity activity, DrawerLayout drawerLayout, int color)

Set translucent status bar for using ImageView as head view page StatusBarUtil.setTranslucentForImageView(Activity activity, int statusBarAlpha, View needOffsetView)

Set Light or Dark mode StatusBarUtil.setLightMode(Activity activity) StatusBarUtil.setDarkMode(Activity activity)

Use in fragment

Set color for swipe back page StatusBarUtil.setColorForSwipeBack(Activity activity, @ColorInt int color, int statusBarAlpha)

Pass statusBarAlpha param when necessary to change your status bar alpha, which is 112 by default.

Usage

copy iconCopydownload iconDownload
compile 'com.jaeger.statusbarutil:library:1.5.1'

Features

copy iconCopydownload iconDownload
StatusBarUtil.setColor(Activity activity, int color)

License

copy iconCopydownload iconDownload
Copyright 2016 Jaeger Chen

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.

ViewPager not returning the right Fragment

copy iconCopydownload iconDownload
 Bundle bundle=getArguments();
 index = bundle.getInt("index");

IllegalStateException on setRequestedOrientation

copy iconCopydownload iconDownload
        try{
            // new activity created; force its orientation to portrait
            activity.setRequestedOrientation(
                    ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        }
        catch(Exception ignore){

        }

Unable to Merge Dex - Android Studio 3.0.1 DexArchiveMergerException

copy iconCopydownload iconDownload
apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.example"
        minSdkVersion 18
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

}
ext {
    supportLibraryVersion = '27.0.2'

}
dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

    implementation 'com.android.support:support-v4:27.0.2'
    implementation 'com.android.support:appcompat-v7:27.0.2'
    implementation 'com.android.support:design:27.0.2'


//constraint
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'

//butterknife
    implementation  'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
//avi:library
    implementation  'com.wang.avi:library:2.1.3'

//circleimageview
    implementation 'de.hdodenhof:circleimageview:2.2.0'

//retrofit2
    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
    implementation 'com.squareup.okhttp3:okhttp:3.8.0'
    implementation 'com.jakewharton.retrofit:retrofit1-okhttp3-client:1.0.2'


//recyclerview and cardview
    implementation  'com.android.support:recyclerview-v7:27.0.2'
    implementation 'com.android.support:cardview-v7:27.0.2'


//ZXing for barCode reader
    implementation  'com.journeyapps:zxing-android-embedded:3.2.0@aar'
    implementation  'com.google.zxing:core:3.2.1'

//play-services
    implementation  'com.google.android.gms:play-services-maps:11.4.0'

//gson
    implementation  'com.google.code.gson:gson:2.8.2'
//statusbarutil
    implementation  'com.jaeger.statusbarutil:library:1.4.0'
//glide
    implementation 'com.github.bumptech.glide:glide:4.6.1'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
//multidex
    implementation 'com.android.support:multidex:1.0.1'
}

Community Discussions

Trending Discussions on StatusBarUtil
  • How to deal with Error: failed linking references
  • ViewPager not returning the right Fragment
  • IllegalStateException on setRequestedOrientation
  • Unable to Merge Dex - Android Studio 3.0.1 DexArchiveMergerException
Trending Discussions on StatusBarUtil

QUESTION

How to deal with Error: failed linking references

Asked 2019-Jan-30 at 11:15

Today i got email for google api changes so i started changing things and i got into this mess. As these changes are new am adding this question. I have tried all the ways like checking resources names, finding any misspell, @id is changed to @+id etc.

Things am trying to do.

  • Update the new google places api
  • Update the dependencies versions

This is the only error am getting after building project. The backquoted error is link where i can land but there is nothing i can do there. (Unable to edit.)

Android resource linking failed Output:   

C:\Users\Varun\Documents\Projects\Android\Work\androidApp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:19: error: resource android:attr/dialogCornerRadius not found.

C:\Users\Varun\Documents\Projects\Android\Work\androidApp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:23: error: resource android:attr/dialogCornerRadius not found.

C:\Users\Varun\Documents\Projects\Android\Work\androidApp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2503: error: resource android:attr/fontVariationSettings not found. C:\Users\Varun\Documents\Projects\Android\Work\androidApp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2504: error: resource android:attr/ttcIndex not found. error: failed linking references.

Command: C:\Users\Varun\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\044967590956c301bbc7211def0c51bd\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
        C:\Users\Varun\AppData\Local\Android\Sdk\platforms\android-27\android.jar\
        --manifest\
        C:\Users\Varun\Documents\Projects\Android\Work\androidApp\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
        -o\
        C:\Users\Varun\Documents\Projects\Android\Work\androidApp\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
        -R\
        @C:\Users\Varun\Documents\Projects\Android\Work\androidApp\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
        --auto-add-overlay\
        --java\
        C:\Users\Varun\Documents\Projects\Android\Work\androidApp\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
        --proguard-main-dex\
        C:\Users\Varun\Documents\Projects\Android\Work\androidApp\app\build\intermediates\legacy_multidex_aapt_derived_proguard_rules\debug\processDebugResources\manifest_keep.txt\
        --custom-package\
        com.seatmate.android\
        -0\
        apk\
        --preferred-density\
        xxhdpi\
        --output-text-symbols\
        C:\Users\Varun\Documents\Projects\Android\Work\androidApp\app\build\intermediates\symbols\debug\R.txt\
        --no-version-vectors Daemon:  AAPT2 aapt2-3.2.1-4818971-windows Daemon #0 

build.gradle (app level)

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
   lintOptions {
        checkReleaseBuilds false
    }

    compileSdkVersion 27
    defaultConfig {
        applicationId "com.seatmate.android"
        minSdkVersion 17
        targetSdkVersion 27
        versionCode 41
        versionName "1.0.40"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        signingConfig signingConfigs.config
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

        }
        debug {
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

            debuggable true
        }
    }

    compileOptions {
        targetCompatibility 1.8
        sourceCompatibility 1.8
    }
    productFlavors {

    }

    dexOptions {
        javaMaxHeapSize "4g"
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:rules:1.0.2'
    androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
    androidTestImplementation 'com.android.support:support-annotations:28.0.0'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    implementation project(':linkedin-sdk')

    //TODO: NEW DEPENDENCIES STARTS FROM HERE

    //Butterknife
    implementation 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

    //Recycler View
    implementation 'com.android.support:recyclerview-v7:27.1.1'

    //CardView
    implementation 'com.android.support:cardview-v7:27.1.1'

    //GridLayout
    implementation 'com.android.support:gridlayout-v7:27.1.1'

    //Circular Image View
    implementation 'de.hdodenhof:circleimageview:2.2.0'

    //TextDrawable
    implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'

    //Expandable TextViewd
    implementation 'at.blogc:expandabletextview:1.0.5'

    //Analytics UI
    implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
    implementation 'devlight.io:arcprogressstackview:1.0.4'

    //Infinite Scroll
    implementation 'com.github.pwittchen:infinitescroll:0.0.1'

    //Spinners
    implementation 'com.github.ybq:Android-SpinKit:1.1.0'

    //Curved Drawer
    implementation 'com.rom4ek:arcnavigationview:1.0.3'

    //forBottom Tab Layout
    implementation 'com.github.nanjingboy:IconTabLayout:1.0.0'

    //bottom navigation bar
    implementation 'devlight.io:navigationtabbar:1.2.5'

    //Toolbar Search
    implementation 'com.miguelcatalan:materialsearchview:1.4.0'

    //Coordinator layout with tablayout
    implementation 'cn.hugeterry.coordinatortablayout:coordinatortablayout:1.2.2'

    //Smart Tab Layout
    implementation 'com.ogaclejapan.smarttablayout:library:1.6.1@aar'
    implementation 'com.ogaclejapan.smarttablayout:utils-v4:1.6.1@aar'

    //Shimmer Effect
    implementation 'io.supercharge:shimmerlayout:2.1.0'

    implementation 'com.facebook.shimmer:shimmer:0.1.0@aar'

    //For Glide
    implementation('com.github.bumptech.glide:glide:4.7.1@aar') {
        transitive = true
    }
    implementation 'com.github.florent37:glidepalette:2.1.2'
    implementation('com.github.bumptech.glide:recyclerview-integration:4.7.1') {
        transitive = false
    }
    implementation 'com.github.bumptech.glide:okhttp3-integration:4.7.1'

    //Glide pic loading
    annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
    implementation 'com.jaeger.statusbarutil:library:1.5.0'

    // implementation 'jp.wasabeef:glide-transformations:3.0.1'

    // Retrofit & OkHttp
    implementation 'com.squareup.retrofit2:retrofit:2.4.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'

    //Logging Interceptor
    implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'

    //RxJava
    implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
    implementation 'io.reactivex.rxjava2:rxjava:2.1.13'
    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'

    //Firebase
    implementation 'com.google.firebase:firebase-core:16.0.6'
    implementation 'com.google.firebase:firebase-messaging:17.3.4'
    implementation 'com.google.firebase:firebase-database:16.0.5'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8'

    //FireBase Support Prior Android 5.0
    implementation 'com.android.support:multidex:1.0.3'

    //Bottom Sheet
    implementation 'com.cocosw:bottomsheet:1.3.1@aar'

    //Status Bar Color
    implementation('com.github.niorgai:StatusBarCompat:2.1.4', {
        exclude group: 'com.android.support'
    })

    //Animations
    implementation 'com.github.2359media:EasyAndroidAnimations:0.8'

    //Snackbar
    implementation 'com.androidadvance:topsnackbar:1.1.1'

    //    implementation 'org.aviran.cookiebar2:cookiebar2:1.0.9'

    //implementation 'com.abby.app:tsnackbar:1.0.7'

    //Google Places API
//    implementation 'com.google.android.gms:play-services-places:15.0.1'
    implementation 'com.facebook.android:facebook-android-sdk:4.40.0'
    implementation 'com.google.android.libraries.places:places:1.0.0'

    //SnackBar Small Size

    //    implementation('de.keyboardsurfer.android.widget:crouton:1.8.5@aar') {

    //        // exclusion is not necessary, but generally a good idea.

    //        exclude group: 'com.google.android', module: 'support-v4'

    //    }

    //For Image Croping

    //    implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'

    //For Fab
    implementation 'com.github.clans:fab:1.6.4'
    implementation 'com.leinardi.android:speed-dial:1.0.2'

    //Sweet Aleart
    implementation 'cn.pedant.sweetalert:library:1.3'

    //StatusBar Color
    implementation 'com.readystatesoftware.systembartint:systembartint:1.0.3'

    //Pop up for relations
    implementation 'com.shehabic.droppy:Droppy:0.6.0@aar'

    //For Alignment of skills as grid
    implementation 'com.google.android:flexbox:1.0.0'

    //Wizard for Organization Registration
    implementation 'com.redbooth:WelcomeCoordinator:1.0.1'

    //For stepper view
    implementation 'com.kofigyan.stateprogressbar:stateprogressbar:1.0.0'

    //Instabug
    implementation 'com.instabug.library:instabug:8.0.14'

    //BlurViews
    implementation 'jp.wasabeef:blurry:2.1.1'

    //Animation
    implementation 'com.android.support:support-dynamic-animation:27.1.1'

    // Google Api Client library and Android extension
    implementation 'com.google.apis:google-api-services-people:v1-rev139-1.22.0'
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.api-client:google-api-client:1.22.0'
    implementation 'com.google.api-client:google-api-client-android:1.22.0'

    //Tap Target View for guidelines
    implementation 'com.getkeepsafe.taptargetview:taptargetview:1.12.0'
    implementation 'uk.co.samuelwall:material-tap-target-prompt:2.13.0'

    //Facebook Share
//    implementation 'com.facebook.android:facebook-share:[4,5)'

    //To check memory Leaks in app
//    debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.2'
//    releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.2'
//    // Optional, if you use support library fragments:
//    debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.2'

}

apply plugin: 'com.google.gms.google-services'

New Errors Even after adding dependency for Guava

Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\Varun\.gradle\caches\modules-2\files-2.1\com.google.guava\guava-jdk5\17.0\463f8378feba44df7ba7cd9272d01837dad62b36\guava-jdk5-17.0.jar

Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.


Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete

Caused by: com.android.tools.r8.utils.AbortException: Error: Type com.google.common.util.concurrent.Futures$FutureCombiner is referenced as an interface from `com.google.common.util.concurrent.Futures$7`.

ANSWER

Answered 2019-Jan-30 at 10:43

You will have to change your compileSdkVersion version to 28 and sync. Android Studio will ask to download the necessary files.

Also it would be better if you migrate to androidX package structure as you would be using sdk version 28. For that go to: Android Studio> Refactor[in top panel]> Migrate to AndroidX

Don't forget to backup your project before migration.

Source https://stackoverflow.com/questions/54438266

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install StatusBarUtil

You can download it from GitHub.
You can use StatusBarUtil like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the StatusBarUtil component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Share this Page

share link
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.