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.content.Context; | |
import android.util.AttributeSet; | |
import android.view.View; | |
public class TemplateCustomView extends View { | |
private long mLastInvalidate; | |
private boolean mIsOnDetachedFromWindow; |
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 StarInterpolator implements Interpolator { | |
public StarInterpolator() { | |
} | |
@SuppressWarnings({"UnusedDeclaration"}) | |
public StarInterpolator(Context context, AttributeSet attrs) { | |
} | |
private static float bounce(float t) { |
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 AttenuationInterpolator implements Interpolator { | |
public AttenuationInterpolator() { | |
} | |
@SuppressWarnings({"UnusedDeclaration"}) | |
public AttenuationInterpolator(Context context, AttributeSet attrs) { | |
} | |
@Override |
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.animation.TypeEvaluator; | |
import android.animation.ValueAnimator; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Path; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.view.animation.AccelerateDecelerateInterpolator; |
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.list.view.amyu.twitterfavorite; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.animation.Interpolator; | |
/** | |
* Created by amyu on 15/04/28. | |
*/ | |
public class StarInterpolator implements Interpolator { |
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.content.Context; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.view.ViewGroup; | |
/** | |
* Created by amyu- on 2015/04/19. | |
*/ | |
public class GeneralViewGroup extends ViewGroup { |
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 MaxHeightListView extends ListView { | |
public MaxHeightListView(Context context) { | |
super(context); | |
} | |
public MaxHeightListView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} |
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.content.Context; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.widget.ListView; | |
/** | |
* Created by amyu on 15/02/28. | |
*/ | |
public class HitRectListView extends ListView { |
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.example.amyu.mediaplayersmaple; | |
import android.app.Activity; | |
import android.media.AudioManager; | |
import android.media.MediaPlayer; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.os.PowerManager; | |
import android.util.Log; | |
import android.widget.SeekBar; |
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
<uses-feature | |
android:name="android.hardware.touchscreen" | |
android:required="false" /> | |
<uses-feature | |
android:name="android.software.leanback" | |
android:required="true" /> | |
<uses-feature | |
android:name="android.hardware.microphone" |