August 2017
Intermediate to advanced
440 pages
10h
English
Another behavior we need to implement is character search. Here is the use case definition: after starting the application, the user can search for a character by their name.
To add it, we are going to add EditText to the activity_main layout:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/charactersView" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white" android:fitsSystemWindows="true"> <!-- Dummy item to prevent EditText from receiving focus on initial load --> <LinearLayout ...
Read now
Unlock full access