Code example for ScrollView

Methods: smoothScrollTo, getScrollY

0
			mainTitle.setText(getString(R.string.services_car_embarkation_title_en));
			TextView textView = (TextView) findViewById(R.id.description);
			textView.setText(getString(R.string.services_car_embarkation_desc_en));
		} 
		if (id == R.id.upArrowBtn) {
			scrollView.smoothScrollTo(0, scrollView.getScrollY() - SCROLL_INTERVAL);
		} 
		if (id == R.id.downArrowBtn) {
			scrollView.smoothScrollTo(0, scrollView.getScrollY() + SCROLL_INTERVAL);
		} 
	} 
 
	@Override 
	public void onBackPressed() { 
		if (isStaticContentShowing) {
			screenTitle.setText(getString(R.string.services_screen_title));
			mainParent.setVisibility(View.VISIBLE);
			staticParent.setVisibility(View.GONE);
			contactBtn.setVisibility(View.INVISIBLE);
			mainTitle.setText(getString(R.string.services_screen_title));