Recent

Author Topic: [SOLVED] LAMW : Text Direction set : Right to Left text ?  (Read 2299 times)

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
[SOLVED] LAMW : Text Direction set : Right to Left text ?
« on: February 22, 2017, 10:49:53 pm »
Hi
how can i set direction text right to left in jtextview ??
some language like Farsi or Arabic , write right to Left (RTL) !
.
.
.
i think: the default direction  jEditText is RTL !!!! :o 
« Last Edit: February 24, 2017, 10:47:55 am by majid.ebru »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW : Text Direction set : Right to Left text ?
« Reply #1 on: February 23, 2017, 04:48:22 am »
Done!

Please, update from github!

ref.

https://github.com/jmpessoa/lazandroidmodulewizard


Ex.

[from "AppEditTextSetTextDirectionRTLDemo1"]
Code: Pascal  [Select][+][-]
  1. procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);
  2. begin
  3.   jEditText1.Clear;
  4.   jEditText1.SetTextDirection(tdRTL); // thanks to  @majid.ebru
  5.   //warning: added android:supportsRtl="true" to the <application> element in manifest file.
  6.   //need android Api >= 17
  7. end;
  8.  

Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: LAMW : Text Direction set : Right to Left text ?
« Reply #2 on: February 24, 2017, 06:28:42 am »
Thank you very very much.
be Happy

 

TinyPortal © 2005-2018