// Override onMeasure to set the contact card to always be a square based on the width. The // GridView that the ContactCard lives in should constrain the width of the card so that is the // dimension to use for the square. @Override protected void onMeasure(int width_measure_spec, int height_measure_spec) { super.onMeasure(width_measure_spec, width_measure_spec); }