The TodoItemTypeFragment
class is an inner class of the TodosActivity
activity and contains content for each type of to-do item. For the sake of simplicity, we show some static content (highlighted in the following code). Refer to Chapter 5, Synchronizing Data, for information on synchronizing data between wearable and handheld apps:
public static class TodoItemTypeFragment extends Fragment { public static final String ARG_TODO_TYPE = "todo_type"; TextView titleView = null; TextView descView = null; public TodoItemTypeFragment() { // Empty constructor required for fragment subclasses } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_todo_item, container, false); titleView = (TextView) rootView.findViewById(R.id.todo_card_title); descView = (TextView) rootView.findViewById(R.id.todo_card_desc)...