Arabic mirror of layout issue in Android - android

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

Related

How to force Android app to use specific, custom font and to ignore device settings?

I have recently added a custom font to my Android project in Android Studio (following these instructions). This is not a regular font to show text but a custom font containing a large number of icons which are used all over my app.
This works fine. However now some users reported the problem, that on their devices only some icons can be used, while many other icons are shown as characters instead. All users have in common, that they have configured a custom font/theme in their device settings which seems override the app styles. Thus instead of my icon font the app now uses the device font which of course does not include my custom icons...
As far as I found out this option is not a native Android feature but is implemented independently by different devices manufactures. Since I have no such a device, I cannot reproduce or test this problem.
Is there any way to skip these device settings and force the app use my custom font?
EDIT:
This is how I added the custom font to my project:
Created a new fonts folder in res/ and put my font files there
Use android:fontFamily="#font/my_custom_font" on TextViews, etc.
done
This is then overwritten by the system settings on some devices (e.g. by the Huawei Design Manager). Can this be avoided?
Put your font in the res/font folder and reference them in your TextView in case you need a specific one with the android:fontFamily attribute.
For the whole app put
<item name="android:fontFamily">#font/your_font_name</item>
In
styles.xml
Source : Youtube Video

Android app configuration set to rtl but conflict start with end

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

Smooch android RTL not showing chat script bubbles

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

android:windowSoftInputMode="adjustNothing" equivalent in livecode

Do you know the equivalent of eclipse code android:windowSoftInputMode="adjustNothing" in livecode? This prevents changing the layout when the keyboard shows up.
Note: I created a web apps (html5 packed as android and ios apps)
Thanks.
The default behavior is not to change the layout, so you don't need to script it.

Fixed footer with blank icons on Android 2.3

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.

Categories

Resources