Question

due to problems with Hebrew language (RTL) inside EditText in Some Samsung devices on some ROMs: when the gravity is set to the Right or Left, the cursor is stuck on the right side of the EditText and won't move along with the inserted text.

Gravity.Start solved this for api levels >=14.

is there a way to use the Gravity.Start and Gravity.End attributes before api-level 14?

Thanks, Raz

Était-ce utile?

La solution

As stated here -

Although the constants are only defined in API 14 [0], they are backward compatible because

  1. They're inlined at compile time
  2. They're functionally equivalent to LEFT and RIGHT on earlier devices because of their least-significant bytes.

Autres conseils

There are GravityCompat.START and GravityCompat.END.

See GravityCompat.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top