- เพิ่ม Reference
- สร้างไฟล์ Excel เปล่า
- กำหนดข้อความ ตัวหนา และตำแหน่งกึ่งกลาง
- การใช้ Array การใส่สูตร การจัดขนาดคอลัมน์
- เพิ่ม WorkSheet และจัดลำดับ WorkSheet
- โค๊ดทั้งหมด
Monthly Archives: June 2019
Retrofit2 – GET
- build.gradle (Module: app)
- สำรวจ API ของ Github
- สร้าง class
- สร้าง API interface
- สร้าง TextView ไว้แสดงผล
- MainActivity
- ขอสิทธิ์
iPad: ปัญหา Device support file
ปัญหา
This iPad (6th generation) (Model A1893) is running iOS 12.3.1 (16F203), which may not be supported by this version of Xcode.
ทางแก้คือไปที่ https://github.com/filsv/iPhoneOSDeviceSupport แล้วทำตามขั้นตอน
- Download version you need listed above;
- Unzip it;
- Close Xcode;
- Copy and paste unziped folder by path: “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/” (hierarchy like – https://github.com/filsv/iPhoneOSDeviceSupport/blob/master/Screen%20Shot%202018-09-16%20at%2019.52.35.png);
- Reopen Xcode;
เพียงแค่นี้ก็ไม่ต้องดาว์นโหลด Xcode ใหม่
ปุ่มลัดบนคีย์บอร์ดของ Mac
- ⌃ + Space : เปลี่ยนภาษา
- CMD + R (same as F5 on Windows/Linux) refresh browser
- Ctrl + Arrow Up : ย่อแอพทั้งหมดมาแสดงแบบย่อๆ
- F11 : Show Desktop
- Control + Command + F : แสดงแอปที่เปิดอยู่แบบเต็มหน้าจอ
- SHIFT + CMD + R (same as CTRL+F5 on Windows/Linux) refresh browser cleaning cache:
- Cmd + Space to open spotlight search
- Option + Arrow ย้าย cursor ทีละคำ (เหมือน Ctrol + Arrow บน Windows)
Simple Splash Screen
กำหนดหน้า Splash Screen ให้แสดงข้อความที่กลางหน้าจอนาน 3 วินาที แล้วค่อยเรียกหน้า MainActivity
แก้ไขไฟล์
- strings.xml
- activity_splash.xml
- SplashActivity.kt
- AndroidManifest.xml
Android – แอพ Counter
Kotlin เรียกใช้ Java
สร้างคลาสใน Java ชื่อ MyMath
เพื่อให้ Kotlin
เรียกใช้
Android/Kotlin โปรเจ็กส์ใหม่แบบ Empty Activity
ดูไฟล์ต่างๆเมื่อสร้างโปรเจ็กส์ใหม่แบบ Empty Activity
- AndroidManifest.xml
- build.gradle (Project: MyApplication)
- build.gradle (Module: app)
- activity_main.xml
- MainActivity.kt
- ExampleUnitTest.kt
Android Kotlin MVP – แอพ Counter
สร้างแอพ Counter แบบ MVP (Model View Presenter) โดยทุกครั่งที่กดปุ่ม ตัวเลขก็จะเพิ่มขึ้นเรื่อยๆ
Continue readingKotlin
var is like general variable and it’s known as a mutable variable in kotlin and can be assigned multiple times.
val is like Final variable and it’s known as immutable in kotlin and can be initialized only single time.