January 2019
Intermediate to advanced
392 pages
10h 11m
English
To utilize the post adapter, we need to create an xml file named post_item.xml, and here we will implement the UI. Here is a piece of the code (the entire code can be found on GitHub):
-------- <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" tools:text="@tools:sample/date/ddmmyy" android:id="@+id/postedDate" android:textAppearance="?android:textAppearanceSmall" app:layout_constraintTop_toBottomOf="@+id/profileName" app:layout_constraintStart_toStartOf="@+id/profileName" android:layout_marginTop="4dp" app:layout_constraintBottom_toBottomOf="parent" android:layout_marginBottom="4dp"/> </android.support.constraint.ConstraintLayout> <TextView android:layout_width="0dp" android ...
Read now
Unlock full access