android+阴影+xml,Android 阴影视图 ShadowViewHelper
軟件介紹
ShadowViewHelper 是 Android 的陰影布局。
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));
總結
以上是生活随笔為你收集整理的android+阴影+xml,Android 阴影视图 ShadowViewHelper的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 招商银行的储蓄卡可以代领吗?
- 下一篇: 苹果雪豹操作系统正式版_Android