Java Code Examples for android.widget.LinearLayout.getTag()

The following are Jave code examples for showing how to use getTag() of the android.widget.LinearLayout class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: ePills   File: AddPillSetTime.java   View Source Code Vote up 6 votes
@Override
public void onSaveInstanceState(Bundle state) {
    state.putSerializable(STATE_ENDDATE,endDate);
    state.putSerializable(STATE_STARTDATE,startDate);
    ArrayList<String> subtitles = new ArrayList<>();
    for (int i = 0; i < TOTAL_STEPS; i++ ) {
        subtitles.add(verticalStepper.getStepsSubtitles(i));
    }
    state.putStringArrayList(STATE_SUBTITLES, subtitles);
    boolean[] week_state = new boolean[weekdaysSelection.length];

    for (int i = 0; i < week_state.length; i++) {
        LinearLayout day = getDayLayout(i);
        week_state[i] = (boolean) day.getTag();
    }
    state.putBooleanArray(STATE_WEEK,week_state);
    state.putBoolean(STATE_REP_Single, singleSelected);
    super.onSaveInstanceState(state);
}