Android Archite-WPS Office
Android Archite-WPS Office
1. Linux Kernel
The Linux Kernel forms the foundational layer
of the Android architecture. It directly interacts
with the device’s hardware, making it the core
part of the OS. Key responsibilities of the Linux
kernel include:
Device Drivers: It contains essential drivers that
communicate with hardware components like
display, camera, Wi-Fi, audio, and Bluetooth.
2. Native Libraries
4. Application Framework
Additional Components
---
1. onCreate()
2. onStart()
3. onResume()
4. onPause()
5. onStop()
6. onDestroy()
1. Introduction to TextView
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Android Programming"
android:textSize="32sp"
android:typeface="serif" />
Example:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Heading Text"
android:textSize="24sp" />
Example:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Styled Text"
android:textStyle="italic" />
Example:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Warning Text"
android:textColor="#B00020" />
4. Advanced Text Attributes
Example:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Shadowed Text"
android:shadowDx="4"
android:shadowDy="4"
android:shadowRadius="10"
android:shadowColor="@color/green_500" />
Example:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text with Icon"
android:drawableStart="@drawable/ic_icon"
/>
Example:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autolink="all"
android:text="http://www.google.com" />
Summary
TextView in Android is a versatile tool that
allows for text display customization,
enhancing user interaction through styling,
linking, shadow effects, and more. By
configuring these attributes, developers can
present text in a user-friendly, engaging way.
Android UI Components
1. TextView
TextView is a UI component used to display
text to the user. It functions like a label,
showing text but not allowing users to edit it.
Attributes:
3. Button
4. ImageButton
6. RadioButton
7. RadioGroup
A collection of RadioButtons where only one
can be selected at a time, ensuring a single-
choice selection.
8. CheckBox
9. ProgressBar
Shows the progress of a task, such as
downloading. It has two modes:
10. Spinner
12. DatePicker
14. RatingBar
16. Switch
17. AutoCompleteTextView
Extends EditText by providing text suggestions
as users type, helping with inputs that have
common values.