## 本節(jié)引言
本節(jié)開(kāi)始講Android中的布局,Android中有六大布局,分別是: LinearLayout(線(xiàn)性布局),RelativeLayout(相對(duì)布局),TableLayout(表格布局) FrameLayout(幀布局),AbsoluteLayout(絕對(duì)布局),GridLayout(網(wǎng)格布局) 而今天我們要講解的就是第一個(gè)布局,LinearLayout(線(xiàn)性布局),我們屏幕適配的使用 用的比較多的就是LinearLayout的weight(權(quán)重屬性),在這一節(jié)里,我們會(huì)詳細(xì)地解析 LinearLayout,包括一些基本的屬性,Weight屬性的使用,以及比例如何計(jì)算,另外還 會(huì)說(shuō)下一個(gè)用的比較少的屬性:android:divider繪制下劃線(xiàn)!
* * *
## 1.本節(jié)學(xué)習(xí)圖

* * *
## 2.weight(權(quán)重)屬性詳解:
### ①最簡(jiǎn)單用法:
如圖:

實(shí)現(xiàn)代碼:
~~~
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="fill_parent"
android:background="#ADFF2F"
android:layout_weight="1"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="fill_parent"
android:background="#DA70D6"
android:layout_weight="2"/>
</LinearLayout>
~~~
要實(shí)現(xiàn)第一個(gè)的1:1的效果,只需要分別把兩個(gè)LinearLayout的weight改成1和1就可以了 用法歸納: 按比例劃分水平方向:將涉及到的View的android:width屬性設(shè)置為0dp,然后設(shè)置為android weight屬性設(shè)置比例即可;類(lèi)推,豎直方向,只需設(shè)android:height為0dp,然后設(shè)weight屬性即可! 大家可以自己寫(xiě)個(gè)豎直方向的等比例劃分的體驗(yàn)下簡(jiǎn)單用法!
### ②weight屬性詳解:
當(dāng)然,如果我們不適用上述那種設(shè)置為0dp的方式,直接用wrap_content和match_parent的話(huà), 則要接著解析weight屬性了,分為兩種情況,wrap_content與match_parent!另外還要看 LinearLayout的orientation是水平還是豎直,這個(gè)決定哪個(gè)方向等比例劃分
**1)wrap_content比較簡(jiǎn)單,直接就按比例的了**

實(shí)現(xiàn)代碼:
~~~
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<TextView
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:text="one"
android:background="#98FB98"
/>
<TextView
android:layout_weight="2"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:text="two"
android:background="#FFFF00"
/>
<TextView
android:layout_weight="3"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:text="three"
android:background="#FF00FF"
/>
</LinearLayout>
~~~
**2)match_parent(fill_parent):這個(gè)則需要計(jì)算了**
我們寫(xiě)這段簡(jiǎn)單的代碼:
~~~
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="one"
android:background="#98FB98"
/>
<TextView
android:layout_weight="2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="two"
android:background="#FFFF00"
/>
<TextView
android:layout_weight="3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="three"
android:background="#FF00FF"
/>
</LinearLayout>
~~~
運(yùn)行效果圖:

> 這個(gè)時(shí)候就會(huì)有疑問(wèn)了,怎么會(huì)這樣,這比例是2:1吧,那么three去哪了?代碼里面明明有 three的啊,還設(shè)置了3的,而1和2的比例也不對(duì)耶,1:2:3卻變成了2:1:0,怎么會(huì)這樣呢? 答:這里其實(shí)沒(méi)那么簡(jiǎn)單的,還是需要我們計(jì)算的,網(wǎng)上給出的算法有幾種,這里就給出筆者 覺(jué)得比較容易理解的一種:?**step 1:**個(gè)個(gè)都是fill_parent,但是屏幕只有一個(gè)啦,那么1 - 3 = - 2 fill_parent?**step 2:**依次比例是1/6,2/6,3/6?**step 3:**先到先得,先分給one,計(jì)算: 1 - 2 * (1/6) = 2/3 fill_parent 接著到two,計(jì)算: 1 - 2 * (2/6) = 1/3 fill_parent 最后到three,計(jì)算 1 - 2 * (3/6) = 0 fill_parent?**step 4:**所以最后的結(jié)果是:one占了兩份,two占了一份,three什么都木有 以上就是為什么three沒(méi)有出現(xiàn)的原因了,或許大家看完還是有點(diǎn)蒙,沒(méi)事,我們舉多幾個(gè)例子試試就知道了!
**比例為:1:1:1**

按照上面的計(jì)算方法算一次,結(jié)果是:1/3 1/3 1/3,沒(méi)錯(cuò)
**接著我們?cè)僭囅?2:3:4**

計(jì)算結(jié)果:5/9 3/9 1/9,對(duì)比效果圖,5:3:1,也沒(méi)錯(cuò),所以這個(gè)計(jì)算方法你可得mark下了!
### ③Java代碼中設(shè)置weight屬性:
~~~
setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT, 1));
~~~
* * *
## 3.為L(zhǎng)inearLayout設(shè)置分割線(xiàn)
很多界面開(kāi)發(fā)中都會(huì)設(shè)置一些下劃線(xiàn),或者分割線(xiàn),從而使得界面更加整潔美觀,比如下面的酷狗 音樂(lè)的注冊(cè)頁(yè)面:

對(duì)于這種線(xiàn),我們通常的做法有兩種?**①直接在布局中添加一個(gè)view**,這個(gè)view的作用僅僅是顯示出一條線(xiàn),代碼也很簡(jiǎn)單:
~~~
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:background="#000000" />
~~~
這個(gè)是水平方向上的黑線(xiàn),當(dāng)然你也可以改成其他顏色,或者使用圖片

**②第二種則是使用LinearLayout的一個(gè)divider屬性**,直接為L(zhǎng)inearLayout設(shè)置分割線(xiàn) 這里就需要你自己準(zhǔn)備一張線(xiàn)的圖片了 1)android:divider設(shè)置作為分割線(xiàn)的圖片 2)android:showDividers設(shè)置分割線(xiàn)的位置,none(無(wú)),begining(開(kāi)始),end(結(jié)束),middle(每?jī)蓚€(gè)組件間) 3)dividerPadding設(shè)置分割線(xiàn)的Padding
使用示例:

實(shí)現(xiàn)代碼:
~~~
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@drawable/ktv_line_div"
android:orientation="vertical"
android:showDividers="middle"
android:dividerPadding="10dp"
tools:context="com.jay.example.linearlayoutdemo.MainActivity" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="按鈕1" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="按鈕2" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="按鈕3" />
</LinearLayout>
~~~
* * *
## 4.LinearLayout的簡(jiǎn)單例子:

實(shí)現(xiàn)代碼如下:
~~~
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="請(qǐng)輸入要保存的電話(huà)號(hào)碼"/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="right">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="保存"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="清空"/>
</LinearLayout>
</LinearLayout>
~~~
## 5.注意事項(xiàng):
使用Layout_gravity的一個(gè)很重要的問(wèn)題!!! 問(wèn)題內(nèi)容: 在一個(gè)LinearLayout的水平方向中布置兩個(gè)TextView,想讓一個(gè)左,一個(gè)右,怎么搞? 或許你會(huì)脫口而出:"gravity設(shè)置一個(gè)left,一個(gè)right就可以啦!" 真的這么簡(jiǎn)單?你試過(guò)嗎?寫(xiě)個(gè)簡(jiǎn)單的Layout你就會(huì)發(fā)現(xiàn),事與愿違了: 代碼如下:
~~~
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
tools:context="com.jay.example.getscreendemo.MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="200dp"
android:layout_gravity="left"
android:background="#FF7878"
android:gravity="center"
android:text="O(∩_∩)O哈哈~" />
<TextView
android:layout_width="wrap_content"
android:layout_height="200dp"
android:layout_gravity="right"
android:background="#FF7428"
android:gravity="center"
android:text="(*^__^*) 嘻嘻……" />
</LinearLayout>
~~~
運(yùn)行結(jié)果圖:

看到這里你會(huì)說(shuō):哎呀,真的不行耶,要不在外層LinearLayout加個(gè)gravity=left的屬性,然后設(shè)置第二個(gè) TextView的layout_gravity為right,恩,好我們?cè)囈幌?
~~~
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:gravity="left"
tools:context="com.jay.example.getscreendemo.MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="200dp"
android:background="#FF7878"
android:gravity="center"
android:text="O(∩_∩)O哈哈~" />
<TextView
android:layout_width="wrap_content"
android:layout_height="200dp"
android:layout_gravity="right"
android:background="#FF7428"
android:gravity="center"
android:text="(*^__^*) 嘻嘻……" />
</LinearLayout>
~~~
結(jié)果還是一樣:

好吧,沒(méi)轍了,怎么辦好?
> **當(dāng) android:orientation="vertical" 時(shí), 只有水平方向的設(shè)置才起作用,垂直方向的設(shè)置不起作用。 即:left,right,center_horizontal 是生效的。 當(dāng) android:orientation="horizontal" 時(shí), 只有垂直方向的設(shè)置才起作用,水平方向的設(shè)置不起作用。 即:top,bottom,center_vertical 是生效的。**
然而,這方法好像并沒(méi)有什么卵用。比如: 如果只能豎直方向設(shè)置左右對(duì)齊的話(huà),就會(huì)出現(xiàn)下面的效果:

這顯然不是我們要的結(jié)果把! 綜上,要么按照上述給出的規(guī)則來(lái)布局,不過(guò)對(duì)于這種情況還是使用相對(duì)布局RelativeLayout把! 網(wǎng)上沒(méi)給出具體的原因,都是說(shuō)這樣改有人說(shuō)這個(gè)和orientation的優(yōu)先級(jí)有關(guān) ,暫且先mark下來(lái)吧,后續(xù)如果知道原因的話(huà)再解釋!前面屏幕適配也說(shuō)過(guò)了,**布局還是建議使用 RelativeLayout!**
PS:本文是之前筆者寫(xiě)的布局系列文章中的一篇,自覺(jué)的寫(xiě)得很贊,所以這里直接引用的原文內(nèi)容, 原文鏈接如下:[New UI-布局之LinearLayout(線(xiàn)性布局)詳解](http://blog.csdn.net/coder_pig/article/details/42344615)
- 第一章——環(huán)境搭建和開(kāi)發(fā)相關(guān)
- 1.0 Android基礎(chǔ)入門(mén)教程
- 1.1 背景相關(guān)與系統(tǒng)架構(gòu)分析
- 1.2 開(kāi)發(fā)環(huán)境搭建
- 1.2.1 使用Eclipse + ADT + SDK開(kāi)發(fā)Android APP
- 1.2.2 使用Android Studio開(kāi)發(fā)Android APP
- 1.3 SDK更新不了問(wèn)題解決
- 1.4 Genymotion模擬器安裝
- 1.5 GIT教程
- 1.5.1 Git使用教程之本地倉(cāng)庫(kù)的基本操作
- 1.5.2 Git之使用GitHub搭建遠(yuǎn)程倉(cāng)庫(kù)
- 1.6 .9(九妹)圖片怎么玩
- 1.7 界面原型設(shè)計(jì)
- 1.8 工程相關(guān)解析(各種文件,資源訪問(wèn))
- 1.9 Android程序簽名打包
- 1.11 反編譯APK獲取代碼&資源
- 第二章——Android中的UI組件的詳解
- 2.1 View與ViewGroup的概念
- 2.2 布局
- 2.2.1 LinearLayout(線(xiàn)性布局)
- 2.2.2 RelativeLayout(相對(duì)布局)
- 2.2.3 TableLayout(表格布局)
- 2.2.4 FrameLayout(幀布局)
- 2.2.5 GridLayout(網(wǎng)格布局)
- 2.2.6 AbsoluteLayout(絕對(duì)布局)
- 2.3 表單
- 2.3.1 TextView(文本框)詳解
- 2.3.2 EditText(輸入框)詳解
- 2.3.3 Button(按鈕)與ImageButton(圖像按鈕)
- 2.3.4 ImageView(圖像視圖)
- 2.3.5.RadioButton(單選按鈕)&Checkbox(復(fù)選框)
- 2.3.6 開(kāi)關(guān)按鈕ToggleButton和開(kāi)關(guān)Switch
- 2.3.7 ProgressBar(進(jìn)度條)
- 2.3.8 SeekBar(拖動(dòng)條)
- 2.3.9 RatingBar(星級(jí)評(píng)分條)
- 2.4 控件
- 2.4.1 ScrollView(滾動(dòng)條)
- 2.4.2 Date & Time組件(上)
- 2.4.3 Date & Time組件(下)
- 2.4.4 Adapter基礎(chǔ)講解
- 2.4.5 ListView簡(jiǎn)單實(shí)用
- 2.4.6 BaseAdapter優(yōu)化
- 2.4.7ListView的焦點(diǎn)問(wèn)題
- 2.4.8 ListView之checkbox錯(cuò)位問(wèn)題解決
- 2.4.9 ListView的數(shù)據(jù)更新問(wèn)題
- 2.5 Adapter類(lèi)控件
- 2.5.0 構(gòu)建一個(gè)可復(fù)用的自定義BaseAdapter
- 2.5.1 ListView Item多布局的實(shí)現(xiàn)
- 2.5.2 GridView(網(wǎng)格視圖)的基本使用
- 2.5.3 Spinner(列表選項(xiàng)框)的基本使用
- 2.5.4 AutoCompleteTextView(自動(dòng)完成文本框)的基本使用
- 2.5.5 ExpandableListView(可折疊列表)的基本使用
- 2.5.6 ViewFlipper(翻轉(zhuǎn)視圖)的基本使用
- 2.5.7 Toast(吐司)的基本使用
- 2.5.8 Notification(狀態(tài)欄通知)詳解
- 2.5.9 AlertDialog(對(duì)話(huà)框)詳解
- 2.6 對(duì)話(huà)框控件
- 2.6.0 其他幾種常用對(duì)話(huà)框基本使用
- 2.6.1 PopupWindow(懸浮框)的基本使用
- 2.6.2 菜單(Menu)
- 2.6.3 ViewPager的簡(jiǎn)單使用
- 2.6.4 DrawerLayout(官方側(cè)滑菜單)的簡(jiǎn)單使用
- 第三章——Android的事件處理機(jī)制
- 3.1.1 基于監(jiān)聽(tīng)的事件處理機(jī)制
- 3.2 基于回調(diào)的事件處理機(jī)制
- 3.3 Handler消息傳遞機(jī)制淺析
- 3.4 TouchListener PK OnTouchEvent + 多點(diǎn)觸碰
- 3.5 監(jiān)聽(tīng)EditText的內(nèi)容變化
- 3.6 響應(yīng)系統(tǒng)設(shè)置的事件(Configuration類(lèi))
- 3.7 AnsyncTask異步任務(wù)
- 3.8 Gestures(手勢(shì))
- 第四章——Android的四大組件
- 4.1.1 Activity初學(xué)乍練
- 4.1.2 Activity初窺門(mén)徑
- 4.1.3 Activity登堂入室
- 4.2.1 Service初涉
- 4.2.2 Service進(jìn)階
- 4.2.3 Service精通
- 4.3.1 BroadcastReceiver牛刀小試
- 4.3.2 BroadcastReceiver庖丁解牛
- 4.4.1 ContentProvider初探
- 4.4.2 ContentProvider再探——Document Provider
- 4.5.1 Intent的基本使用
- 4.5.2 Intent之復(fù)雜數(shù)據(jù)的傳遞
- 第五章——Fragment(碎片)
- 5.1 Fragment基本概述
- 5.2.1 Fragment實(shí)例精講——底部導(dǎo)航欄的實(shí)現(xiàn)(方法1)
- 5.2.2 Fragment實(shí)例精講——底部導(dǎo)航欄的實(shí)現(xiàn)(方法2)
- 5.2.3 Fragment實(shí)例精講——底部導(dǎo)航欄的實(shí)現(xiàn)(方法3)
- 5.2.4 Fragment實(shí)例精講——底部導(dǎo)航欄+ViewPager滑動(dòng)切換頁(yè)面
- 5.2.5 Fragment實(shí)例精講——新聞(購(gòu)物)類(lèi)App列表Fragment的簡(jiǎn)單實(shí)現(xiàn)
- 第六章——Android數(shù)據(jù)存儲(chǔ)與訪問(wèn)
- 6.1 數(shù)據(jù)存儲(chǔ)與訪問(wèn)之——文件存儲(chǔ)讀寫(xiě)
- 6.2 數(shù)據(jù)存儲(chǔ)與訪問(wèn)之——SharedPreferences保存用戶(hù)偏好參數(shù)
- 6.3.1 數(shù)據(jù)存儲(chǔ)與訪問(wèn)之——初見(jiàn)SQLite數(shù)據(jù)庫(kù)
- 6.3.2 數(shù)據(jù)存儲(chǔ)與訪問(wèn)之——又見(jiàn)SQLite數(shù)據(jù)庫(kù)
- 第七章——Android網(wǎng)絡(luò)編程
- 7.1.1 Android網(wǎng)絡(luò)編程要學(xué)的東西與Http協(xié)議學(xué)習(xí)
- 7.1.2 Android Http請(qǐng)求頭與響應(yīng)頭的學(xué)習(xí)
- 7.1.3 Android HTTP請(qǐng)求方式:HttpURLConnection
- 7.1.4 Android HTTP請(qǐng)求方式:HttpClient
- 7.2.1 Android XML數(shù)據(jù)解析
- 7.2.2 Android JSON數(shù)據(jù)解析
- 7.3.1 Android 文件上傳
- 7.3.2 Android 文件下載(1)
- 7.3.3 Android 文件下載(2)
- 7.4 Android 調(diào)用 WebService
- 7.5.1 WebView(網(wǎng)頁(yè)視圖)基本用法
- 7.5.2 WebView和JavaScrip交互基礎(chǔ)
- 7.5.3 Android 4.4后WebView的一些注意事項(xiàng)
- 7.5.4 WebView文件下載
- 7.5.5 WebView緩存問(wèn)題
- 7.5.6 WebView處理網(wǎng)頁(yè)返回的錯(cuò)誤碼信息
- 7.6.1 Socket學(xué)習(xí)網(wǎng)絡(luò)基礎(chǔ)準(zhǔn)備
- 7.6.2 基于TCP協(xié)議的Socket通信(1)
- 7.6.3 基于TCP協(xié)議的Socket通信(2)
- 7.6.4 基于UDP協(xié)議的Socket通信
- 第八章——Android繪圖與動(dòng)畫(huà)基礎(chǔ)
- 8.1.1 Android中的13種Drawable小結(jié) Part 1
- 8.1.2 Android中的13種Drawable小結(jié) Part 2
- 8.1.3 Android中的13種Drawable小結(jié) Part 3
- 8.2.1 Bitmap(位圖)全解析 Part 1
- 8.2.2 Bitmap引起的OOM問(wèn)題
- 8.3.1 三個(gè)繪圖工具類(lèi)詳解
- 8.3.2 繪圖類(lèi)實(shí)戰(zhàn)示例
- 8.3.3 Paint API之—— MaskFilter(面具)
- 8.3.4 Paint API之—— Xfermode與PorterDuff詳解(一)
- 8.3.5 Paint API之—— Xfermode與PorterDuff詳解(二)
- 8.3.6 Paint API之—— Xfermode與PorterDuff詳解(三)
- 8.3.7 Paint API之—— Xfermode與PorterDuff詳解(四)
- 8.3.8 Paint API之—— Xfermode與PorterDuff詳解(五)
- 8.3.9 Paint API之—— ColorFilter(顏色過(guò)濾器)(1/3)
- 8.3.10 Paint API之—— ColorFilter(顏色過(guò)濾器)(2-3)
- 8.3.11 Paint API之—— ColorFilter(顏色過(guò)濾器)(3-3)
- 8.3.12 Paint API之—— PathEffect(路徑效果)
- 8.3.13 Paint API之—— Shader(圖像渲染)
- 8.3.14 Paint幾個(gè)枚舉/常量值以及ShadowLayer陰影效果
- 8.3.15 Paint API之——Typeface(字型)
- 8.3.16 Canvas API詳解(Part 1)
- 8.3.17 Canvas API詳解(Part 2)剪切方法合集
- 8.3.18 Canvas API詳解(Part 3)Matrix和drawBitmapMash
- 8.4.1 Android動(dòng)畫(huà)合集之幀動(dòng)畫(huà)
- 8.4.2 Android動(dòng)畫(huà)合集之補(bǔ)間動(dòng)畫(huà)
- 8.4.3 Android動(dòng)畫(huà)合集之屬性動(dòng)畫(huà)-初見(jiàn)
- 8.4.4 Android動(dòng)畫(huà)合集之屬性動(dòng)畫(huà)-又見(jiàn)
- 第九章——Android中的多媒體開(kāi)發(fā)
- 9.1 使用SoundPool播放音效(Duang~)
- 9.2 MediaPlayer播放音頻與視頻
- 9.3 使用Camera拍照
- 9.4 使用MediaRecord錄音
- 第十章——系統(tǒng)服務(wù)
- 10.1 TelephonyManager(電話(huà)管理器)
- 10.2 SmsManager(短信管理器)
- 10.3 AudioManager(音頻管理器)
- 10.4 Vibrator(振動(dòng)器)
- 10.5 AlarmManager(鬧鐘服務(wù))
- 10.6 PowerManager(電源服務(wù))
- 10.7 WindowManager(窗口管理服務(wù))
- 10.8 LayoutInflater(布局服務(wù))
- 10.9 WallpaperManager(壁紙管理器)
- 10.10 傳感器專(zhuān)題(1)——相關(guān)介紹
- 10.11 傳感器專(zhuān)題(2)——方向傳感器
- 10.12 傳感器專(zhuān)題(3)——加速度/陀螺儀傳感器
- 10.12 傳感器專(zhuān)題(4)——其他傳感器了解
- 10.14 Android GPS初涉
- 第十一章——由來(lái)、答疑和資源
- 11.0《2015最新Android基礎(chǔ)入門(mén)教程》完結(jié)散花~
