Created
July 21, 2020 06:13
-
-
Save ForceGT/1ce65bf73684cfef82dc2b46a13412a1 to your computer and use it in GitHub Desktop.
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
// All files to be placed inside MainActivity.java file | |
package com.example.examplehelloworld; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.ImageView; | |
import android.widget.Toast; | |
public class MainActivity extends AppCompatActivity { | |
private Button button; | |
public void fade(View view){ | |
Log.i("Info", "Image Clicked"); | |
ImageView imageView = findViewById(R.id.imageView1); | |
imageView.animate().alpha(0).setDuration(2000); | |
} | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
button = findViewById(R.id.button2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment