This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open class BaseActivity: AppCompatActivity() { | |
private val subscriptions = CompositeSubscription() | |
override fun onStart() { | |
super.onStart() | |
subscriptions.add(RxBus.toObserverable() | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe { onRxBusEvent(it)}) | |
subscriptions.add(RxBus.toStickyObserverable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Path; | |
import android.graphics.PathMeasure; | |
import com.google.common.primitives.Floats; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--新浪微博sdk--> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<!--腾讯地图定位sdk--> | |
<!-- 通过GPS得到精确位置 --> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | |
<!-- 通过网络得到粗略位置 --> |