transifex / transifex-java

Transifex Native Toolkit for Java
Apache License 2.0
19 stars 3 forks source link

Support material components #43

Closed Petrakeas closed 2 years ago

Petrakeas commented 2 years ago

Even though the SDK did not support material components, most components worked correctly since they extended vanilla Android View classes and they were handled by our TxInterceptor.

TextInputLayout though did not work correctly. This is why we now explicitly check for this class in our TxInterceptorand and handle it in the TextInputLayoutTransformer.

The following components were also tested and found to work correctly: MaterialButton, MaterialCardView.

The SDK uses material:1.6.1 as a compileOnly dependency, similarly to appcompat.

The demo app now uses e material:1.6.1. The theme extends a MaterialComponents theme instead of an AppCompat theme. A TextInputLayout element has been added to the main activity's layout. The SDK's Spannable support is now enabled.