| /res/layout/activity_main.xml |
| <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="5dp" tools:context=".MainActivity"> <android.support.design.widget.TextInputLayout android:id="@+id/main_iply_input" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.design.widget.TextInputEditText android:id="@+id/main_edit_input" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="hint" /> </android.support.design.widget.TextInputLayout> <android.support.design.widget.TextInputLayout android:id="@+id/main_iply_output" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" app:layout_constraintBottom_toBottomOf="parent"> <android.support.design.widget.TextInputEditText android:id="@+id/main_edit_output" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="hint" /> </android.support.design.widget.TextInputLayout> </android.support.constraint.ConstraintLayout> |
2018年9月29日 星期六
【Android】解決Error inflating class android.support.design.widget.TextInputLayout
2018年9月22日 星期六
【Linux】使用LVM合併硬碟空間
LVM簡介
Logical Volume Manager,縮寫為LVM,為邏輯捲軸管理員,主要分四層。
PV、VG、PE、LV。
本文在介紹如何使用VLM來管理PV、VG、PE、LV這幾個物件,讓你的兩顆硬碟變成一顆大硬碟。
下圖為LVM的結構,LV可以搭載著檔案系統,VG是將不同的硬碟變成一個群組(LV依附在VG身上),PV則是LVM的基本單位,可以是整顆硬碟,也可以是分割區(VG依附在PV身上)。
2018年9月21日 星期五
2018年8月30日 星期四
【Google Search Console】提交Google Blogger的Sitemap
最近剛碰Google Search Console,提供了搜尋分析的服務,了解網頁在搜尋引擎的狀態。
新增網頁
請按"新增內容",將你的Blogger網址貼上
提交Sitemap
檢索→Sitemap→新增/測試 SITEMAP
請再輸入欄位貼上sitemap.xml,整串網址就變成:
http://[你的Blogger網址]/sitemap.xml
2018年8月28日 星期二
【Linux】Grub開機選單設定
編輯grub開機選單
$ sudo nano /etc/default/grub
$ sudo nano /etc/default/grub
| /etc/default/grub |
| GRUB_DEFAULT=4 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" GRUB_BACKGROUND=/custom/grub_bg.jpg |
訂閱:
文章 (Atom)




