CircularImageView:
In android, Normally we have use Imageview to show the image in the activity,but now CircularImageView is used to show the image as circular, Most probably we have to use circularImageView in profile activity. It show very differently and programmer easily implement using following ways.
Step 1:
Download the CircularImageView.java file from here
Download CircularImageView.java
Step 2:
Place the Java File in your Package then Goto xml file
Step 3:
In onCreate() method do FindViewByID and then we can make click for the circularImageView using setOnClickListener method.
Download the CircularImageView.java file from here
Download CircularImageView.java
Step 2:
Place the Java File in your Package then Goto xml file
<com.androidvedha.external.CircularImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/profile_image"
android:layout_width="96dp"
android:layout_height="96dp"
android:src="@drawable/profile"
app:civ_border_width="2dp"
app:civ_border_color="#FF000000"/>
Step 3:
In onCreate() method do FindViewByID and then we can make click for the circularImageView using setOnClickListener method.
No comments:
Post a Comment