Displays a colored ribbon over images which indicates where the image was loaded from.
dependencies {
debugImplementation "com.github.technoir42:glide-debug-indicator:0.9.1"
}
// 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()
}
}
// 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));
}
}
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.