Provide a floating view on top of all applications and specific click function as opening a webview.
Clone and import into your project.
Provide UrlBuilder
object with your accessToken
.
This class also supports to add more info such as:
homeUrl
: url of the support pageextras
: extra future params for urlsalt
: salt keyredirectUrl
: redirect url
FloatingViewManager.UrlBuilder builder = FloatingViewManager.UrlBuilder.newBuilder()
.accessToken(FVConstantValue.URL_VALUE.TOKEN)
.build();
Call API showView()
from FloatingViewManager
to show the view, remember to hideView()
when it is unnecessary.
FloatingViewManager.showView(TestLibActivity.this, builder);
FloatingViewManager.hideView(TestLibActivity.this);
Provide ViewBuilder
object if you need to custom your floating view
FloatingViewManager.ViewBuilder viewBuilder = FloatingViewManager.ViewBuilder.newBuilder()
.drawable(R.drawable.ic_help)
.height(150).width(150)
.horizontalMargin(30).verticalMargin(50)
.onTop(true).onLeft(true)
.build();
Its me 👍
22-11-2016: add source code. v1