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.brucetoo.androidnotes.tools; | |
import android.os.Handler; | |
import android.os.Message; | |
import java.lang.ref.WeakReference; | |
/** | |
* Created by Bruce Too | |
* On 2018/10/26. |
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.brucetoo.wifip2p; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.net.NetworkInfo; | |
import android.net.wifi.WpsInfo; | |
import android.net.wifi.p2p.WifiP2pConfig; | |
import android.net.wifi.p2p.WifiP2pDevice; |
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
1.保存唯一唯一的包名 | |
-keepattributes InnerClasses,... | |
-keeppackagenames ** | |
2.防止有些资源没被混淆 | |
#-dontshrink | |
3.去掉抛出异常时保留代码行数 | |
#-keepattributes SourceFile,LineNumberTable |
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.brucetoo.expandrecyclerview.reyclerview; | |
import android.graphics.Canvas; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
/** |
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
final Toast toast = new Toast(getContext()); | |
toast.setDuration(Toast.LENGTH_SHORT); | |
toast.setGravity(Gravity.TOP | Gravity.FILL_HORIZONTAL, 0, 0); | |
View view = LayoutInflater.from(getContext()).inflate(R.layout.layout_game_guide_25, null); | |
((TextView) view.findViewById(R.id.txt_hint)).setText(getResources().getText(R.string.game_tool_n_phone_permission_hint)); | |
toast.setView(view); | |
CountDownTimer toastCountDown = new CountDownTimer(5000, 1000 ) { | |
public void onTick(long millisUntilFinished) { | |
toast.show(); | |
} |
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.brucetoo.expandrecyclerview.animator; | |
import android.animation.Animator; | |
import android.animation.ArgbEvaluator; | |
import android.animation.ObjectAnimator; | |
import android.animation.ValueAnimator; | |
import android.support.annotation.IntRange; | |
import android.support.v4.view.ViewCompat; | |
import android.view.View; | |
import android.view.animation.AccelerateInterpolator; |
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.brucetoo.expandrecyclerview.lockscreen; | |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.os.Build; | |
import android.support.annotation.IdRes; | |
import android.support.v4.view.MotionEventCompat; | |
import android.support.v4.view.ViewCompat; | |
import android.support.v4.widget.ViewDragHelper; |
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.stylingandroid.viewpageranimator; | |
import android.animation.ArgbEvaluator; | |
import android.animation.FloatEvaluator; | |
import android.animation.IntEvaluator; | |
import android.animation.TypeEvaluator; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.VisibleForTesting; | |
import android.support.v4.view.PagerAdapter; | |
import android.support.v4.view.ViewPager; |
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.aliyun.wireless.vos.appstore.shortcut; | |
import android.app.Activity; | |
import android.os.Handler; | |
import android.os.Message; | |
import java.lang.ref.WeakReference; | |
/** | |
* Created by Bruce Too |
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
/** | |
* Copyright (c) 2011-2013, Lukas Eder, [email protected] | |
* All rights reserved. | |
* | |
* This software is licensed to you under the Apache License, Version 2.0 | |
* (the "License"); You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Redistribution and use in source and binary forms, with or without |
NewerOlder