Files
XiaoxintongSystemOS/app/src/main/java/com/xxpatx/os/custom/CustomContent.java
tongtongstudio f03f8df38d version:1.2.4
fix:
update:优化显示未读短信和未接来电,增加手电筒和数据开关
2024-09-24 10:30:27 +08:00

71 lines
1.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.xxpatx.os.custom;
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);
}
}