app/src/main/java/me/zhanghai/android/douya/ui/AppBarWrapperLayout.java
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* Copyright (c) 2015 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.ui;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.v4.view.animation.FastOutLinearInInterpolator;
import android.support.v4.view.animation.FastOutSlowInInterpolator;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import butterknife.BindInt;
import butterknife.ButterKnife;
import me.zhanghai.android.douya.R;
import me.zhanghai.android.douya.util.ViewUtils;
/**
* A {@link LinearLayout} that manages showing and hiding the AppBar and its shadow with support.
*/
public class AppBarWrapperLayout extends LinearLayout {
@BindInt(android.R.integer.config_shortAnimTime)
int mAnimationDuration;
private View mAppbarView;
private View mShadowCompatView;
private boolean mShowing = true;
private AnimatorSet mAnimator;
public AppBarWrapperLayout(Context context) {
super(context);
init();
}
public AppBarWrapperLayout(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
public AppBarWrapperLayout(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public AppBarWrapperLayout(Context context, AttributeSet attrs, int defStyleAttr,
int defStyleRes) {
后面还有 182 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
