This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cn.mi; | |
import android.app.Activity; | |
import android.app.Application; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.util.Log; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.annotation.SuppressLint; | |
import android.app.Instrumentation; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Path; | |
import android.graphics.PointF; | |
import android.support.v4.graphics.ColorUtils; | |
import android.util.AttributeSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ViewModel and LiveData | |
implementation "android.arch.lifecycle:extensions:1.1.0" | |
// alternatively, just ViewModel | |
implementation "android.arch.lifecycle:viewmodel:1.1.0" | |
// alternatively, just LiveData | |
implementation "android.arch.lifecycle:livedata:1.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by zhoubinjia on 16/6/12. | |
*/ | |
public class LoadMoreDecoration extends RecyclerView.ItemDecoration { | |
private static final String TAG = LoadMoreDecoration.class.getSimpleName(); | |
private View mView; | |
private boolean mViewInited = false; | |
private Listener mListener; | |
private boolean mLoadComplete = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* LiveData Bus | |
* | |
* @author shilong | |
* @since [历史 创建日期:3/19/21] | |
*/ | |
public final class LiveDataBus { | |
private static LiveDataBus liveDataBus; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LifecycleFragment extends Fragment implements LifecycleOwner { | |
private final LifecycleRegistry registry = new LifecycleRegistry(this); | |
public LifecycleFragment() { | |
} | |
@NonNull | |
public Lifecycle getLifecycle() { | |
return this.registry; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=dwm | |
Comment=Suckless Window Manager | |
Exec=/usr/local/bin/dwm | |
TryExec=/usr/local/bin/dwm | |
Icon=/home/cesc/dwm/dwm.png | |
Type=Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.longzhu.utils.android; | |
import android.text.TextUtils; | |
import android.util.Log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseRecyclerView extends RecyclerView implements LifecycleObserver { | |
public BaseRecyclerView(@NonNull Context context) { | |
super(context); | |
init(context); | |
} | |
public BaseRecyclerView(@NonNull Context context, @Nullable AttributeSet attrs) { | |
super(context, attrs); | |
init(context); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.fragment.app.DialogFragment; | |
import androidx.fragment.app.FragmentManager; | |
import androidx.fragment.app.FragmentTransaction; | |
import org.jetbrains.annotations.NotNull; | |
import java.lang.reflect.Field; | |
/** | |
* Fix `DialogFragment` crash questions ... <br /><br /> | |
* |
OlderNewer