RotatableAutofitEditText icon indicating copy to clipboard operation
RotatableAutofitEditText copied to clipboard

Wrong offset calculation

Open inludese opened this issue 6 years ago • 0 comments

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)

inludese avatar Oct 08 '19 13:10 inludese