July 2018
Intermediate to advanced
266 pages
7h 11m
English
We need a layout to display the information of the articles, so let's create an XML file for that in the layout folder:

Let's make it a LinearLayout with vertical orientation and some padding at the start and end:
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:paddingStart="14dp" android:paddingEnd="14dp" android:layout_height="wrap_content"></LinearLayout>
Inside it, we will add three text views; each of them will display some of the article's information:
<TextView
Read now
Unlock full access