1.Androidå ç§layout(å¸å±)çåºå«
Androidå ç§layout(å¸å±)çåºå«
源码仿淘宝装修源码Androidå ç§layout(å¸å±)çåºå«
源码仿淘宝装修源码1.FrameLayout:childrenæç §ä»å·¦ä¸å¼å§ç顺åºæåï¼ä¸»è¦ç¨äºtabed viewæè å¾çåæ¢åè½ï¼æç®åçå¸å±æ¨¡åï¼å¨è¿ç§å¸å±ä¸æ¯ä¸ªæ·»å çåæ§ä»¶é½è¢«æ¾å¨å¸å±çå·¦ä¸è§ï¼å¹¶è¦çå¨åä¸åæ§ä»¶çä¸å±ã
源码仿淘宝装修源码2.线æ§å¸å±ï¼LinearLayoutï¼:childrenæåæä¸è¡å¤åæè ä¸åå¤è¡çå½¢å¼ï¼åºè¯¥æ¯åºç¨ç¨åºä¸æ常ç¨çå¸å±æ¹å¼ï¼å®æä¾äºæ§ä»¶æ°´å¹³æè åç´æåç模åï¼åæ¶æ们å¯éè¿è®¾ç½®åæ§ä»¶çweightå¸å±åæ°æ§å¶å个æ§ä»¶å¨å¸å±ä¸çç¸å¯¹å¤§å°ã
源码仿淘宝装修源码android:orientation="vertical"使linearlayoutéé¢çä¸è¥¿ä¸è¡ä¸è¡æåã
源码仿淘宝装修源码3.ç¸å¯¹å¸å±ï¼RelativeLayoutï¼:childrenæ¯ç¸äºä¹é´ç¸å ³ä½ç½®æè åä»ä»¬çparentä½ç½®ç¸å ³ï¼åç §æ§ä»¶å¯ä»¥æ¯ç¶æ§ä»¶ï¼ä¹å¯ä»¥æ¯å ¶ä»åæ§ä»¶ï¼ä½è¢«åç §çæ§ä»¶å¿ é¡»è¦å¨åç §å®çæ§ä»¶ä¹åå®ä¹ãç¸å¯¹å¸å±æ¨¡åææ¶åçå±æ§è®¾ç½®æ¯è¾å¤ï¼ä½å¹¶ä¸å¤æã
源码仿淘宝装修源码4.TableLayout:childrenæç §è¡åçæåºï¼ç±»ä¼¼äºhtmlçtableï¼æ¨¡å以è¡åçå½¢å¼ç®¡çåæ§ä»¶ï¼æ¯ä¸è¡ä¸ºä¸ä¸ªTableRowç对象ï¼ä¹å¯ä¸ºä¸ä¸ªViewç对象ãTableRowå¯æ·»å åæ§ä»¶ï¼æ¯æ·»å ä¸ä¸ªåæ§ä»¶ä¸ºä¸åã
源码仿淘宝装修源码5.åæ å¸å±ï¼AbsoluteLayoutï¼çåæ§ä»¶éè¦æå®ç¸å¯¹äºæ¤åæ å¸å±ç横ã纵åæ å¼ï¼å¦åå°ä¼åFrameLayouté£æ ·è¢«æå¨å·¦ä¸è§ãææºåºç¨éè¦éç¨äºä¸åçå±å¹å¤§å°ï¼èè¿ç§å¸å±æ¨¡åä¸è½èªéåºå±å¹å°ºå¯¸å¤§å°ï¼æ以åºç¨å¾ç¸å½å°ã
源码仿淘宝装修源码