Custom row appearance
Let's get back to the ListAdapter
implementation and design our ListView
row appearance. Open the Resources | Layout folder, create a new .xml
file for the cell appearance, call it CustomCell.xml
, and copy in the following XML code:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" android:weightSum="4"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1"> <ImageView android:id="@+id/image" android:layout_width="100dp" android:layout_height="100dp" android:adjustViewBounds="true" ...
Get Xamarin Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.