Once the Android system wide language have changed to a RTL (right to left) language like Arabic in my case. The chat stops showing just like this photo.
I'm using smooch latest release and google play services 9.4.0.
Image of smooch chat with RTL on Android
How can I make it work and show chat script like LTR?
This issue has been fixed in the latest SDK version (4.0.7) of Smooch
You can control your layouts and widgets in terms of direction (TRL <-> LTR ) by these attributes in layout:
For more precise control over your app UI in both LTR and RTL mode,
Android 4.2 includes the following new APIs to help manage View
components:
android:layoutDirection
Attribute for setting the direction of a component's layout.
android:textDirection
Attribute for setting the direction of a component's text.
For more, see: http://android-developers.blogspot.cz/2013/03/native-rtl-support-in-android-42.html
Related
how can I make this type of window in javafx?
look at the textfield in the image below..
I finally found Jphonex framework to display like this. But if I generate a Jar file and when I try to open that on another computer, it shows error. That computer has java installed in it. But why isn't it working when I used jPhonex? It worked for normal Fields.
The field on your image is part of Material Design Spec.
Use Material Design framework such as Gluon Mobile or JFoenix to make your text field comply with that look and feel.
Use TextInputLayout for this kinds of view
I'm using RTL in my android app every thing going well until i use Visa sdk
it change the layout direction
i think because they are using chrome webview client but i can't solve it
I am creating a Appointment Application for an assignment, and for this I have to make a CalendarView in my android application. However when I run my application the design of the CalendarView that is shown in my mobile and the emulator ends up different. I want the CalendarView to show up in my mobile the same way it is displayed in the emulator.
This is how the CalendarView shows up in my mobile:
This is how the CalendarViewshows up in the emulator & design view in Android Studio:
In addition to Android itself changing the framework's CalendarView between versions, vendors can potentially modify it as well. For consistent behavior you can bundle your own. Square's TimesSquare is one reasonable option.
the theme of this widget can change from api to api
try to set a theme in the xml.
android:theme="#style/Theme.AppCompat.Light"
I am currently developing an application on Android platform with multi-language support (i.e., Arabic and English). I have prepared two value packages for English as well as Arabic.
I am using the same layouts for the different languages. In other words, I do not have special layouts for Arabic or English. I have used all possible ways i.e. layoutDirection, gravity, and layout_gravity attributes to get the layouts mirrored. so far, the best I have got that the controls are aligned to the right, but not mirrored.
My question is how to force the application layouts to be mirrored? To the purpose of knowledge, I have tried different Android platforms: 2.3.3 and 4.2.2 with no success. Please, could any one help me as I have searched deliberately to get my problem solved.
How to set up RTL layout mirroring
To set up RTL layout mirroring in your app, perform the following steps:
Add android:supportsRtl=”true” to the <application> element in your Android manifest file.
In the Android manifest file, change all of your app’s “left/right” layout properties to new “start/end” equivalents. For example, android:paddingLeft should become android:paddingStart.
just follow this link
http://developer.sonymobile.com/2015/06/09/enable-worldwide-usability-for-your-apps-with-bi-directional-language-support/
Android has full RTL support on 4.2+ and even on 4.2+ some widgets ignore directionality. See:
http://developer.android.com/about/versions/jelly-bean.html#intl
http://android-developers.blogspot.com/2013/03/native-rtl-support-in-android-42.html
We're developing a hybrid app for Android and iOS and are using html+css to style the app. There is however one problem that we can't fix right now:
Since we want support for Android 2.3-4.2 and iOS 5.1-6.1 we try to use 'position:fixed' for the fixed header and footer. To be able to use the nice 'glow' on the tabs in the footer, we use webkit-mask-image and a gradiated background. This works well on iOS and Android 4+ but not on Android 2.3.
Also, if we remove all the 'fixed' elements on the page, the icons show up on 2.3.
It seems much similar to this question: http://www.sencha.com/forum/archive/index.php/t-192463.html?s=9b3768697b19cd9957d1c0ee2b7fe6da but we do use a z-index for the div's and this problem tagets Android 4.0.3 and did work on Android 2.3. Sencha however doesn't seem to use 'position:fixed' for header and footer.
Anyone have a suggestion on how to tackle this problem?
I had the same problem with SVG icons, and I found that Android <2.3 does not support SVG (using the default browser).
This article describes a solution (i.e. workaround) using canvg.js to render the SVG with a canvas.