原创 Set集合沒有重複的元素
public static void main(String[] args) { HashSet<Integer> hash = new HashSet<>(); hash.add(123); hash.add(22);
原创 android虛擬按鍵擠壓佈局和硬件加速
在 別擠壓的activity中的清單文件中配置 屬性 android:windowSoftInputMode="adjustPan" 在 android studio中默認是開啓硬件加速的,下面是關閉硬件加速,在activity中配置
原创 android studio獲取sha1值
1、打開dos界面 2、輸入命令 cd .android 3、keytool -list -v -keystore debug.keystore 4、密匙爲:android
原创 百度地圖計算兩座標點之間距離計算
public class BaiDuMap { static double DEF_PI = 3.14159265359; // PI static double DEF_2PI= 6.28318530712; /
原创 EventBus基礎教程解析
二、Subscriber的ThreadMode EventBus中的Subscriber有四種訂閱函數。onEvent:使用onEvent作爲訂閱函數,則事件在哪個線程發佈出來的,onEvent就會在這個線程中運行,也就是說發佈事件和
原创 關於日期的操作
public static void main(String[] args) { //1.時間類 java.util包下的一個操作時間的類 //Date 2個構造 // Date date=ne
原创 list子類的對比
public static void main(String[] args) { // ArrayList最常用 // vector過時 // LinkedList // ArrayList vector 用法基本相同
原创 StringBuffter類
public static void main(String[] args) { // String類的升級版 // String--->StringBuffter構造傳值 // StringBuffter 一種創建方式 n
原创 比對List和數組
ublic static void main(String[] args) { // 1、比對基本數據類型 用數組保持 1 2 3 4 5 // 聲明 int[] shuzu = new int[5]; for (int