葛瑞斯肯相關資訊
- May 06 Wed 2020 07:00
[Android Studio 3.5] 判斷 Android 版本的方法
- May 05 Tue 2020 07:00
[Android Studio 3.5] 時鐘顯示教學 ~AnalogClock/DigitalClock~
最近在研究 Android 怎麼呈現時間的方式,發現 Android 本身的 widget 有 AnalogClock 與 DigitalClock,而且使用方式很簡單,我們只需要再 activity_main.xml 介面中使用即可,如下:
AnalogClock |
<AnalogClock
android:id="@+id/analogClock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="152dp"
android:layout_marginLeft="152dp"
android:layout_marginTop="136dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.072"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> |
- Apr 27 Mon 2020 07:00
[小畫家] 用小畫家進行縮圖
撰寫備忘錄的時候常常安裝光影魔術手來進行編輯,不過最近才突然發現,其實我要用的功能很簡單,就是要把上傳的圖片縮圖,這個小畫家就可以做到了,在此特別紀錄一下:
Step 1: 打開 windows 的小畫家
- Apr 23 Thu 2020 07:00
[Android Studio 3.5] 無法引用自製動畫的xml (anim)
- Apr 15 Wed 2020 20:00
[Python 3] UnicodeDecodeError: 'cp950' codec can't decode byte 解決方法
- Apr 13 Mon 2020 20:00
[Android Studio] Android 權限
- Apr 13 Mon 2020 20:00
[Android Studio] Android Studio 將專案放到 git (Android 部屬到 git) ~git 指令教學~
以下紀錄 Android Studio 綁定 git 的方法:
我用的是 Android Studio 3.5.2,這篇文章預設是裝好 git 軟體了,然後可以在 Android Studio:
- Apr 13 Mon 2020 20:00
[Anaconda] UnavailableInvalidChannel: The channel is not accessible or is invalid 解決方法
我的 Anaconda 版本是 4.7.12,以下紀錄 UnavailableInvalidChannel: The channel is not accessible or is invalid 的解決方法:
- Apr 13 Mon 2020 20:00
[Anaconda] anaconda 安裝/設定 proxy
- Apr 09 Thu 2020 07:00
[Android Studio 3.5] 動態切換資源檔 (切換圖片)
在Andoird中可能會因為某些時間點進行不同的圖檔配置,這時候只要使用:
getResources().getDrawable(R.drawable.xxx)) |
就可以呼叫資源檔進行切換。
- Apr 08 Wed 2020 20:00
[Android Studio 3.5] Android 新增顏色代碼 (新增背景顏色)
- Apr 07 Tue 2020 20:00
[Android] Android 爬網、網路權限設定、多執行緒與更新MainActivity 以中央氣象局open data 為例
- Apr 07 Tue 2020 20:00
[Android Studio 3.5] 按鈕增加 border 線條與背景 (layout等其他元件均適用)
- Apr 06 Mon 2020 20:00
[Android Studio 3.5] ImageView 使用方法 (教學)
- Apr 05 Sun 2020 23:42
[Android Studio 3.5] LinearLayout 中設定 layout_weight 無效的解決方法
在進行排版的時候,想要將畫面均分或成比例去分,大家會想到的就是使用 layout_weight這個屬性。而這個屬性只有在 LinearLayout 中會生效,接下來我會產生兩個TextView,其中一個背景有使用到圖片,如下所示:
使用到的圖片來源: