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
| class CustomView: UIView { | |
| //initWithFrame to init view from code | |
| override init(frame: CGRect) { | |
| super.init(frame: frame) | |
| setupView() | |
| } | |
| //initWithCode to init view from xib or storyboard | |
| required init?(coder aDecoder: NSCoder) { | |
| super.init(coder: aDecoder) |
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 com.interfacemockup.ttt; | |
| import androidx.annotation.NonNull; | |
| import androidx.appcompat.app.AppCompatActivity; | |
| import android.graphics.Color; | |
| import android.graphics.PorterDuff; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Bundle; | |
| import android.view.Menu; |