Posts
Take a screenshot On many Android devices, you can capture a screenshot with a key-combination: Simultaneously press-and-hold Power and Volume-down. You can also capture a screenshot with Android Studio as follows: Run your app on a connected device or emulator. If using a connected device, be sure you have enabled USB debugging . In Android Studio, select View > Tool Windows > Logcat to open Logcat . Select the device and a process from the drop-down at the top of the window. Click Screen Capture on the left side of the window. The screenshot appears in a Screenshot Editor window. Figure 1. Screenshot editor 5.change the image: Recapture : Take a new screenshot. Rotate Left : Rotate the image 90 degrees counter-clockwise. Rotate Right : Rotate the image 90 degrees clockwise. Frame Screenshot : Choose a device to wrap your screenshot with real device artwork. Select Drop Shadow , Screen Glare , or both to a
Image library Major image loading libraries in android are : 1 . Picasso 2 . Glide 3 . Universal Image Loader 4. Fresco 1 . Picasso ----------------------- GRADLE implementation 'com.squareup.picasso:picasso: 2.71828 ' Picasso.get() .load(url) .placeholder(R.drawable.user_placeholder) .error(R.drawable.user_placeholder_error) .into(imageView); 2 . Glide --------------------- Gradle dependency: repositories { mavenCentral() google() } dependencies { implementation ' com.github.bumptech.glide:glide:4.8.0 ' annotationProcessor ' com.github.bumptech.glide:compiler:4.8.0 ' } Glide. with (getApplication()).load(url) .centerCrop() .crossFade() .error(R.mipmap. ic_launcher ) .diskCacheStrategy(DiskCacheStrategy. ALL ) .into( imageView ); 3 . Universal Image Loader --------------------------------------- Gradle dependency: compile ' com.nostra13.univers
Volley is a networking library for Android that manages network requests. It bundles the most important features you’ll need, such as accessing JSON APIs, loading images and String requests in an easier-to-use package. By using Volley for network operations you avoid the standard way to handle networking, HttpURLConnection . Another reason is asynchronicity. Volley handles asynchronicity by itself, there is no need to create Asynctask manually. Import Volley, add Permissions