I am trying to store one name and corresponding left,right,top,bottom dimensions of particular view .I tried with hashmap its storing only (key, value). Please someone tell me which Collection should i use to fulfill my requirement.
for (int i = 0; i < numberOfFaceDetected; i++) {
android.media.FaceDetector.Face face = myFace[i];
Log.i("FACE","FACE TAGGING : "+myFace[i].toString());
String facename = myFace[i].toString();
PointF myMidPoint = new PointF();
face.getMidPoint(myMidPoint);
myEyesDistance = face.eyesDistance();
dx = (int) (myMidPoint.x - myEyesDistance);
dy = (int) (myMidPoint.y - myEyesDistance);
dz = (int) (myMidPoint.x + myEyesDistance);
dt = (int) (myMidPoint.y + myEyesDistance);
//here i want to store facename,dx,dy,dz,dt values in same collection
canvas.drawRect((int) dx, dy, dz, dt, myPaint);
}