This commit is contained in:
2021-12-03 17:46:59 +08:00
commit 6c2eb5a1a3
287 changed files with 3854 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
package com.uiui.os.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.FrameLayout;
import androidx.annotation.AttrRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
public class CustomContent extends FrameLayout implements CustomContentCallbacks {
public CustomContent(@NonNull Context context) {
super(context);
init(context);
}
public CustomContent(@NonNull Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
init(context);
}
public CustomContent(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr) {
super(context, attrs, defStyleAttr);
init(context);
}
private void init(Context context){
}
@Override
protected void onFinishInflate() {
super.onFinishInflate();
}
@Override
public void onShow(boolean fromResume) {
}
@Override
public void onHide() {
}
@Override
public void onScrollProgressChanged(float progress) {
}
// 滑到负一屏是否再允许滑动true:允许滑动到主屏false:不允许再滑动
@Override
public boolean isScrollingAllowed() {
return false;
}
@Override
public boolean onTouchEvent(MotionEvent event) {
return super.onTouchEvent(event);
}
@Override
public void onViewAdded(View child) {
super.onViewAdded(child);
}
}