View myView = findViewById(R.id.myView); myView.setScaleX(1.5f);
import android.view.View; View myView = findViewById(R.id.myView); myView.setScaleX(0.5f);Both examples use the android.view.View class, and the package library used is the Android framework. The setScaleX() method is a built-in method in this framework.