Initial commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package com.twitter.sdk.android.tweetcomposer.internal.util;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.ScrollView;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ObservableScrollView extends ScrollView {
|
||||
ScrollViewListener a;
|
||||
|
||||
public interface ScrollViewListener {
|
||||
void a(int i);
|
||||
}
|
||||
|
||||
public ObservableScrollView(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onScrollChanged(int i, int i2, int i3, int i4) {
|
||||
super.onScrollChanged(i, i2, i3, i4);
|
||||
ScrollViewListener scrollViewListener = this.a;
|
||||
if (scrollViewListener != null) {
|
||||
scrollViewListener.a(i2);
|
||||
}
|
||||
}
|
||||
|
||||
public void setScrollViewListener(ScrollViewListener scrollViewListener) {
|
||||
this.a = scrollViewListener;
|
||||
}
|
||||
|
||||
public ObservableScrollView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
public ObservableScrollView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
}
|
||||
|
||||
@TargetApi(21)
|
||||
public ObservableScrollView(Context context, AttributeSet attributeSet, int i, int i2) {
|
||||
super(context, attributeSet, i, i2);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user