right-to-left

Android TextView right alignment on a right-to-left device

好久不见. 提交于 2019-12-04 12:02:52
I am writing an app that displays in the Hebrew language and for that I am right aligning TextView's text. While developing on a Nexus device all works great and texts are displayed as it should, using the android:gravity="right" for TextView. When I am running the same app on a local mobile carrier device (Israel) which is running a custom ROM all TextView widgets that were set with gravity="right" are appearing as if they were set as gravity="left". If I go and change the gravity to left (you guessed it..) it will align right. I have tried changing the default locale of the device back to US

Disable ActionBar RTL Direction

岁酱吖の 提交于 2019-12-04 10:46:46
问题 Android 4.2 introduced RTL (BiDi) support, to start using it I just follow the instructions (android:supportsRtl attribute to the element in your manifest file and set it “true") But then my ActionBar logo also changes orientation to the right (Logo is displayed on the right) which I don't want. I do want to use the RTL features but keep the ActionBar oriented to the left... In other word, how do I use the android:supportsRtl attribute without it changing the ActionBar direction on Android 4

Right to left edges in dot (Graphviz)

淺唱寂寞╮ 提交于 2019-12-04 08:52:00
问题 I'm trying to display edges going from right to left (i.e. backwards) using dot: C <- A -> B The best I could do was: digraph { a -> b; c -> a [dir="back"]; {rank=same;c a b} } ..which is fine, except I don't like using c -> a when the edge is directed the other way. So I wanted to share this solution (which didn't seem to be mentioned on SO) and check if I'm missing something obvious. See: http://www.graphviz.org/doc/info/attrs.html#k:dirType 回答1: I have no alternative to your usage of dir,

Automatically align text in UILabel according to text language

為{幸葍}努か 提交于 2019-12-04 08:42:47
问题 I'm interested in setting some text into a UILabel , and depending on the directionality of the language (e.g., Hebrew - right-to-left [RTL], English - left-to-right [LTR]) set the alignment of the UILabel . Note that using iOS 6's NSTextAlignmentNatural does not solve the problem, as it chooses alignment according to the current locale, experiments show. 回答1: Ended up following the advice given in this SO answer: write a short script that will parse the Unicode data publicly available here,

Android Hebrew (RTL) Integration

我是研究僧i 提交于 2019-12-04 08:41:13
问题 I'm working on a relatively simple Android app. I want it to have an English version as well as a Hebrew version. (RTL Right to Left Alignment) I have manually change the alignment to right in layout xml file. When a sentence contains digits (in the middle of it), the digits appear in a mirror view: 29 appears as 92 , 21:45 appears as 54:12 and 2,000 appears as 000,2 . Also, when a sentence starts with digits or English characters, they get thrown to the end of the sentence messing it all up.

android grid view place items from right to left

纵饮孤独 提交于 2019-12-04 08:20:22
问题 I'm working on an android application with arabic version . In one of the interfaces, I have gridView. So to display items in the correct order, I have to display items in the GridView from the right to the left (and of corse from the top to the bottom). To do that, I tried to add these attributes in the GridView : android:gravity="right" android:layout_gravity="right" Unfortunately, items still displayed from the left to the right. any idea to do it in the right way ? 回答1: You can achieve

slideToggle JQuery right to left

我只是一个虾纸丫 提交于 2019-12-04 08:11:16
问题 i'm new in JQ i have this script i found on the internet and its do exactly what i need but i want the sliding will be from the right to the left how can i do it? please help this is the code <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $(".slidingDiv").hide(); $(".show_hide").show(); $('.show_hide').click(function(){ $(".slidingDiv").slideToggle(); }); }); </script>

PHP Excel - Set cell or Column Direction (RTL)

微笑、不失礼 提交于 2019-12-04 06:32:13
问题 I'm looking for a way to set the "Direction" of a cell in Excel from PHP Excel. I've gone over any documentation i could find and found only the option to set the direction for a sheet, however, it does not affect the cell direction but rather, only the layout of the page from LTR to RTL. I need to be able to set a specific Cell or better yet, a column, to be RTL. Please note that I'm not talking about the alignment of the cell, I'm talking about the text direction. this is not a duplication

UB: C#'s Regex.Match returns whole string instead of part when matching

こ雲淡風輕ζ 提交于 2019-12-04 04:26:16
问题 Attention! This is NOT related to Regex problem, matches the whole string instead of a part Hi all. I try to do Match y = Regex.Match(someHebrewContainingLine, @"^.{0,9} - \[(.*)?\s\d{1,3}"); Aside from the other VS hebrew quirks (how do you like replacing ] for [ when editing the string?), it occasionally returns the crazy results: Match.Captures.Count = 1; Match.Captures[0] = whole string! (not expected) Match.Groups.Count = 2; (not expected) Match.Groups[0] = whole string again! (not

Prevent RTL TListView from mirroring check boxes and/or graphics

旧城冷巷雨未停 提交于 2019-12-04 04:09:10
问题 I'm trying to make columns of a ListView appear from right to left. This has already been asked and answered. But the problem is about icons and check boxes. When I make a ListView RTL using SetWindowLong , it mirrors graphics and checkboxes as well, wich is not wanted. I can mirror graphics using editing tools, bothering but doable, but I don't know how to handle check boxes. I think both of them have same reason, so I searched about it and found an entire article about RTL layout in