Tuyển tập mã mẫu và mẫu để bạn sử dụng nhằm tăng tốc độ phát triển ứng dụng. Hãy duyệt qua các mẫu để tìm hiểu cách xây dựng các thành phần cho ứng dụng của bạn.

Lọc theo

Ngôn ngữ
Chủ đề

This sample demonstrates how to display PDF document on screen using the PdfRenderer introduced in Android 5.0 Lollipop.

  • ContentResolver
  • DocumentsContract
  • PdfRenderer
  • Bộ nhớ Android
  • Bộ nhớ
  • Kotlin
Trung cấp

A proof of concept file manager utilizing the ACTION_OPEN_DOCUMENT_TREE intent introduced with Android 5.0, API level 21.

  • ContentResolver
  • DocumentsContract
  • Bộ nhớ Android
  • Bộ nhớ
  • Kotlin
Trung cấp
  • app
  • localstorage
  • Kotlin
Trung cấp

These samples showcase different architectural approaches to developing Android apps. In its different branches you'll find the same app (a TODO app) implemented with small differences. In this branch you'll find: User Interface built with Jetpack

  • Lớp giao diện người dùng của kiến trúc Android
  • Kiến trúc Android
  • Thành phần điều hướng trong Jetpack Compose
  • Quá trình tạo trạng thái của giao diện người dùng Android
  • Kiểm thử Android
  • Kiến trúc và trạng thái trong Jetpack Compose
  • Sự kiện trên giao diện người dùng cho kiến trúc Android
  • Phần tử giữ trạng thái của giao diện người dùng Android
  • Lớp dữ liệu của kiến trúc Android
  • Chức năng kiểm tra trong Jetpack Compose
  • Kotlin
Trung cấp

Features This sample showcases the behavior of a bottom navigation view following the Principles of Navigation. Fixed start destination Navigation state should be represented via a stack of destinations The Up button never exits your app Up and Back

  • Kiến trúc
  • Kiến trúc Android
  • Kotlin
Trung cấp

A sample that demonstrates to use registered fingerprints to authenticate the user in your app

  • FingerprintManager
  • AuthenticationCallback
  • CryptoObject
  • KeyGenParameterSpec
  • KeyStore
  • Cipher
  • KeyGenerator
  • Bảo mật
  • Bảo mật và quyền riêng tư trên Android
  • Kotlin
Trung cấp

Sample for the Androidx Biometrics Library

  • BiometricManager
  • BiometricPrompt
  • Bảo mật
  • Bảo mật và quyền riêng tư trên Android
  • Kotlin
Trung cấp

This sample demonstrates using the Camera2 API to capture a JPEG, DEPTH or RAW frame. Check the source code to see a simple example of how to display the camera preview and capture a still image using the default configuration with the selected pixel

  • DngCreator
  • Máy ảnh và nội dung đa phương tiện trên Android
  • Camera
  • Kotlin
Trung cấp

This sample captures high-speed video via the Camera2 API including displaying a camera preview and capturing a high-speed (slow motion) video using repeating burst capture requests.

  • camera2
  • CameraConstrainedHighSpeedCaptureSession
  • Máy ảnh và nội dung đa phương tiện trên Android
  • Camera
  • Kotlin
Trung cấp

This sample captures video record via the Camera2 API including displaying a camera preview and capturing a high-speed (slow motion) video using repeating capture requests.

  • camera2
  • MediaRecorder
  • Máy ảnh và nội dung đa phương tiện trên Android
  • Camera
  • Kotlin
Trung cấp

This sample demonstrates how to use CardView introduced in the support library in Android 5.0.

  • Thành phần hiển thị giao diện người dùng Android
  • Kotlin

This sample showcases the following features of the Data Binding library with an app that shows a workout timer. Two-way Data Binding Alternatives to Two-way Data Binding Binding adapters with multiple parameters Animations with Binding

  • Kiến trúc Android
  • Kotlin
Trung cấp

This sample showcases the following features of the Data Binding library: Layout variables and expressions Observability through Observable Fields, LiveData and Observable classes Binding Adapters, Binding Methods and Binding Converters Seamless

  • Kiến trúc Android
  • Kotlin
Trung cấp

This sample demonstrates how to use the Downloadable Fonts feature introduced in Android O. Downloadable Fonts is a feature that allows apps to request a certain font from a provider instead of bundling it or downloading it themselves. This means,

  • FontRequest
  • FontRequest
  • FontsContractCompat
  • FontsContractCompat
  • Thành phần hiển thị giao diện người dùng Android
  • Giao diện người dùng
  • Kotlin
Trung cấp

⚠️⚠️⚠️ Caution: the androidx.emoji:emoji library is deprecated in favor of androidx.emoji2:emoji2, which provides integration into androidx.appcompat. To support modern emoji and simplify backward-compatibility with lower versions of Android, it's

  • EmojiCompat
  • BundledEmojiCompatConfig
  • FontRequestEmojiCompatConfig
  • FontRequest
  • EmojiAppCompatTextView
  • EmojiAppCompatEditText
  • EmojiAppCompatButton
  • EmojiTextViewHelper
  • Thành phần hiển thị giao diện người dùng Android
  • Giao diện người dùng
  • Kotlin
Trung cấp

"Immersive mode" is intended for apps in which users will be heavily interacting with the screen. With this API, apps can hide the status bar, the navigation bar, or both. When users need to bring back the system bars, they swipe from any edge where

  • Thành phần hiển thị giao diện người dùng Android
  • Giao diện người dùng
  • Kotlin

This sample app demonstrates how to use the Cookie API. It contains storage and retrieval of values using both, the Android Framework API and the InstantApps Play Services API. Usage This API is available to both, the Instant App as well as the

  • Xây dựng Android
  • Kotlin
Nâng cao

This sample app demonstrates how to use the Install API. The API triggers Intent to install the app on device. The call also accepts Intent, which is triggered after the installation is complete. If an app wants to utilize this API, it needs an

  • Xây dựng Android
  • Kotlin
Nâng cao

This sample app demonstrates how to use the Storage API. It is relevant to devices running on Android versions lower than API level 26. On devices running on API level 26 or higher, the Android framework takes care of migrating user data from instant

  • Xây dựng Android
  • Kotlin
Nâng cao

This sample demonstrates how to use Android's MediaStore to locate and display the users images in a RecyclerView.

  • ContentResolver
  • MediaStore
  • Bộ nhớ Android
  • Bộ nhớ
  • Kotlin
Trung cấp

This sample demonstrates how to display PDF document on screen using the PdfRenderer introduced in Android 5.0 Lollipop.

  • PdfRenderer
  • Đồ hoạ
  • Đồ hoạ Android
  • Kotlin
Sơ cấp

This sample demonstrates basic usage of Picture-in-Picture mode for handheld devices. The sample plays a video. The video keeps on playing when the app is turned in to Picture-in-Picture mode. On Picture-in-Picture screen, the app shows an action

  • PictureInPictureParams
  • RemoteAction
  • PendingIntent
  • MediaSessionCompat
  • Máy ảnh và nội dung đa phương tiện trên Android
  • Nội dung đa phương tiện
  • Kotlin
Nâng cao

This repository contains a collection of samples that demonstrate the use of different Android OS platform APIs. The samples are organized into folders by topic, and each folder contains a README file that provides more information about the samples

  • Chức năng hỗ trợ tiếp cận trong Jetpack Compose
  • Khả năng kết nối
  • Camera
  • Giao diện người dùng
  • Quyền
  • Kotlin
Trung cấp

This application implements a RecyclerView in Kotlin with ListAdapter, onClickListener and Headers. If you are looking for a simpler sample, look at the RecyclerViewSimple sample in the directory.

  • RecyclerView
  • LayoutManager
  • ViewHolder
  • Thành phần hiển thị giao diện người dùng Android
  • Kotlin
Trung cấp
Nổi bật
Now in Android là một ứng dụng Android có đầy đủ chức năng được xây dựng bằng Kotlin và Jetpack Compose. Ứng dụng này mô hình hoá các phương pháp hay nhất về thiết kế và phát triển Android, đồng thời được thiết kế để trở thành tài liệu tham khảo hữu ích cho các nhà phát triển.