ConstraintLayout.connect()的margin参数是像素还是dp?

Is the margin parameter of ConstraintLayout.connect() in pixels or dp?

我猜是像素,但是 the documentation 没有指定 px 或 dp。

像素。 (感谢@Cheticamp)

据我所知,所有 Android 和 AndroidX Java API 都使用像素单位,除非明确指定。