Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
anko を介して FloatingActionButton で BOTTOM|END 重力を確立しようとしています
floatingActionButton { id = FAB_ID∑ }.lparams { margin = dip(16) gravity = Gravity.BOTTOM | Gravity.END }
|しかし、Kotlin はオペレーターを認識していないようです。私はどうしたらいいですか?
|
In Kotlin, the bitwise OR is or instead of |. Gravity.BOTTOM or Gravity.END should work.
or
Gravity.BOTTOM or Gravity.END