"android:supportsRtl" isn't work - android-layout

I'm trying to make an app which support RTL and LTR
and i'm using "android:supportsRtl" in the manifest and change layout properties to new start/end equivalents.
similar this link
My android is 4.2
but always my layout is LTR! even when i'm using RTL languages on my device
How should I fix my layout to RTL? Because I want to have RTL layout for RTL languages

Check your version of Android Studio and update it!

Related

cant' Drag and Drop for Design Systems

After update the android studio I am enable to use material designing. but I can't user any UI element in drag and drop mode. mouse curse shows in halfly cutted black circle
the new version of android studio uses 2 xml files for each layout. One (e.g. content_main.xml) embedded in the other one (Activity_main.xml). you should open the content_*.xml and do the design in it. hope it helps.

Android Wear 2.0 styled switches

I'm making a watch face for my android wear watch and in the config activity I want a switch. The switch looks like a usual android switch (picture 1) but I want it to look like the new switchs in android wear 2.0 (picture 2). How did google do them?
In the latest update we added a RoundSwitch style which should do exactly what you need.
See here:
Support Library Wear R.style
The switch in picture 2 is a SwitchPreference which is (at least currently) only supported in a PreferenceFragment.
You can use Widget.Wear.RoundSwitch style to get the round switch style.
Here is an example:
<Switch
style="#style/Widget.Wear.RoundSwitch"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

Android studio Only Showing Relative Layout

How to fix the two layouts for Android Studio?
After updating Android Studio, it had two different layouts: relative layout and another layout which simulated how it would look on the phone.
How to get the other layout? Thank you.
How it's looks now:
Use the "Show Design + Blueprint" option.

Android Responsive design using android studio

Hi all !!
I'm newbie to android, Can i get any solutions to make my android app layout that fits in all screens.
If there is any tutorial on it, that would be appreciated !!
Thanks,
Create the following folders in res and add the xml in that
res/layout-small
res/layout-normal
res/layout-large
res/layout-xlarge
And open it from studio layout and make changes.
this link helps you.
The Android resource system gives you the tools to provide alternate resources based on the available width, height, or smallest width — important measurements that serve as the basis for choosing when to change our UI based on the space available.
Width and Breakpoints
Width is perhaps the most important dimension when it comes to choosing when to change your UI. This is because width is the basis for the breakpoint system.
A very good example is here

LWUIT : issue in showing arabic words ?

Hi
i have problam in showing arabic words in LWUIT , the arabic words characters are separated and reversed , but it`s work true on nokia , how can i slove this problem ?
thanks
In bitmap fonts Arabic glyph shaping doesn't work because of the unique properties of the language.
You need to use system fonts (which aren't the default in some of LWUIT's themes), in system fonts support for Arabic is up to the device/simulator not all of which support bidi/shaping properly.
Notice some older Sony Erricson devices as well as some other devices such as badly localized Android devices (e.g. Nexus One) don't have proper bidi support. This means their native widgets implement bidi instead of their drawString implementation. Unfortunately there is no way to detect this bug in runtime, so LWUIT can't seamlessly workaround it!
The only solution is to create a version specifically to such devices which manually performs the bidi algorithm on the drawString code, this means replacing the implementation for those devices with an implementation that just overrides the drawString method and performs the bidi algorithm on rendered strings. LWUIT's bidi algorithm is exposed in the Display class.

Resources