Created
May 14, 2020 20:45
-
-
Save nicoqueijo/94cd3be5bc79eac23309e83bd2f183cb 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
| class MainActivity : AppCompatActivity() { | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| setContentView(R.layout.activity_main) | |
| } | |
| companion object { | |
| private val addedCurrencies = mutableListOf( | |
| Currency("ARS", "Argentine Peso", R.drawable.ars), | |
| Currency("AUD", "Australian Dollar", R.drawable.aud), | |
| Currency("BRL", "Brazilian Real", R.drawable.brl), | |
| Currency("CAD", "Canadian Dollar", R.drawable.cad), | |
| Currency("CHF", "Swiss Franc", R.drawable.chf), | |
| Currency("CNY", "Chinese Yuan Renminbi", R.drawable.cny), | |
| Currency("COP", "Colombian Peso", R.drawable.cop), | |
| Currency("DKK", "Danish Krone", R.drawable.dkk), | |
| Currency("EUR", "Euro", R.drawable.eur), | |
| Currency("GBP", "British Pound", R.drawable.gbp), | |
| Currency("INR", "Indian Rupee", R.drawable.inr), | |
| Currency("JPY", "Japanese Yen", R.drawable.jpy), | |
| Currency("KRW", "South Korean Won", R.drawable.krw), | |
| Currency("MXN", "Mexican Peso", R.drawable.mxn), | |
| Currency("SEK", "Swedish Krona", R.drawable.sek), | |
| Currency("USD", "United States Dollar", R.drawable.usd) | |
| ) | |
| private val removedCurrencies: Stack<Currency> = Stack() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment