標籤:leetcode java trapping rain water 題意:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after
標籤:android android-studio fresco 從github下載下來之後運行,遇到的問題就是下面這個Error:Execution failed for task ‘:imagepipeline:ndk_build_bitmaps‘.> A problem occurred starting process ‘command
標籤:記錄項目中的android零碎知識點,用以備忘。AsyncQueryHandler繼承與handler,可以用於處理增刪改(ContentProvider提供的資料)例如:query = new AsyncQueryHandler(getContentResolver()); 包括方法:startQuery、startInsert、startDelete、startUpdate:Uri uri = Sms.CONVESATION_URI; query.startQuery(0,
標籤:Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the
標籤:Android中的顯示單位px (pixels)像素一般HVGA代表320x480像素,這個用的比較多。 dip或dp (device independent pixels)裝置獨立像素這個和裝置硬體有關,一般為了支援WVGA、HVGA和QVGA 推薦使用這個,不依賴像素。sp (scaled pixels — best for text size)比例像素主要處理字型的大小,可以根據系統的字型自適應。除了上面三個顯示單位,下面還有幾個不太常用: in