接外包,有相关需求的可以联系我:Telegram | Email

Android隐藏标题栏、状态栏、导航栏及全屏方法总结


Android开发中,有时候根据需求要隐藏标题栏、状态栏、导航栏或者全屏显示。看似很简单的功能,但是不注意使用环境,就会出现错误。 java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 在AndroidManifest.xml中使用 android:theme="@android:style/Theme.Light.NoTitl......

Android开发常见问题(功能实现)


缘由 最近在系统学习Android开发,我把自己碰到的问题(想实现的功能)以及解决办法就放出来吧!以备后用! 问题 实现EditText默认不弹出键盘 只需要EditText的父布局加上如下属性即可: android:focusable="true" android:focusableInTouchMode="true" 实现按钮或TextView 跳转到某网页 public class MainActivity extends AppCompatActivity { @Override protected void o......

273. Integer to English Words


Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example Example 1: Input: 123 Output: "One Hundred Twenty Three" Example 2: Input: 12345 Output: "Twelve Thousand Three Hundred Forty Five" Example 3: Input: 1234567 Output: "One Million Two Hundred Thirty Four Thousand Five Hundr......

LeetCode:12. Integer to Roman


Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two is written as II in Roman numeral, just two one's added together. Twelve is written as, XII, which is simply X + II. The number twenty seven is written as XXVII, which is XX + V ......

LeetCode: 999. Available Captures for Rook


Description On an 8 x 8 chessboard, there is one white rook. There also may be empty squares, white bishops, and black pawns. These are given as characters 'R', '.', 'B', and 'p' respectively. Uppercase characters represent white pieces, and lowercase characters represent black pieces. The rook moves as in the rules of Chess: it chooses one of four cardinal direction......

LeetCode: 1481. Least Number of Unique Integers after K Removals Medium


Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: arr = [5,5,4], k = 1 Output: 1 Explanation: Remove the single 4, only 5 is left. Example 2: Input: arr = [4,3,1,1,3,3,2], k = 3 Output: 2 Explanation: Remove 4, 2 and either one o......

Java 中的的 Map


概要 java.util 中的集合类包含 Java 中某些最常用的类。最常用的集合类是 List 和 Map。 Map 提供了一个更通用的元素存储方法。Map 集合类用于存储元素对(称作“键”和“值”),其中每个键映射到一个值。 本文主要介绍java map的初始化、用法、map的四种常用的遍历方式、map的排序以及常用api。 Map用法 类型介绍 Java 自带了各种 Map 类。这些 Map 类可归为三种类型: 通用Map,用于在应用程序中管理映射,通......

起风了


简介: 那是一个动荡的年代,战争、饥饿、疾病、天灾,死神的阴影笼罩全球,却无法遮挡心头闪现的梦想和希望的光芒。平凡的日本少年堀越二郎(庵野秀明 配音)迷恋游弋长空的飞机,梦中他与意大利飞机设计师卡普罗尼(野村万斋 配音)成为朋友,享受着飞行带来的乐趣。恐怖的关东大地震,二郎邂逅一生的挂念——里见菜穗子(泷本美织 配音),短暂的相逢,无序的混乱中又失之交臂。在命运的指引下,被称为天才的二......

running sum of 1d array


Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Return the running sum of nums. Example 1: Input: nums = [1,2,3,4] Output: [1,3,6,10] Explanation: Running sum is obtained as follows: [1, 1+2, 1+2+3, 1+2+3+4]. Example 2: Input: nums = [1,1,1,1,1] Output: [1,2,3,4,5] Explanation: Running sum is obtained ......

ModuleNotFoundError: No module named 'pip'


缘由 今天测试一个API是用Python写的代码,安装一个package时提示pip版本过低让升级,结果升级后报错:ModuleNotFoundError: No module named 'pip' 解决办法 依次运行一下两条命令即可修复: python -m ensurepip python -m pip install --upgrade pip

YouTube | B站

微信公众号

优惠码

阿里云国际版20美元
Vultr10美元
搬瓦工 | Bandwagon应该有折扣吧?
Just My SocksJMS9272283 【注意手动复制去跳转】
域名 | namesiloemperinter(1美元)
币安 币安