Room 是Google新推出的數(shù)據(jù)庫框架,使用注解的方式簡化的數(shù)據(jù)庫的操作使用卸耘。 Room中有三個(gè)主要的組成部分 Entity: 與數(shù)據(jù)表對(duì)應(yīng)...
基本語法 聲明變量 類繼承 方法聲明 與Java的不同點(diǎn) 沒有三元操作符 Kotlin中if 可以是一個(gè)表達(dá)式,因此沒有三元操作符 沒有swit...
前言 RecycleView每次使用都要?jiǎng)?chuàng)建 Adapter 的類文件,而Adapter每次都基本差不錯(cuò),因此可以對(duì)RecycleAdapter...
Activity中的屬性 taskAffinity launchMode allowTaskReparenting clearTaskOnLau...
題目 There are two sorted arrays nums1 and nums2 of size m and n respectiv...
lambda表達(dá)式與方法引用 lambda表達(dá)式 一般形式: (a,b)->a+b; (a,b)->{ statement; retur...
題目 Given a string, find the length of the longest substring without repe...
題目 Given a string s, find the longest palindromic substring in s. You ma...
fragment ViewPager fragment懶加載 出現(xiàn)空白viewpager 使用 FragmentPagerAdapter時(shí),如果...