软件介绍

ShadowViewHelper 是 Android 的阴影布局。

6e155cabcb8c2754eeed45648e1d8585.png

xml:

android:id="@+id/activity_main_shadow_view_b"

android:layout_width="wrap_content" android:layout_height="wrap_content"

android:layout_gravity="center"

android:layout_marginTop="32dp"

android:orientation="vertical"

android:gravity="center"

android:padding="8dp"

>

android:src="@mipmap/ic_launcher"

/>

android:gravity="center"

android:text="Shadow View with LinearLayout"

android:textSize="15sp"

/>

Activity:ShadowViewHelper.bindShadowHelper(

new ShadowProperty()

.setShadowColor(0x77000000)

.setShadowDy(ABTextUtil.dip2px(context, 0.5f))

.setShadowRadius(ABTextUtil.dip2px(context, 3))

, findViewById(R.id.activity_main_shadow_view_b));

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐