Korea Software HRD Center វគ្គសិក្សា Android ជាភាសាខ្មែរ រៀបរៀងដោយ ៖ កុ្រម Android រក្សាសិទ្ធ ៖ Korea Software HRD Center Korea Software HRD Center
Korea Software HRD Center មាតិកា ១. អ្វីទៅជា Activity? ១.១ យល់ដឹងអំពី Activity Lifecycle ២. យល់ដឹងអំពី Layout និងការប្រើប្រាស់ ៣. អ្វីទៅជា App Resources? ៣.១ Providing Resources ៣.១ Accessing Resources ៣.១ String Resources Korea Software HRD Center
២. Layout Layout គឺជាទម្រង់ក្នុងការរៀបចំ Controls ផ្សេងៗដូចជា Button Edit Text Text View … ដើម្បីបង្ហាញអោយឃើញទៅតាមអ្វីដែលចង់បាន ទាំងអស់នេះហៅថា View។ View Group View View View Group View View View
២. Layout (បន្ត…) គេអាចធ្វើការប្រកាសចេញនូវ Layout តាមវិធី ២យ៉ាង : គ្រប់ Layout file ទាំងអស់ត្រូវតែមាន Root element តែមួយគត់(View or ViewGroup) ។
២. Layout (បន្ត…) នៅក្នុង Android, Layout មានច្រើនប្រភេទដូចជា៖ Linear Layout Frame Layout Relative Layout Table Layout ScrollView
២. Layout (បន្ត…) Linear Layout Linear Layout គឺជាទម្រង់ក្នុងការរៀបចំ Controlsទៅតាមទិសដៅតែមួយរួមមានដេក ឬឈរ។ Linear Layout បែងចែកជា ២ ដូចខាងក្រោម៖ Horizontal : ជា default Layout របស់ Linear Layout និង មានទិសដៅឈរVertical: មានទិសដៅដេក ហើយអាចកំណត់ដោយប្រើប្រាស់ android:orientation
២. Layout (បន្ត…) <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation=“horizontal" > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation=“vertical" >
២. Layout (បន្ត…) Frame Layout Frame Layout ជាទូទៅត្រូវបានប្រើសម្រាប់បង្ហាញ View តែមួយគត់ បើយើងដាក់ view ច្រើន វានឹងត្រួតលើគ្នា យើងអាចកំណត់ទីតាំង child view តាមរយះ Android:layout_gravity
២. Layout (បន្ត…) Display Image Show Image
២. Layout (បន្ត…) Relative Layout Relative Layout គឺជាទម្រង់ក្នុងការរៀបចំ Controls អាស្រ័យទៅតាម ID ទីតាំងរបស់ Control ផ្សេងទៀត។ វាជា Layout ដែលពេញនិយម ព្រោះវាកាត់បន្ថយ ការបង្កើត Layout នៅក្នុង Layout បាន។ Component មួយអាច Overlap លើ Component ផ្សេងទៀតបាន ។
២. Layout (បន្ត…) Center Horizontal below Center Horizontal Align Parent Bottom
២. Layout (បន្ត…) Table Layout Table Layout គឺជាទម្រង់ក្នុងការរៀបចំ Controls បែបជាជួរឈរ និងជួរដេក។ យើងប្រើប្រាស់ TableRow ដើម្បីផ្ទុកនូវ Controls ផ្សេងៗ ។
២. Layout (បន្ត…) <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="edu.kshrd.kh.TableLayoutActivity" > <TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/username_" /> <EditText android:layout_width="0sp" android:layout_weight="1" android:inputType="text" /> </TableRow> </TableLayout>
២. Layout (បន្ត…) ScrollView ជាប្រភេទ Layout ពិសេសមួយរបស់ FrameLayout ដែលអនុញ្ញាតិអោយ User ធ្វើការ Scroll ដើម្បីមើលទិន្នន័យទាំងឡាយដែលហួសពី Screen ។ វាអាចមានតែ View ឬក៏ ViewGroup តែមួយ គត់ ជាធម្មតាគឺ LinearLayout ។ មិនត្រូវដាក់ Listview ក្នុង ScrollVIew នោះទេ
សមាជិក ក្រុមអ្នកស្រាវជ្រាវ ក្រុមផលិតវីដេអូ Mr. Chang Pumeoung chang.pumeoung@gmail.com Mr. Menh Sowattana menhsowattana168@gmail.com Mr. Choeung Bunna bunnach@gmail.com Ms. Pen Voneat penvoneat@gmail.com Lee Koui Pheng lee.pheng.galaxy@gmail.com Mr. Horn Daneth horndaneth3@gmail.com Mr. Nguon Youty nguonyouty@gmail.com Chheng Kaoly chhengkaoly@gmail.com Mr. Khov Ea Hang Khov.eahang@gmail.com Mr. Sous Veasna veasnasous@yahoo.com
Video បន្ទាប់ ពួកយើងនឹងណែនាំអំពី App Resources Thank You