INNER CODE UNIT · Java
setShadowAdjustScaleXByOrientation
MewX/light-novel-library_Wenku8_Android · eclipse-android/src/com/special/ResideMenu/ResideMenu.java:115
private void setShadowAdjustScaleXByOrientation() {
int orientation = getResources().getConfiguration().orientation;
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
shadowAdjustScaleX = 0.034f;
shadowAdjustScaleY = 0.12f;
} else if (orientation == Configuration.ORIENTATION_PORTRAIT) {
shadowAdjustScaleX = 0.06f;
shadowAdjustScaleY = 0.07f;
}
}
/**
* set the menu background picture;
*
* @param imageResrouce
*/
public void setBackground(int imageResrouce) {
imageViewBackground.setImageResource(imageResrouce);