Your code has multiple problems:
In the java code, You forgot to cast your TextView:
tasklist_view = (TextView) findViewById(R.id.textView2);
In the XML, change
<button>
to<Button>
In the ID attribute, you forgot to put a plus before assigning the Id.:
android:id="@+id/addButton"
In
RelativeLayout
s, you can not use a view for relative positioning without declaring it, so change your xml to this:
<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/tasks"
android:textColor="#12ade4"
android:textSize="20sp" />
<Button
android:id="@+id/addButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/add_button"
android:textSize="15sp"
android:padding="10dp"
android:layout_alignParentBottom="true"/>