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.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.TextView; | |
import java.util.ArrayList; | |
public class Adapter extends RecyclerView.Adapter<Adapter.Holder> { |
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.graphics.Typeface; | |
import android.os.Bundle; | |
import android.support.design.widget.TabLayout; | |
import android.support.v7.app.AppCompatActivity; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.TextView; | |
public class MainActivity extends AppCompatActivity { |
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 example.andrdoitechweb.viewpagertransformer.Transformation; | |
import android.support.v4.view.ViewPager; | |
import android.util.Log; | |
import android.view.View; | |
public class AntiClockSpinTransformation implements ViewPager.PageTransformer { | |
@Override | |
public void transformPage(View page, float position) { |
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 example.andrdoitechweb.viewpagertransformer.Transformation; | |
import android.support.v4.view.ViewPager; | |
import android.util.Log; | |
import android.view.View; | |
public class Clock_SpinTransformation implements ViewPager.PageTransformer { | |
@Override | |
public void transformPage(View page, float position) { |
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 example.andrdoitechweb.viewpagertransformer.Transformation; | |
import android.support.v4.view.ViewPager; | |
import android.view.View; | |
public class CubeInDepthTransformation implements ViewPager.PageTransformer { | |
@Override | |
public void transformPage(View page, float position) { | |
page.setCameraDistance(20000); |
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 example.andrdoitechweb.viewpagertransformer.Transformation; | |
import android.support.v4.view.ViewPager; | |
import android.util.Log; | |
import android.view.View; | |
public class CubeInRotationTransformation implements ViewPager.PageTransformer{ | |
@Override | |
public void transformPage(View page, float position) { |
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 example.andrdoitechweb.viewpagertransformer.Transformation; | |
import android.support.v4.view.ViewPager; | |
import android.view.View; | |
public class CubeInScalingTransformation implements ViewPager.PageTransformer { | |
@Override | |
public void transformPage(View page, float position) { | |
page.setCameraDistance(20000); |
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 example.andrdoitechweb.viewpagertransformer.Transformation; | |
import android.support.v4.view.ViewPager; | |
import android.view.View; | |
public class CubeOutDepthTransformation implements ViewPager.PageTransformer { | |
@Override | |
public void transformPage(View page, float position) { | |
if (position < -1){ // [-Infinity,-1) |
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 example.andrdoitechweb.viewpagertransformer.Transformation; | |
import android.support.v4.view.ViewPager; | |
import android.view.View; | |
public class CubeOutRotationTransformation implements ViewPager.PageTransformer { | |
@Override | |
public void transformPage(View page, float position) { | |
if (position < -1){ // [-Infinity,-1) | |
// This page is way off-screen to the left. | |
page.setAlpha(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
package example.andrdoitechweb.viewpagertransformer.Transformation; | |
import android.support.v4.view.ViewPager; | |
import android.view.View; | |
public class CubeOutScalingTransformation implements ViewPager.PageTransformer{ | |
@Override | |
public void transformPage(View page, float position) { | |
if (position < -1){ // [-Infinity,-1) |
OlderNewer