RotatableAutofitEditText
RotatableAutofitEditText copied to clipboard
Wrong offset calculation
If you add a new RotatableAutofitEditText into layout with the Gravity.CENTER movement will be limited.
Example:
val layoutParams = FrameLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT) layoutParams.gravity = Gravity.CENTER val newEditText = LayoutInflater.from(requireContext()).inflate(R.layout.item_raet, textContainer, false) as RotatableAutofitEditText textContainer.addView(newEditText, layoutParams)