demo-fx42Tk9Z imseekbarRAR BottomAlertDialogDemo.rar 631.49KB 资源文件列表: RAR BottomAlertDialogDemo.rar 大约有75个文件 BottomAlertDialogDemo\.classpath 219B BottomAlertDialogDemo\.project 282B BottomAlertDialogDemo\.settings\org.eclipse.jdt.core.prefs 103B BottomAlertDialogDemo\AndroidManifest.xml 403B BottomAlertDialogDemo\bin\AndroidManifest.xml 403B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\BuildConfig.class 285B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\MainActivity$1.class 490B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\MainActivity$2.class 526B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\MainActivity$3.class 531B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\MainActivity.class 1005B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\R$anim.class 333B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\R$attr.class 276B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\R$dimen.class 345B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\R$drawable.class 321B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\R$id.class 357B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\R$layout.class 328B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\R$menu.class 311B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\R$string.class 355B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\R$style.class 347B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo\R.class 406B BottomAlertDialogDemo\gen\com\example\bottomalertdialogdemo\BuildConfig.java 156B BottomAlertDialogDemo\gen\com\example\bottomalertdialogdemo\R.java 918B BottomAlertDialogDemo\ic_launcher-web.png 46.65KB BottomAlertDialogDemo\libs\android-support-v4.jar 517.86KB BottomAlertDialogDemo\proguard-project.txt 461B BottomAlertDialogDemo\project.properties 386B BottomAlertDialogDemo\res\anim\push_bottom_in.xml 205B BottomAlertDialogDemo\res\anim\push_bottom_out.xml 204B BottomAlertDialogDemo\res\drawable-hdpi\ic_launcher.png 7.48KB BottomAlertDialogDemo\res\drawable-mdpi\ic_launcher.png 3.69KB BottomAlertDialogDemo\res\drawable-xhdpi\ic_launcher.png 12.22KB BottomAlertDialogDemo\res\drawable-xxhdpi\ic_launcher.png 24.2KB BottomAlertDialogDemo\res\layout\activity_main.xml 307B BottomAlertDialogDemo\res\layout\alertdialog.xml 423B BottomAlertDialogDemo\res\menu\main.xml 170B BottomAlertDialogDemo\res\values\dimens.xml 149B BottomAlertDialogDemo\res\values\strings.xml 160B BottomAlertDialogDemo\res\values\styles.xml 417B BottomAlertDialogDemo\res\values-sw600dp\dimens.xml 162B BottomAlertDialogDemo\res\values-sw720dp-land\dimens.xml 212B BottomAlertDialogDemo\res\values-v11\styles.xml 223B BottomAlertDialogDemo\res\values-v14\styles.xml 250B BottomAlertDialogDemo\src\com\example\bottomalertdialogdemo\MainActivity.java 855B BottomAlertDialogDemo\bin\classes\com\example\bottomalertdialogdemo BottomAlertDialogDemo\bin\classes\com\example BottomAlertDialogDemo\gen\com\example\bottomalertdialogdemo BottomAlertDialogDemo\src\com\example\bottomalertdialogdemo BottomAlertDialogDemo\bin\classes\com BottomAlertDialogDemo\gen\com\example BottomAlertDialogDemo\src\com\example BottomAlertDialogDemo\bin\classes BottomAlertDialogDemo\bin\res BottomAlertDialogDemo\gen\com BottomAlertDialogDemo\res\anim BottomAlertDialogDemo\res\drawable-hdpi BottomAlertDialogDemo\res\drawable-ldpi BottomAlertDialogDemo\res\drawable-mdpi BottomAlertDialogDemo\res\drawable-xhdpi BottomAlertDialogDemo\res\drawable-xxhdpi BottomAlertDialogDemo\res\layout BottomAlertDialogDemo\res\menu BottomAlertDialogDemo\res\values BottomAlertDialogDemo\res\values-sw600dp BottomAlertDialogDemo\res\values-sw720dp-land BottomAlertDialogDemo\res\values-v11 BottomAlertDialogDemo\res\values-v14 BottomAlertDialogDemo\src\com BottomAlertDialogDemo\.settings BottomAlertDialogDemo\assets BottomAlertDialogDemo\bin BottomAlertDialogDemo\gen BottomAlertDialogDemo\libs BottomAlertDialogDemo\res BottomAlertDialogDemo\src BottomAlertDialogDemo
资源介绍:
我将该资源设置了免积分,如果你发现需要积分才能下载了,那么一定是平台未经作者个人允许自行调整的,且没有选择权,且不让用户自己决定是否可以删除该资源。下面是截图
https://img1.imgtp.com/2023/06/14/rS4A3RAH.png
https://img1.imgtp.com/2023/06/14/fx42Tk9Z.png
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
相关资源
android 百度地图 定位示例
1.需要在 http://developer.baidu.com/ 注册开发者(个人或公司)账号 2.需要申请Key 打开网址 http://developer.baidu.com/map/index.php 点击 创建应用,跟流程创建应用app3.点击相关下载->一键下载4.调用百度地图的APP 需要在 AndroidManifest.xml 添加 这里需要添加key,创建应用后,会有这个key ..... package com.obtk.mapdemo;import com.baidu.location.BDLocation;import com.baidu.location.BDLocationListener;import com.baidu.location.LocationClient;import com.baidu.location.LocationClientOption;import com.baidu.mapapi.SDKInitializer;import com.baidu.mapapi.map.BaiduMap;import com.baidu.mapapi.map.BaiduMapOptions;import com.baidu.mapapi.map.MapStatusUpdate;import com.baidu.mapapi.map.MapStatusUpdateFactory;import com.baidu.mapapi.map.MapView;import com.baidu.mapapi.map.MyLocationData;import com.baidu.mapapi.map.MyLocationConfiguration.LocationMode;import com.baidu.mapapi.model.LatLng;import com.baidu.mapapi.search.core.SearchResult;import com.baidu.mapapi.search.geocode.GeoCodeResult;import com.baidu.mapapi.search.geocode.GeoCoder;import com.baidu.mapapi.search.geocode.OnGetGeoCoderResultListener;import com.baidu.mapapi.search.geocode.ReverseGeoCodeOption;import com.baidu.mapapi.search.geocode.ReverseGeoCodeResult;import android.os.Bundle;import android.util.Log;import android.view.Menu;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.RelativeLayout;import android.widget.Toast;import android.app.Activity;import com.obtk.mapdemo.R;public class MapApiDemoActivity extends Activity implements OnGetGeoCoderResultListener {private MapView mMapView = null;private BaiduMap mBaiduMap = null;private GeoCoder mSearch = null; @Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);// SDK初始化SDKInitializer.initialize(getApplicationContext());//当前视图setContentView(R.layout.activity_map_api_demo);//创建地图对象init();final Button btn_location = (Button) findViewById(R.id.btn_location);btn_location.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View arg0) {// TODO Auto-generated method stubgetLocation();btn_location.setEnabled(false);}});}@Overridepublic boolean onCreateOptionsMenu(Menu menu) {// Inflate the menu; this adds items to the action bar if it is present.getMenuInflater().inflate(R.menu.activity_map_api_demo, menu);return true;}/** * 初始化方法 */private void init() {//mMapView = (MapView) findViewById(R.id.bmapview);mMapView = new MapView(this, new BaiduMapOptions());mBaiduMap = mMapView.getMap();/**添加一个对象*/RelativeLayout rlly_map = (RelativeLayout)findViewById(R.id.rlly_map);rlly_map.addView(mMapView);// 开启定位图层 mBaiduMap.setMyLocationEnabled(true); //初始化搜索模块,注册事件监听 mSearch = GeoCoder.newInstance(); mSearch.setOnGetGeoCodeResultListener(this);}@Overrideprotected void onResume() {super.onResume();mMapView.onResume();}@Overrideprotected void onPause() {super.onPause();mMapView.onPause();}@Overrideprotected void onDestroy() {// 退出时销毁定位mLocClient.stop();// 关闭定位图层mBaiduMap.setMyLocationEnabled(false);mMapView.onDestroy();mMapView = null;super.onDestroy();}// 定位相关LocationClient mLocClient;public MyLocationListenner myListener = new MyLocationListenner();private LocationMode mCurrentMode;private boolean isFirstLoc = true;/** * 定位SDK监听函数 */public class MyLocationListenner implements BDLocationListener {@Overridepublic void onReceiveLocation(BDLocation location) {// map view 销毁后不在处理新接收的位置if (location == null || mMapView == null)return;MyLocationData locData = new MyLocationData.Builder().accuracy(location.getRadius())//此处设置开发者获取到的方向信息,顺时针0-360.direction(100).latitude(location.getLatitude()).longitude(location.getLongitude()).build();mBaiduMap.setMyLocationData(locData);if (isFirstLoc) {isFirstLoc = false;LatLng ll = new LatLng(location.getLatitude(),location.getLongitude());MapStatusUpdate u = MapStatusUpdateFactory.newLatLng(ll);mBaiduMap.animateMapStatus(u);}String addr = location.getAddrStr();if (addr != null) {Log.i("Test", addr);} else {Log.i("Test","error");}double longitude = location.getLongitude();double latitude = location.getLatitude();if (longitude > 0 && latitude > 0) {Log.i("Test",String.format("纬度:%f 经度:%f", latitude,longitude));LatLng ptCenter = new LatLng(latitude,longitude);// 反Geo搜索mSearch.reverseGeoCode(new ReverseGeoCodeOption().location(ptCenter));} //停止定位mLocClient.stop();}public void onReceivePoi(BDLocation poiLocation) {}}private void getLocation() {// 定位初始化mLocClient = new LocationClient(this);mLocClient.registerLocationListener(myListener);LocationClientOption option = new LocationClientOption();option.setOpenGps(true);//打开gpsoption.setCoorType("bd09ll"); //设置坐标类型option.setScanSpan(5000); //定位时间间隔mLocClient.setLocOption(option);mLocClient.start();}@Overridepublic void onGetGeoCodeResult(GeoCodeResult arg0) {// TODO Auto-generated method stub}@Overridepublic void onGetReverseGeoCodeResult(ReverseGeoCodeResult result) {// TODO Auto-generated method stubif (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {Toast.makeText(MapApiDemoActivity.this,"抱歉,未能找到结果", Toast.LENGTH_LONG).show();return;}mBaiduMap.clear();//mBaiduMap.addOverlay(new MarkerOptions().position(result.getLocation())//.icon(BitmapDescriptorFactory//.fromResource(R.drawable.icon_marka)));mBaiduMap.setMapStatus(MapStatusUpdateFactory.newLatLng(result.getLocation()));Toast.makeText(MapApiDemoActivity.this, result.getAddress(),Toast.LENGTH_LONG).show();String province = result.getAddressDetail().province;String city = result.getAddressDetail().city;if (province != null && city != null) {}}}