July 2018
Intermediate to advanced
266 pages
7h 11m
English
First, let's copy the layout file activity_main.xml and name that copy activity_search.xml:

Once that is done, let's create a new Kotlin file, and name it SearchActivity:

Now we will create an activity inside that file. Initially, we want it to simply inflate the layout that we just created:
class SearchActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_search) }}
Now we need to modify the layout so that we include ...
Read now
Unlock full access