https://dev.to/aspittel/a-web-design-crash-course-from-one-non-designer-to-another-2o2m
- Uses consistent colors throughout
- Uses non-clashing colors
- The color choice makes sense for the business purpose of the site
https://dev.to/aspittel/a-web-design-crash-course-from-one-non-designer-to-another-2o2m
| package com.example.android.texttospeech | |
| import android.os.Build | |
| import android.support.v7.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.speech.tts.TextToSpeech | |
| import android.util.Log | |
| import kotlinx.android.synthetic.main.activity_main.* | |
| import java.util.* |
| package com.example.android.lifecycle | |
| import android.support.v7.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.util.Log | |
| // When the Activity first time loads the events called are: | |
| // onCreate(), onStart(), onResume() | |
| // When click on home button, the Activity goes to the background |
| package com.example.android.musicplayer | |
| import android.media.MediaPlayer | |
| import android.support.v7.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.widget.Toast | |
| import kotlinx.android.synthetic.main.activity_main.* | |
| class MainActivity : AppCompatActivity() { |
| class ReportCard constructor(var name: String) { | |
| var englishGrade: Char? = null | |
| var mathGrade: String? = null | |
| var historyGrade: Int? = null | |
| var biologyGrade: Double? = null | |
| constructor(name: String, englishGrade: Char?, mathGrade: String?, historyGrade: Int?, biologyGrade: Double?) : this(name) { | |
| this.englishGrade = englishGrade | |
| this.mathGrade = mathGrade | |
| this.historyGrade = historyGrade |
| /* Java */ | |
| public class Book { | |
| private String title; | |
| private Long isbn; | |
| public Book(String title, Long isbn) { | |
| this.title = title; | |
| this.isbn = isbn; | |
| } | |
| public String getTitle() { | |
| return title; |
| package com.example.android.cookies | |
| import android.support.v7.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.view.View | |
| import android.widget.ImageView | |
| import android.widget.TextView | |
| class MainActivity : AppCompatActivity() { |
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- Business Card --> | |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context=".BusinessCardActivity"> | |
| <ImageView | |
| android:id="@+id/business_image_view" |