adityah
adityah

Reputation: 340

What is the use of "|" in android's XML?

android:inputType="numberSigned|numberDecimal"

what exactly is the function of the single bar here. Is it similar to the logical OR?

Upvotes: 0

Views: 58

Answers (2)

Christian
Christian

Reputation: 4641

It means you take both options separated by the pipe. So it would be more a plus.

Upvotes: 1

Prem
Prem

Reputation: 4821

It indicates OR ... If you want to specify more than one condition, you need to use the symbol.

Upvotes: 2

Related Questions