How to change the Opacity of an image in android? By James | November 29, 2011 0 Comment Here is a simple function to change the opacity of a view in android. Opacity is called alpha in android. so setAlpha(int) will do the job. ImageView img = (ImageView)findViewById(R.id.img); img.setAlpha(50); The integer value may range from 0-255. More Similar Posts How to change title and Subtitle text color and size of…Contacts Demo in Swift 2 – Showing Contacts Picker,…What are static variables? Why it is used? What is…Android In App Purchased Demo V3.Best coding practices in Android Part 1How to create a radioGroup in Android inside a Scrollview?A Simple Chat Application in Android Using GCM and Server…Select an image from Gallery and show it in an ImageView in…Using Loaders in Android Using SimpleCursorAdapter in…Create PDF in iOSBest Coding Practices in Android – Part 2CRUD Operations in SQLite using SQLiteOpenHelper –…Creating Tabs dynamically in ios with dynamic tab…Uploading Image to Server – Android Eclipse Version.How will you create a static library in iOS?Building Custom Components in Android.Custom Loaders with SQLite in AndroidSolution for CoreData Multithreading problem.Custom Transitions in ANDROID.onRequestPermissionsResult not called on Fragments in…Random Integer array without repetition in Objective C…NSURLConnection – A Simple example – Upload…Swipe Refresh ListView using ListFragment and…Simple way to Animating Layout Changes in Android.What is @property in iOS mean?