1.å
³äºRecyclerView
å ³äºRecyclerView
è¿ç¯æ¯«æ 头绪ï¼ä¾ä¸ªäººæ¥é ãRecyclerView å¿ ç¥å¿ ä¼
æ½ä¸å¥è§RecyclerView - åæ´ä¸ºé¶
RecyclerViewçå大ç»ææ¯ï¼
Androidä¸ä½¿ç¨RecyclerView + SnapHelperå®ç°ç±»ä¼¼ViewPagerææ
è®©ä½ ææç½ç½ç使ç¨RecyclerViewââSnapHelper详解
Android SnapHelperæç®åæ
SnapHelperç¡¬æ ¸è®²è§£
ç¨RecyclerViewåä¸ä¸ªå°æ¸ æ°çGalleryææ ï¼ä¹å项ç®ä¸ä¹åè¿å¡çæ»å¨ï¼è¿ç¨ä¸ç¼©æ¾çåè½ã
/BCsl/GalleryLayoutManager ï¼å¡çæ»å¨ï¼è¿ç¨ä¸ç¼©æ¾çåè½ã
Androidå¼åä¹åç»å表æ¬æµ®é¡¶é¨æ ï¼å¸é¡¶ææï¼ --åäºoffsetç示æå¾ï¼å¾ç´è§ã
ItemDecoration --æ¯è¾ç®åï¼æ³¨æçåç¹ï¼0ãç³»ç»æä¾çé»è®¤çdecorationï¼1ãå°±æ¯addItemDecorationæ¹æ³ï¼addä¼éå¤æ·»å ï¼èªå·±å项ç®ä¹éå°è¿ï¼2ãæ·»å çdecorationçç¹å»é®é¢ï¼3ãå ³äºViewGroupçonDraw()æ¹æ³çè°ç¨é®é¢
ItemDecorationå®ç°æ¹å¼,跌幅公式源码并带touchç¹å»äºä»¶ --ç¹å»äºä»¶çä¸ä¸ªæè·¯å§
èªå®ä¹ItemDecorationè¿ä¸ªé®é¢ä½ çç注æå°äºå
RecyclerViewç³»åä¹äºItemDecoration --å 个ä¾å
解å³RecyclerViewæ§è¡å¨ç»åitemè¾¹è·é误çé®é¢
RecyclerViewçæ»å¨äºä»¶ç 究
ä¸ç§æ¹å¼å®ç°RecyclerViewçItemç¹å»äºä»¶
RecycleView çfindChildViewUnder()æ¹æ³ç®åä»ç»
ææ¡èªå®ä¹LayoutManager(ä¸) ç³»åå¼ç¯ 常è§è¯¯åºãé®é¢ã注æäºé¡¹ï¼å¸¸ç¨API
å¦ä¸å¨ä¹è¦å¦ï¼æ·±å ¥äºè§£ViewPager2 ,å®ç°ï¼1ï¼ä¸å¡çå¸å±
å®æ¹ Viewpager å级ç - ViewPager2 å®æ