原创 Material Design系列-MaterialButton(Icon)

Button: 即使用按鈕,用戶只需單擊一下即可執行操作並做出選擇,並帶有點擊效果以及各種樣式。 #1. 在使用 Material Buttons 按鈕之前,建議將項目移至androidx,然後我們需要添加一個依賴: 在build.gra

原创 Material Design系列-Toggle Button(MaterialButtonToggleGroup/ShapeAppearance)

接着上篇:我是傳送門 #1. Text button #2. Outlined button #3. Contained button #4. Toggle button #5. Floating action button 我們前三種

原创 Material Design系列-FloatingActionButton(FAB)

接着上篇:我是傳送門 #1. Text button #2. Outlined button #3. Contained button #4. Toggle button #5. Floating action button 以上前四種

原创 RecyclerView ItemDecoration-實現分組/懸浮(粘性)頭部【Kotlin】

簡單說ItemDecoration就是Item的裝飾,在Item的四周,我們可以給它添加上自定義的裝飾。   ItemDecoration主要就三個方法 : )  getItemOffsets(outRect: Rect, view: