package me.texx.Texx import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.view.Window import android.view.WindowManager import android.widget.ImageView import daio.io.dresscode.dressCodeName import daio.io.dresscode.matchDressCode import me.texx.Texx.util.ThemeUtil.getThemeName import org.jetbrains.anko.longToast class MediaPreviewActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { matchDressCode() super.onCreate(savedInstanceState) dressCodeName = getThemeName(this) requestWindowFeature(Window.FEATURE_NO_TITLE) window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN) setContentView(R.layout.activity_media_preview) val file = intent.getStringExtra("file") val imageView = findViewById(R.id.imagePreview) longToast(file) } }