悬浮球
app:showPercent="1"
app:showPercent="0.5"
##使用 <com.dalong.suspendlayout.SuspendLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" app:showPercent="1" tools:context="com.dalong.suspendedball.MainActivity">
<WebView
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
android:src="@mipmap/feitian"
android:visibility="visible"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</com.dalong.suspendlayout.SuspendLayout>
##Attributes
name | format | description |
---|---|---|
showPercent | float | 设置显示百分比 |
##gradle
dependencies {
compile 'com.dalong:suspendlayout:1.0.0'
}