SmartGo 一个更简单的方法来启动框架组件

网友投稿 640 2022-10-29

SmartGo 一个更简单的方法来启动框架组件

SmartGo 一个更简单的方法来启动框架组件

SmartGo

Getting Start

In your build.gradle:

dependencies { compile 'go.smart.woaiwhz.smartgo:SmartGo:1.0.1'}

Features

Now you can launch an explicit Activity like this:

SmartGo.from(this) .to(ExplicitActivity.class) .shareElements() .like(v) .withSystemUI() .go();

or an implicit Activity like:

SmartGo.from(this) .to("go.smart.woaiwhz.smartgoproject.implicit")//action .category("go.smart.woaiwhz.smartgoproject.have.fun") .requestCode(REQUEST_CODE) .animate(android.R.anim.fade_in, android.R.anim.fade_out) .go();

Also,you can launch a Service or a Broadcast easier than before

//launch serviceSmartGo.from(this) .run(BackgroundService.class) .bind(mServiceConntect, Service.BIND_AUTO_CREATE) .go();//launch broadcastSmartGo.from(this) .send("go.smart.woaiwhz.smartgoproject.broadcast") .extras() .with(REQUEST_STRING,"I'm a broadcast!") .then() .go();

I will add more features by this funny way in the future and I wish you can tell me how I can do better!

##License

Copyright 2016 Sausure.Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:集合之Arraylist
下一篇:draft-js - 一个用于构建文本编辑器React框架
相关文章

 发表评论

暂时没有评论,来抢沙发吧~