Tags » Button » Page 2

TAD Day 2: Fruity button napkins

We use cloth napkins for meals in our house. Until recently, I did not have any smaller sized ones that could be used when we were entertaining without a meal involved. 76 more words

Finished

Android Basics - Add a Button and display a Toast on click

Time for some Action. Let’s add a Button to the Layout XML file and on click of button let’s display a message to the user. 84 more words

Android App Development

McLaren Blinded By Past Success

2015 saw McLaren fall greatly from its prestigious reputation as a competitive team in Formula 1. The British team that has such a racing heritage was embarrassed by mechanical and reliability problems when the team decided to partner once again the Honda. 920 more words

My Favorite Things - February!

Welcome to the second installment of My Favorite Things, my 2016 Block of the Month!

My Favorite Things includes 12 brand new patterns to paper piece… 399 more words

Craftsy

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

Preemie 101

With my water breaking at 20 weeks, I was told in no uncertain terms that it was very unlikely that this baby would survive. And if it were to survive there would be immense challenges. 359 more words

Life After Loss