</LinearLayout>
- <ImageView
- android:id="@+id/source_divider"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="1dip"
- android:src="@drawable/quickcontact_frame_divider_med" />
-
- <ImageView
- android:id="@+id/source"
- android:layout_width="30dip"
- android:layout_height="30dip"
- android:layout_marginLeft="13dip"
- android:layout_marginRight="16dip"
- android:scaleType="centerInside" />
-
</LinearLayout>
setHeaderText(R.id.timestamp, null);
setHeaderImage(R.id.presence, null);
- setHeaderImage(R.id.source, null);
resetTrack();
// Update status when valid was found
setHeaderText(R.id.status, status.getStatus());
setHeaderText(R.id.timestamp, status.getTimestampLabel(mContext));
-
- final Drawable icon = status.getIcon(mContext);
- setHeaderImage(R.id.source, icon);
-
- if (mMode == QuickContact.MODE_MEDIUM) {
- // Hide medium divider when missing icon
- final boolean validIcon = icon != null;
- mHeader.findViewById(R.id.source_divider).setVisibility(
- validIcon ? View.VISIBLE : View.GONE);
- }
}
// Turn our list of actions into UI elements, starting with common types