ShadowViewHelper xml:Activity: Android 阴影视图

程序名称:ShadowViewHelper xml:Activity:

授权协议: Apache

操作系统: Android

开发语言: Java

ShadowViewHelper xml:Activity: 介绍

ShadowViewHelper 是 Android 的阴影布局。

xml:

<LinearLayout
      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"
      >
      <ImageView android:layout_width="match_parent" android:layout_height="match_parent"
                 android:src="@mipmap/ic_launcher"
              />
      <TextView android:layout_width="match_parent" android:layout_height="match_parent"
                android:gravity="center"
                android:text="Shadow View with LinearLayout"
                android:textSize="15sp"
              />
</LinearLayout>

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));

ShadowViewHelper xml:Activity: 官网

https://github.com/wangjiegulu/ShadowViewHelper

相关编程语言

BBGestureBack Full screen return gesture(全屏手...
Framework7 或者叫 F7 是全功能的绑定 iOS 7 应用的...
iOS 调试库,支持 iOS8+,无需添加任何代码,方便 i...
DarkModeKit是在Apple官方的深色模式发布之前设计和...
SimpleNote iOS 版客户端。SimpleNote 是一款在多平...
Kivy iOS,此工具旨在为 iOS 编译必要的库以运行应用...