240 发简信
IP属地:浙江
  • 遍历Activity中的控件

    要实现遍历Activity中的控件,可以通过获取Activity的contentView,然后采用getChildCount()和getChil...

  • [转]用讲故事的方法解释ARP、ARP欺骗、网关

    假设你叫小不点(本地主机),住在一个大院子(本地局域网)里,有很多邻居(网络邻居),门口传达室有个看大门的李大爷,李大爷就是你的网关。当你想跟院...

  • QC8916 修改系统默认字体(Android 5.0)

    涉及文件 修改方法 修改fonts.xml,在其中对应位置添加如下代码 修改fallback_fonts.xml,在对应位置添加如下代码(该文件...

  • LeetCode_258_AddDigits

    Given a non-negative integer num, repeatedly add all its digits until th...

  • LeetCode_1_TwoSum

    Given an array of integers, return indices of the two numbers such that ...

  • LeetCode_104_Maximum Depth of Binary Tree

    Given a binary tree, find its maximum depth.The maximum depth is the num...

  • LeetCode_136_SingleNumber

    Given an array of integers, every element appears twice except for one. ...

  • LeetCode_238_Product of Array Except Self

    Given an array of n integers where n > 1, nums, return an array output s...

  • ListView优化

    视图 convertView系统在绘制ListVIew时,针对每个Item都会调用一次getView()方法,该方法实现如下: 观察上述两种写法...