Building the LoginActivity
Let's move back into the Chat.Droid
project; before we create our Activity
we need to create the layout using a new XML sheet. Add a new file called LoginView.xml
into the Resources | layout
and implement the following:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/tableLayout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:gravity="center" android:background="#FFFFFF"> <TextView android:id="@+id/titleTextView" android:text="Chat" android:fontFamily="helvetica" android:textStyle="bold" android:textSize="22dp" android:textColor="#000000" android:paddingBottom="20dp" android:layout_width="wrap_content" ...
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.