How to set size of background image?
<p>I need some help to set the size on android Java source for a background image, here is the code on what i want to add: <code>setBackgroundResource(R.drawable.slider_bg_right);</code> is the line i have been added to add the background, but the image size is too small and I want to edit the size of the backgrounds.</p>

<pre><code>switch (action) {
    case MotionEvent.ACTION_DOWN: {
        mTracking = true;
        mTriggered = false;
        vibrate();
        if (leftHit) {
            mCurrentSlider = mLeftSlider;
            mOtherSlider = mRightSlider;
            mThreshold = isHorizontal() ? THRESHOLD : 1.0f - THRESHOLD;
            setGrabbedState(OnTriggerListener.LEFT_HANDLE);
      ----- setBackgroundResource(R.drawable.slider_bg_right); -------
        } else {
            mCurrentSlider = mRightSlider;
            mOtherSlider = mLeftSlider;
            mThreshold = isHorizontal() ? 1.0f - THRESHOLD : THRESHOLD;
            setGrabbedState(OnTriggerListener.RIGHT_HANDLE);
      ------ setBackgroundResource(R.drawable.slider_bg_left); -------
        }                  
        mCurrentSlider.setState(Slider.STATE_PRESSED);
        mCurrentSlider.showTarget();
        mOtherSlider.hide();
        break;
    }
}
</code></pre>
