Button setDefaultViewOptions(Button button) { //назначает начальные настройки кнопке и тексту перегружен (2) button.setText("New button"); button.setLayoutParams(viewParams); button.setId(buttonsId); //теги и id для массива кнопок if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { button.setElevation(20); button.setTranslationZ(10); Log.d("TEST","тестирование"); } String buttonTags = "Button:"; button.setTag(buttonTags + String.valueOf(CountButtonsTags++)); linearLayout.addView(button); buttonsId++; return button; } There is a method that assigns starting properties to a button, one of these properties (height above layout) is elevation. But the height does not increase, but the buttons remain the same as it was. Why it happens? All other properties work, the setElevation () method is called.