My app stopped on setContentView() on <= API 21
My app stopped on setContentView() on <= API 21
I have an app which works on API 24 perfectly, but on API <= 21 some activity crashes on setContentView(...) and some ones do work correcty
any help please?
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layoutDirection="rtl"
android:id="@+id/main"
tools:context="com.......Bounds"
>
<LinearLayout
1 Answer
1
Solved
the problem was using
android:textDirection="firstStrongLtr"
witch not work on <= API 21
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Stacktrace? Code? Full layout?
– TheWanderer
Sep 8 '18 at 15:28