مجموعه‌ای از نمونه‌های کد و قالب‌ها که می‌توانید از آنها برای تسریع توسعه برنامه خود استفاده کنید. برای یادگیری نحوه ساخت اجزای مختلف برای برنامه های خود، نمونه ها را مرور کنید.

فیلتر کردن براساس

زبان
موضوع

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

  • ContentResolver
  • DocumentsContract
  • PdfRenderer
  • فضای ذخیره‌سازی Android
  • فضای ذخیره‌سازی
  • Kotlin
متوسط

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

  • ContentResolver
  • DocumentsContract
  • فضای ذخیره‌سازی Android
  • فضای ذخیره‌سازی
  • Kotlin
متوسط

This sample shows how to use scene transitions from one Activity to another in Lollipop. Uses a combination of changeImageTransform and changeBounds to transition a grid of images to an Activity with a large image and detail text.

  • Transition
  • ActivityOptions
  • بازدیدهای واسط کاربر Android
  • جاوا
متوسط
  • app
  • localstorage
  • Kotlin
متوسط

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

  • لایه واسط کاربر معماری Android
  • معماری Android
  • پیمایش Jetpack Compose
  • تولید حالت واسط کاربر Android
  • آزمایش Android
  • حالت و معماری Jetpack Compose
  • رویدادهای واسط کاربر معماری Android
  • نگهدارنده‌های حالت واسط کاربر Android
  • لایه داده‌ای معماری Android
  • آزمایش Jetpack Compose
  • Kotlin
متوسط

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

  • معماری
  • معماری Android
  • Kotlin
متوسط

This sample showcases the following Architecture Components: Room ViewModels LiveData

  • معماری
  • معماری Android
  • جاوا
پیشرفته

This sample showcases the following Architecture Components: Paging Room ViewModels LiveData

  • معماری
  • معماری Android
  • جاوا
پیشرفته

This sample demonstrates the use of the Autofill Framework. It includes implementations of client Activities with views that should be autofilled, and a Service that can provide autofill data to client Activities.

  • View
  • AutoFillService
  • AutoFillManager
  • بازدیدهای واسط کاربر Android
  • جاوا
پیشرفته

This sample detects gestures on a view and logs them. In order to try this sample out, try dragging or tapping the text.

  • GestureDetector
  • MotionEvent
  • بازدیدهای واسط کاربر Android
  • جاوا
متوسط

This sample shows how to use the MediaCoder to decode a video, use a TimeAnimator to sync the rendering commands with the system display frame rendering and finally render it to a TextureView.

  • MediaCodec
  • MediaExtractor
  • TimeAnimator
  • رسانه
  • دوربین و رسانه Android
  • جاوا
پیشرفته

This sample demonstrates the use of the MediaRouter API to display content on a secondary display. Use the "Media Route Action Item" in the ActionBar to select an output device. If your device supports Miracast wireless displays, you may need to

  • دوربین و رسانه Android
  • رسانه
  • جاوا

Sample demonstrates the use of MotionEvent properties to keep track of individual touches across multiple touch events.

  • MotionEvent
  • بازدیدهای واسط کاربر Android
  • جاوا
متوسط

This sample demonstrates using RenderScript to perform basic image manipulation. Specifically, it allows users to dynamically adjust the saturation for an image using a slider. A custom RenderScript kernel performs the saturation adjustment, running

  • RenderScript
  • Allocation
  • بازی‌ها و جعبه‌ابزار توسعه بومی Android
  • جاوا
کارشناس

A basic app showing how to use the Transition framework introduced in KitKat. The app shows radioboxes to select between different Scenes, and uses various ways to transition between them.

  • TransitionManager
  • Transition
  • Scene
  • بازدیدهای واسط کاربر Android
  • جاوا
پیشرفته

Sample demonstrating how to set up SensorEventListeners for step detectors and step counters.

  • Sensor
  • SensorEvent
  • SensorEventListener
  • SensorManager
  • حسگرها
  • جاوا
پیشرفته

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

  • FingerprintManager
  • AuthenticationCallback
  • CryptoObject
  • KeyGenParameterSpec
  • KeyStore
  • Cipher
  • KeyGenerator
  • امنیت
  • امنیت و حریم خصوصی Android
  • Kotlin
متوسط

Sample for the Androidx Biometrics Library

  • BiometricManager
  • BiometricPrompt
  • امنیت
  • امنیت و حریم خصوصی Android
  • Kotlin
متوسط

Sample demonstrating how to advertise small amounts of data using the Bluetooth Low Energy API. Also demonstrates how to scan for those Advertisements. (requires 2 devices to see full operation)

  • BluetoothLeAdvertiser
  • BluetoothLeScanner
  • اتصال‌پذیری Android
  • Connectivity
  • جاوا
پیشرفته

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
  • دوربین و رسانه Android
  • دوربین
  • Kotlin
متوسط

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
  • دوربین و رسانه Android
  • دوربین
  • Kotlin
متوسط

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
  • دوربین و رسانه Android
  • دوربین
  • Kotlin
متوسط

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

  • بازدیدهای واسط کاربر Android
  • جاوا

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

  • بازدیدهای واسط کاربر Android
  • Kotlin
برجسته
Now in Android یک برنامه اندروید کاملاً کاربردی است که با Kotlin و Jetpack Compose ساخته شده است. این بهترین شیوه های طراحی و توسعه اندروید را مدل می کند و به گونه ای طراحی شده است که مرجع مفیدی برای توسعه دهندگان باشد.