private void saveRecord() { // cannot get height easily, except sum one by one GlobalConfig.addReadSavesRecord( currentCid, ((ScrollView) parentActivity.findViewById(R.id.content_scrollview)).getScrollY(), ((LinearLayout) parentActivity.findViewById(R.id.novel_content_layout)) .getMeasuredHeight()); return; }