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

Was it helpful?

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.

OTHER TIPS

There are GravityCompat.START and GravityCompat.END.

See GravityCompat.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top