Android开发神器:Pandora

版权声明:本文为博主原创文章,未经博主允许不得转载的哦=。= https://blog.csdn.net/qq_15602635/article/details/81705988

Android开发神器:Pandora

前言

工欲善其事,必先利其器。开发效率很大程度上取决于开发工具,举个例子,Web前端开发页面调试run一下几秒钟,Android客户端run一下,3、5分钟起步!差距可想而知。

现在iOS有Flipboard开源的神级调试工具FLEX,可以轻松查看控件属性,查看数据库,d动态修改属性和变量,查看文件系统,查看网络请求过程等等。而ReactNative摇一摇有一个调试控制台,搭配ReactNative的热重载功能,调试非常方便。而Android只有手机提供的开发者工具,使用频率不是很高。每当前端、iOS使用这些工具快速定位问题,解决问题的时候,不禁会想Android难道没有这样的工具吗?

曾经用过Facebook出品的Stetho,但是需要配合电脑使用,还是有点麻烦,最近发现了Pandora,集合了Stetho的数据库功能,UETool的控件选中功能等,非常强大,完全可以媲美iOS的FLEX。

功能

摇一摇工具箱

将pandora集成后,app只需摇一摇即可出现工具箱,包含ui、网络、沙盒(数据库等)、选择控件等功能。

tools

控件选择查看

选择工具箱的select,点击app,即可选中控件。

选中控件

底部栏往上拖动可以查看层级

进入控件详情

查看view的层级

标尺

网络抓包

打开网络抓包开关,可以查看网络请求。

查看数据库

进入沙盒查看数据库

阅读更多
换一批

Polaris of Pandora

11-02

Problem DescriptionnPolaris is a star. It is the most magnificent scene in the sky, and the most important navigation star of planet Pandora[1]. People live in Pandora call themselves as "Na'vi"[2], and they all love to fly in the sky with their ikran[3]. When they are flying in the sky, they use Polaris to navigate. Polaris could be used to navigate because that it is always staying in the straight line linking the North Pole and the South Pole of Pandora. That straight line could also be called as "axis of Pandora", and Polaris stays on the North Pole side.nPolaris is too far away from Pandora, so in every place near Pandora, light from Polaris could be regarded as parallel to axis of Pandora. Now several Na'vi ikran riders are flying in the sky of Pandora, they want to know the percentage of their whole flying distance that Polaris is visible. Polaris's light is quite bright, so Polaris is visible even when it is just on the skyline.nTo simplify the problem, Na'vi riders assume that Pandora is a perfect sphere, which have an R radius. A rider starts flying from a point on the Pandora's surface and lands at another point, the flying height is given as H. Ikran is so powerful that flying time between the surface of Pandora and the flying height could be ignored, and ikran will always fly straight up and down between surface and flying height. Both the starting point and the landing point could be described using latitude and longitude [4] of Pandora. And riders will always choose the shortest path to fly.n nnInputnThere are several test cases. Process to the end of file.nThe only line of each test case contains 6 real numbers R (1000 ≤ R ≤ 10000), H (1 ≤ H ≤ R), lat0 (-π/2 < lat0 < π/2), lng0 (-π < lng0 < π), lat1 (-π/2 < lat1 < π/2), lng1 (-π < lng1 < π). R is radius of planet Pandora, H is Na'vi ikran rider's flying height, lat0 and lng0 are latitude and longitude of starting point, lat1 and lng1 are latitude and longitude of landing point.nWe guarantee that starting point and landing point will not be the same, and they also will not be "opposite" (Starting point, landing point and Pandora's center will not be in the same line.)n nnOutputnFor each test case, output one line with the percentage of the flying distance that Polaris is visible. Round to 3 decimal places.n nnSample Inputn1000 10 0 0 0 0.5n4000 1000 0 0.618 1.0 0.618n nnSample Outputn100.000n64.350

没有更多推荐了,返回首页