有没有办法从中间点找到可见地图的半径?

我想从API获取靠近地图中心点的近处,并且该API需要lat,lng和radius.我能够从中心点获得lat和lng,但无法找到获得半径的方法.
谢谢
将我的Google Play服务更新为rev 28后,我收到此错误消息.我不知道为什么会这样,因为之前工作正常.
这是我的build.gradle文件
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.matsoltech.pakistancurrentaffairs"
minSdkVersion 10
targetSdkVersion 23
versionCode 11
versionName "2.1.1"
}
buildTypes {
release {
multiDexEnabled = true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('src/main/libs/universal-image-loader-1.9.3.jar')
compile files('src/main/libs/nineoldandroids-2.4.0.jar')
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:support-v4:23.1.0'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.mcxiaoke.volley:library:1.0.18'
compile 'com.google.android.gms:play-services-analytics:8.3.0'
}
Run Code Online (Sandbox Code Playgroud)
和
buildscript {
repositories {
jcenter()
}
dependencies …Run Code Online (Sandbox Code Playgroud) 我正在使用视频视频进行实时流媒体播放,我希望将其设置VideoView为全屏切换并返回小屏幕,MXPlayer或者YouTube播放器不停止流.
<ScrollView
android:id="@+id/scrollview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/ad_container"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@android:color/transparent" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent" >
<TextView
android:id="@+id/scroll_annouc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="@color/red"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:lines="1"
android:marqueeRepeatLimit="marquee_forever"
android:padding="@dimen/ten_dp"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="@string/app_name"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@android:color/white"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/scroll_annouc"
android:background="@android:color/transparent"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="270dp"
android:background="@android:color/black" >
<TextView
android:id="@+id/error_overlay"
android:layout_width="match_parent"
android:layout_height="270dp"
android:layout_alignParentTop="true"
android:background="@color/red_trans"
android:gravity="center"
android:text="@string/error_text"
android:textColor="@android:color/white"
android:textStyle="bold"
android:visibility="invisible" />
<VideoView
android:id="@+id/player"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true" />
<RelativeLayout
android:id="@+id/media_controller"
android:layout_width="match_parent"
android:layout_height="wrap_content" …Run Code Online (Sandbox Code Playgroud) 我想删除子菜单中创建的不需要的空间.
有没有可能我可以从menu.xml课堂上实现它?
这是我的 navigation_drawer_menu.xml
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group android:checkableBehavior="single">
<item
android:id="@+id/all"
android:checked="true"
android:icon="@drawable/ic_channels"
android:title="All Channels" />
.......
<item
android:id="@+id/other"
android:icon="@drawable/ic_other"
android:title="Others" />
</group>
<item android:title="">
<menu>
<item
android:id="@+id/setting"
android:icon="@drawable/ic_action_settings"
android:title="Settings" />
<item
android:id="@+id/about"
android:icon="@drawable/ic_about"
android:title="About" />
<item
android:id="@+id/share"
android:icon="@drawable/ic_share"
android:title="Share" />
</menu>
</item>
Run Code Online (Sandbox Code Playgroud)
谢谢.