October 2018
Intermediate to advanced
464 pages
15h 17m
English
To demonstrate reading content from both resource locations, we'll create a split layout. We also need to create both resource folders as they are not included in the default Android project. Here are the steps:
<?xml version="1.0" encoding="utf-8"?><LinearLayout 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" android:orientation="vertical"> <TextView android:id="@+id/textViewRaw" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:gravity="center_horizontal|center_vertical" ...