Press astrid on empty list to create new task

pull/14/head
Amy Tang 13 years ago
parent 69b4a5c091
commit e4b57e963f

@ -223,7 +223,6 @@ public class TagViewActivity extends TaskListActivity {
}
} else {
((TextView)taskListView.findViewById(android.R.id.empty)).setText(R.string.TLA_no_items);
}
setUpMembersGallery();

@ -93,6 +93,11 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<View
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="@android:drawable/divider_horizontal_dark" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
@ -116,6 +121,7 @@
android:paddingBottom="10dip"
android:paddingLeft="10dip"
android:layout_gravity="right">
<TextView
android:id="@+id/description_label"
android:layout_width="wrap_content"
@ -131,6 +137,7 @@
android:layout_below="@id/description_label"
android:layout_marginTop="10dip" />
</RelativeLayout>
</LinearLayout>
<!-- Footer -->

@ -19,6 +19,7 @@
android:layout_gravity="center"
android:gravity="center"
android:visibility="gone"
android:clickable="true"
android:text="@string/TLA_no_items"
style="@style/TextAppearance.TLA_NoItems"/>

@ -96,7 +96,7 @@
<!-- ================================================= TaskListActivity == -->
<!-- Task List: Displayed instead of list when no items present -->
<string name="TLA_no_items">You have no tasks! Want to add something?</string>
<string name="TLA_no_items">You have no tasks! \n Want to add something?</string>
<!-- Menu: Add-ons -->
<string name="TLA_menu_addons">Add-ons</string>

@ -477,6 +477,15 @@ public class TaskListActivity extends ListActivity implements OnScrollListener,
}
});
//set listener for astrid icon
((TextView)findViewById(android.R.id.empty)).setOnClickListener( new OnClickListener() {
@Override
public void onClick(View v) {
quickAddButton.performClick();
}
});
// gestures / animation
try {
GestureService.registerGestureDetector(this, R.id.gestures, R.raw.gestures, this);

Loading…
Cancel
Save