Korea Software HRD Center

Slides:



Advertisements
Similar presentations
Android UserInterfaces Nasrullah Niazi. overView All user interface elements in an Android app are built using View and ViewGroup objects. A View is an.
Advertisements

Android Form Elements. Views Provide common UI functionality Form elements: text area, button, radio button, checkbox, dropdown list, etc. Date and time.
Layout and Control in UI The user interface (UI) is the graphical interface user can see and interact with your app comprising UI controls like textbox,
Presenting Lists of Data. Lists of Data Issues involved – unknown number of elements – allowing the user to scroll Data sources – most common ArrayList.
Creating Android user interfaces using layouts 1Android user interfaces using layouts.
Android development the first app. Andoid vs iOS which is better? Short answer: neither Proponents on both sides For an iOS side, see this article on.
Android Development: Application Layout Richard S. Stansbury 2015.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Modify Android Objects Using.
1 Mobile Computing Monetizing An App Copyright 2014 by Janson Industries.
Android Layouts. Layouts Define the user interface for an activity Layouts are defined in.xml files – within /res/layout folder – different layout can.
ANDROID – INTERFACE AND LAYOUT L. Grewe. Interfaces: Two Alternatives Code or XML  You have two ways you can create the interface(s) of your Application.
Mobile Programming Lecture 6
Linear Layout, Screen Support, and Events. Linear Layout Supports 2 orientations: 1.Horizontal 2.Vertical I often get confused with how each orientation.
Frank Xu Gannon University.  Linear Layout  Relative Layout  Table Layout.
1/29/ Android Programming: FrameLayout By Dr. Ramji M. Makwana Professor and Head, Computer Engineering Department A.D. Patel.
UI Resources Layout Resources String Resources Image Resources.
Programming with Android: Layouts, Widgets and Events Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.
User Interfaces: Part 1 (View Groups and Layouts).
Application Development for mobile Devices
Import import android.graphics.Bitmap; import android.widget.ImageView;
ANDROID – DRAWING IMAGES – SIMPLE EXAMPLE IN INTERFACE AND EVENT HANDLING L. Grewe.
Android App Basics Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5.
MOBILE COMPUTING D10K-7D02 MC04: Layouts Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
1 Android Development Lean and mean introduction Based on a presentation by Mihail L. Sichitiu.
CS378 - Mobile Computing User Interface Basics. User Interface Elements View – Control – ViewGroup Layout Widget (Compound Control) Many pre built Views.
Building User Interfaces Basic Applications
Android View Stuff. TextViews Display text Display images???
BUILDING A SIMPLE USER INTERFACE. In this lesson, you create a layout in XML that includes a text field and a button. In the next lesson, your app responds.
ANDROID LAYOUTS AND WIDGETS. Slide 2 Introduction Parts of the Android screen Sizing widgets and fonts Layouts and their characteristics Buttons, checkboxes.
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
Resources. Android Resources We’ve already talked about the different types of Android Resources DirectoryResource Type anim/XML files that define tween.
Lecture 3 Zablon Ochomo Android Layouts Lecture 3 Zablon Ochomo
Open Handset Alliance.
Android Layouts 8 May 2018 S.RENUKADEVI/AP/SCD/ANDROID LAYOUTS 1.
GUI Programming Fundamentals
Mobile Software Development for Android - I397
Linear Layout, Screen Support, and Events
Android Basic XML Layouts
CS499 – Mobile Application Development
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
Android Introduction Hello Views Part 1.
HNDIT2417 Mobile Application Development
CIS 470 Mobile App Development
CIS 470 Mobile App Development
CMPE419 Mobile Application Development
CA16R405 - Mobile Application Development (Theory)
Building User Interfaces Basic Applications
Note Q) How to format code in Enclipse? A) Ctrl + i
Android Developer Fundamentals V2
CIS 470 Mobile App Development
CIS 470 Mobile App Development
CMPE419 Mobile Application Development
Adding Components to Activity
Korea Software HRD Center
Building a Simple User Interface
CMPE419 Mobile Application Development
Korea Software HRD Center
Korea Software HRD Center
Korea Software HRD Center
User Interface Screen Elements
CS 240 – Advanced Programming Concepts
ITEC535 – Mobile Programming
Korea Software HRD Center
Korea Software HRD Center
Korea Software HRD Center
Android Sensor Programming
Android Sensor Programming
Android Sensor Programming
Presentation transcript:

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