Tags » Imageview

Android Picasso

Picasso adalah nama seorang desainer terkenal asal spanyol, saking terkenalnya beliau sampai-sampai dijadikan nama library.

Dengan menggunakan library picasso kita bisa me-load image dengan cepat, yang pertama kali kita lakukan adalah mendownload library picasso via gradle… 688 more words

Android Imageview

hiểu rỏ hơn ImageView.ScaleType

Android có hàng tỷ thiết bị, đa dạng phần cứng, kích thước màn hình, tỷ lệ màn hình,… cho nên việc sử lý hình ảnh trên Android chưa bao giờ là dễ dàng. 721 more words

Android

[Android] Android Development for Beginners (1)

 [내용정리]  Android Development for Beginners LESSON 1

  • TextView (View)


참고 : android developers #androidDev #protip

  • ImageView (View)

android:scaleType=”centerCrop”

-orientation : vertical / horizontal…

60 more words
Android

fun with animation

Android animation with ripple effect on buttons. Will add description later. for now enjoy coding

Main class :

public class MainActivity extends AppCompatActivity {

    ImageView image;
    TextView text;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        image = (ImageView)findViewById(R.id.imageView);
        text = (TextView) findViewById(R.id.textView2);

        FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
        fab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                        .setAction("Action", null).show();
            }
        });
    }

    public void clockwise(View view){

        Animation animation = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.my_animation);
        image.startAnimation(animation);
        text.startAnimation(animation);
    }

    public void zoom(View view){
       Animation animation1 = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.cloackwise);
        image.startAnimation(animation1);
        text.startAnimation(animation1);
    }

    public void fade(View view){
        Animation animation1 = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.fade);
        image.startAnimation(animation1);
        text.setAnimation(animation1);
    }

    public void blink(View view){
        Animation animation1 = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.blink);
        image.startAnimation(animation1);
        text.setAnimation(animation1);
    }

    public void move(View view){
        Animation animation1 = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.move);
        image.startAnimation(animation1);
        text.setAnimation(animation1);
    }

    public void slide(View view){
        Animation animation1 = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.slide);
        image.startAnimation(animation1);
        text.setAnimation(animation1);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present. 1,056 more words
Android