This file contains hidden or 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
    
  
  
    
  | private fun setupAnimChainedListener(){ | |
| springAnimationTranslationX1.addUpdateListener{ | |
| _, value ,_ -> springAnimationTranslationX2.animateToFinalPosition(value) | |
| } | |
| springAnimationTranslationY1.addUpdateListener { | |
| _, value, _ -> springAnimationTranslationY2.animateToFinalPosition(value) | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | private val springAnimationTranslationX1: SpringAnimation by lazy(LazyThreadSafetyMode.NONE) { | |
| createSpringAnim(img,DynamicAnimation.TRANSLATION_X) | |
| } | |
| private val springAnimationTranslationY1: SpringAnimation by lazy(LazyThreadSafetyMode.NONE){ | |
| createSpringAnim(img,DynamicAnimation.TRANSLATION_Y) | |
| } | |
| private val springAnimationTranslationX2: SpringAnimation by lazy(LazyThreadSafetyMode.NONE) { | |
| createSpringAnim(img2,DynamicAnimation.TRANSLATION_X) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | class MainActivity : AppCompatActivity() { | |
| val flingAnimationX: FlingAnimation by lazy(LazyThreadSafetyMode.NONE){ | |
| FlingAnimation(img,DynamicAnimation.X).setFriction(1.1f) | |
| } | |
| val flingAnimationY: FlingAnimation by lazy(LazyThreadSafetyMode.NONE){ | |
| FlingAnimation(img,DynamicAnimation.Y).setFriction(1.1f) | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | class MainActivity : AppCompatActivity() { | |
| var xDiffInTouchPointAndViewTopLeftCorner : Float = 0f | |
| var yDiffInTouchPointAndViewTopLeftCorner : Float = 0f | |
| private val springForce: SpringForce by lazy(LazyThreadSafetyMode.NONE){ | |
| SpringForce(0f).apply { | |
| stiffness = SpringForce.STIFFNESS_MEDIUM | |
| dampingRatio = SpringForce.DAMPING_RATIO_HIGH_BOUNCY | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | Bikin String, dan Method dibawah ini di Main Activity yang jadi parent dai Fragmentnya. | |
| /* | |
| String TabFragment; | |
| public void setTabFragmetn(String TabFragment){ | |
| this.TabFragment = TabFragment; | |
| } | |
| public String getTabFragmetn(){ | 
  
    
      This file contains hidden or 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.randy.tablayout; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentManager; | |
| import android.support.v4.app.FragmentStatePagerAdapter; | |
| import android.support.v4.view.ViewPager; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.support.v7.widget.Toolbar; | |
| import android.support.design.widget.TabLayout; | 
  
    
      This file contains hidden or 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 java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| public class Solution { | |
| public static void main(String[] args) { | |
| String Kata = "133ab"; | |
| String Patternz = "^[0-9]{1,3}[a-bA-B]{1,2}$"; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | interface Buku { | |
| public void cover(); | |
| public void judul(); | |
| public void Bab(); | |
| } | |
| public class BukuBagus implements Buku{ | |
| @Override | |
| public void cover() { | 
NewerOlder