2018年9月29日 星期六

【Android】解決Error inflating class android.support.design.widget.TextInputLayout


/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月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日 星期五

【單晶片】如何使用WinAVR燒錄到ATmega8


安裝Atmel Programmer


每家廠商都有屬於自己的Programmer,WinAVR只能拿來編譯,不能燒錄晶片。

安裝WinAVR



2018年8月30日 星期四

【Google Search Console】提交Google Blogger的Sitemap

最近剛碰Google Search Console,提供了搜尋分析的服務,了解網頁在搜尋引擎的狀態。

新增網頁

請按"新增內容",將你的Blogger網址貼上



提交Sitemap

檢索→Sitemap→新增/測試 SITEMAP
請再輸入欄位貼上sitemap.xml,整串網址就變成:
http://[你的Blogger網址]/sitemap.xml

https://vincent-technology.blogspot.com/sitemap.xml

參考:

2018年8月28日 星期二

【資源】免費的高清桌布

裡面的桌布畫質超好又漂亮,很讚~

免費桌布:Wallpapers

【Linux】Grub開機選單設定

編輯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

【Linux】Windows 7&Ubuntu Desktop雙系統安裝

請先至官方下載Ubuntu Desktop的ISO檔
放入光碟
下載完成後打開,如下圖

🔺選擇光碟機並按燒錄