app/src/main/java/com/example/steve/todoandroid/editScreenFragment.java
//initializes the spinner and sets it according to the item being passed in.
initializes the spinner and sets it according to the item being passed in.
initializes the spinner and sets it according to the item being passed in .
public void initializePrioritySpinner(View v)
    {
        Spinner prioritySpinner = (Spinner) v.findViewById(R.id.priority);
        ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getActivity(), R.array.priority_array, R.layout.support_simple_spinner_dropdown_item);
        prioritySpinner.setAdapter(adapter);
        String priority = currentDB.getPriority();
        if (!priority.equals(null)) {
            int spinnerPosition = adapter.getPosition(priority);
            prioritySpinner.setSelection(spinnerPosition);
        }
    }
public void initializePrioritySpinner ( View v ) { Spinner prioritySpinner = ( Spinner ) v . findViewById ( R . id . priority ) ; ArrayAdapter < CharSequence > adapter = ArrayAdapter . createFromResource ( getActivity ( ) , R . array . priority_array , R . layout . support_simple_spinner_dropdown_item ) ; prioritySpinner . setAdapter ( adapter ) ; String priority = currentDB . getPriority ( ) ; if ( ! priority . equals ( null ) ) { int spinnerPosition = adapter . getPosition ( priority ) ; prioritySpinner . setSelection ( spinnerPosition ) ; } }
initializes the spinner and sets it according to the item being passed in.
initializes the spinner and sets it according to the item being passed in .
//TODO: the background is dark and so's the text.Fix this later.