寒假學習day18

2022-09-18 09:09:41 字數 762 閱讀 6787

今天學習了**布局的stretchcolumns(拉伸列)

流程:在tablelayout中設定了四個按鈕,接著在最外層的tablelayout中新增以下屬性: android:stretchcolumns = "1"

設定第二列為可拉伸列,讓該列填滿這一行所有的剩餘空間,**如下:

android:id="@+id/tablelayout2"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchcolumns="1">android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="one"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="two"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="three"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="four"/>

執行效果圖:

前端學習Day18

一 3d的旋轉 增加了rotatez 和 rotate3d x,y,z,度數 注 x y z 它們是乙個向量值,0是不旋轉,1是旋轉 eg rotate3d 1,1,0,45deg 等價於 rotatex 45deg rotatey 45deg 二 3d的縮放 增加了 scalez 和 scale3...

python學習 Day18 異常

異常即是乙個事件,該事件會在程式執行過程中發生,影響了程式的正常執行。一般情況下,在python無法正常處理程式時就是發生乙個異常,異常是python物件,表示乙個錯誤,當python指令碼發生異常時我們需要捕獲處理它,否則程式會終止執行。異常處理常用形式 try 正常操作 except 發生異常,...

閉關日記 Day18

陰。好幾天沒更新日記了,說一下這幾天完成的事和正在做的事。專案f基本完結,專案b在除錯相容 360瀏覽器缺省會進入相容模式來渲染 練車 1號考科三 翻譯 uwp設計指南 當前進度1 時間碎片管理的uwp著手開發 專案t 另外,乙個學長想讓我幫忙做乙個h5小遊戲,在溝通中。target 003 時長 ...