I just migrate from com.android.support:design to com.google.android.material.
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
I have the troubles with set up boxBackgroundMode as an outline for TextInputLayout programmatically.
val textInputLayout = TextInputLayout(this)
textInputLayout.addView(EditText(this))
textInputLayout.boxBackgroundMode = TextInputLayout.BOX_BACKGROUND_OUTLINE
textInputLayout.boxStrokeColor = Color.BLACK
textInputLayout.boxBackgroundColor = Color.BLACK
textInputLayout.setBoxCornerRadii(23f,23f,23f,23f)
someParentLayout.addView(textInputLayout)
At the same time, I hadn't such problems with com.android.support:design. Can someone suggest how to resolve or tell why for com.google.android.material it doesn't work.
P.S. It works by defining style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
in xml but i need to do it programmatically