Created
July 19, 2016 07:55
-
-
Save osyo-manga/64b23985066b635adfbb617a5fecfda3 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
package fc.dbx0.lightboxer | |
import android.app.Activity | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import android.util.Log | |
import android.view.View | |
import android.widget.ImageView | |
import com.bumptech.glide.Glide | |
class MainActivity : Activity(), View.OnClickListener { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
val imageView = findViewById(R.id.imageView) as ImageView | |
intent?.run { | |
Glide.with(this@MainActivity) | |
.load("https://pbs.twimg.com/media/CGozUNGUAAAbDoc.jpg") | |
.into(imageView) | |
} | |
} | |
override fun onTouch(v: View?){ | |
System.out.printf("onClick") | |
finish() | |
} | |
override fun onClick(v: View?){ | |
System.out.printf("onClick") | |
finish() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment