Code example for ScrollView

Methods: addView, requestFocus

0
            } 
            if (null == mTextView) {
				// TDH 
                mTextView = new TextView(getContext());
                mTextView.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
                mScrollText.addView(mTextView);
            } 
            mScrollText.requestFocus();
        } 
        mTextView.setVisibility(View.VISIBLE);
        mTextView.setText(text);
    } 
 
    public void setTextRegion(int left, int top, int width, int height) {
        // Ignore any requirement of layout change once we are in MMS conformance mode. 
        if (mScrollText != null && !mConformanceMode) {
            mScrollText.setLayoutParams(new LayoutParams(width, height, left, top));
        } 
    }