Skip to content
No description, website, or topics provided.
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.
.assets
glide-debug-indicator
gradle/wrapper
.gitignore
LICENSE.txt
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Glide Debug Indicator

Download

Displays a colored ribbon over images which indicates where the image was loaded from.

Screenshot

Usage

dependencies {
    debugImplementation "com.github.technoir42:glide-debug-indicator:0.9.1"
}

Kotlin

// Enable debug indicator for a specific request:
glide.load(url)
    .withDebugIndicator()
    .into(imageView)

// Enable debug indicator for all requests:
@GlideModule
class MyAppGlideModule : AppGlideModule() {
    override fun applyOptions(context: Context, builder: GlideBuilder) {
        builder.enableDebugIndicators()
    }
}

Java

// Enable debug indicator for a specific request:
glide.load(url)
    .transition(DrawableTransitionOptions.with(DebugIndicatorTransitionFactory.DEFAULT))
    .into(imageView);

// Enable debug indicators for all requests:
@GlideModule
public class MyAppGlideModule extends AppGlideModule {
    @Override
    public void applyOptions(@NonNull Context context, @NonNull GlideBuilder builder) {
        builder.setDefaultTransitionOptions(Drawable.class, DrawableTransitionOptions.with(DebugIndicatorTransitionFactory.DEFAULT));
    }
}

Legend

  • #00ff00 Memory Cache
  • #0066ff Disk Cache
  • #ff0000 Remote
  • #ffff00 Local

License

Copyright 2019 Sergey Chelombitko

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.