package net.computingtutor.robert.computingtutor

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.TextView

class BaseConverterUI : BaseActivity() {
    var showingHelp: Boolean = false
    lateinit var helpTextView: TextView

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_base_converter_ui)

        helpTextView = findViewById(R.id.baseConverterHelpTextView) as TextView
    }

    fun showBaseConverterHelp(view: View) {
        if (showingHelp) {
            helpTextView.visibility = View.GONE
            showingHelp = false
        } else {
            helpTextView.visibility = View.VISIBLE
            showingHelp = true
        }
    }
}
