Sensor Dashboard
Lab 5: Sensor Dashboard (TabView)
1. โครงสร้างภาพรวมของ Lab
Why? - ทำไมต้องเรียนรู้เรื่องนี้
What? - จะได้เรียนรู้อะไร
How? - จะทำอย่างไร

2. หลักการทำงาน
2.1 TabView Architecture
2.2 Screen Layout
2.3 Data Flow
2.4 Tab Bar Position Options
3. ฟังก์ชันสำคัญ
3.1 TabView Functions
Function
Description
ตัวอย่าง
3.2 Tab Bar Position Constants
Direction
Description
Content Size (480x320 screen)
3.3 Critical Pattern - ปิด Scrolling
3.4 Simulation Functions (PC Simulator)
4. โค้ดตัวอย่าง
4.1 Global Variables
4.2 Simulation Helpers
4.3 Timer Callback - อัพเดทข้อมูลทุก Tab
4.4 สร้าง IMU Tab Content
4.5 สร้าง ADC Tab Content
4.6 Main Function
5. องค์ความรู้และเทคนิค
5.1 Tab Bar Sizing - ขนาดของ Tab Bar
5.2 Tab Content Parent - ข้อควรระวัง
5.3 Tab Button Styling - ปรับแต่งปุ่ม Tab
5.4 Programmatic Tab Switching
5.5 Performance Tip - อัพเดทเฉพาะ Tab ที่ Active
6. แบบฝึกหัด
Exercise 1: เพิ่ม Tab ที่ 3 - System Status
Exercise 2: Auto-Rotating Tabs
Exercise 3: Tab Content with Color Theme
7. References
Last updated
Was this helpful?