本文整理匯總了Java中android.widget.LinearLayout.getTag方法的典型用法代碼示例。如果您正苦於以下問題:Java LinearLayout.getTag方法的具體用法?Java LinearLayout.getTag怎麽用?Java LinearLayout.getTag使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.widget.LinearLayout
的用法示例。
在下文中一共展示了LinearLayout.getTag方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onSaveInstanceState
import android.widget.LinearLayout; //導入方法依賴的package包/類
@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);
}