My imageView in xml:
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/ivManagePhoto"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp" />
My code:
ImageView ivManagePhoto;
ivManagePhoto = (ImageView)findViewById(R.id.ivManagePhoto);
double ivw = ivManagePhoto.getWidth();
When i try to get ivManagePhoto.getWidth(); that return 0, but i need to get mathparent size.