version:1.0

fix:
update:基本布局实现
This commit is contained in:
2023-02-09 16:03:47 +08:00
parent ace6008709
commit 34433f4f1f
360 changed files with 6211 additions and 8615 deletions

View File

@@ -1,70 +0,0 @@
package com.uiui.zyos.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);
}
}

View File

@@ -1,21 +0,0 @@
package com.uiui.zyos.view;
// add by codemx.cn ---- 20190712 ---plus- start
// modify by codemx.cn ---- 20190712 ---plus- start
public interface CustomContentCallbacks {
// Custom content is completely shown. {@code fromResume} indicates whether this was caused
// by a onResume or by scrolling otherwise.
void onShow(boolean fromResume);
// Custom content is completely hidden
void onHide();
// Custom content scroll progress changed. From 0 (not showing) to 1 (fully showing).
void onScrollProgressChanged(float progress);
// Indicates whether the user is allowed to scroll away from the custom content.
boolean isScrollingAllowed();
}