https://developer.android.com/training/index.html

準(zhǔn)備一個(gè)單詞一個(gè)單詞的開(kāi)始看,煞筆式學(xué)習(xí)法。

首先感謝翻譯軟件,感謝梯子。

以下內(nèi)容出自該鏈接,以后不寫這句話,反正就是鏈接以下的就是出自該鏈接

https://developer.android.com/training/basics/firstapp/building-ui.html#open

Illustration?n. 說(shuō)明;插圖;例證;圖解

vocabulary?n. 詞匯;詞表;詞匯量

ConstraintLayout?is a layout that defines the position for each view based on constraints to sibling views and the parent layout. In this way, you can create both simple and complex layouts with a flat view hieararchy. That is, it avoids the need for nested layouts (a layout inside a layout, as shown in figure 2), which can increase the time required to draw the UI.

sibling?n. 兄弟姊妹;民族成員

flat?adj. 平的;單調(diào)的;不景氣的;干脆的;平坦的;扁平的;淺的

大致翻譯是,約束布局通過(guò)父布局和兄弟姐妹布局來(lái)確定子view的位置,這樣的話,你可以用扁平的布局來(lái)創(chuàng)造簡(jiǎn)單或者復(fù)雜的布局。如此,避免了布局的嵌套,加快了UI的繪制。

You can also create a horizontal alignment using the top or bottom edges, but the button includes padding around its image, so the visual alignment is wrong if you align these views that way.

alignment?n. 隊(duì)列,成直線;校準(zhǔn);結(jié)盟

visual?adj. 視覺(jué)的,視力的;栩栩如生的

你可以利用頂部和底部邊緣把這兩個(gè)控件對(duì)齊,但是button自身是有padding的,所以這種視覺(jué)上的對(duì)齊實(shí)際上是錯(cuò)誤的

hard-coding strings?硬編碼字符串

responsive?adj. 響應(yīng)的;應(yīng)答的;回答的

A?chain?is a bidirectional constraint between two or more views that allows you to lay out the chained views in unison.

bidirectional?adj. 雙向的;雙向作用的

chain的作用是雙向約束,讓兩個(gè)或者更多的view一致的擺放在一條鏈上

https://developer.android.com/training/basics/firstapp/starting-activity.html#CreateActivity

?It's a good practice to define keys for intent extras using your app's package name as a prefix. This ensures the keys are unique, in case your app interacts with other apps.

盡量用app的包名作為extras的前綴,在與其他app交互時(shí),確保了key的唯一性。

https://developer.android.com/training/basics/supporting-devices/index.html

configurations?n. 配置(configuration的復(fù)數(shù));立體基陣

This class teaches you how to use basic platform features that leverage alternative resources and other features so your app can provide an optimized user experience on a variety of Android-compatible devices, using a single application package (APK).

leverage?v. 利用;舉債經(jīng)營(yíng)

alternative?n. 二中擇一;供替代的選擇

optimized?adj. 最佳化的;盡量充分利用

這個(gè)教程就是教你通過(guò)平臺(tái)特性利用可選擇的資源,通過(guò)一個(gè)apk就可以為各種Android手機(jī)提供最佳的用戶體驗(yàn)。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容