Loading core/java/com/android/internal/widget/ContactHeaderWidget.java +10 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList private static final String TAG = "ContactHeaderWidget"; private TextView mDisplayNameView; private View mAggregateBadge; private TextView mPhoneticNameView; private CheckBox mStarredView; private FasttrackBadgeWidget mPhotoView; Loading Loading @@ -159,6 +160,8 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList mDisplayNameView = (TextView) findViewById(R.id.name); mDisplayNameView.setOnLongClickListener(this); mAggregateBadge = findViewById(R.id.aggregate_badge); mAggregateBadge.setVisibility(View.GONE); mPhoneticNameView = (TextView) findViewById(R.id.phonetic_name); Loading Loading @@ -283,6 +286,13 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList } } /** * Turn on/off showing of the aggregate bage element. */ public void showAggregateBadge(boolean showBagde) { mAggregateBadge.setVisibility(showBagde ? View.VISIBLE : View.GONE); } /** * Turn on/off showing of the star element. */ Loading core/res/res/drawable-hdpi/ic_aggregated.png 0 → 100644 +883 B Loading image diff... core/res/res/drawable-mdpi/ic_aggregated.png 0 → 100644 +671 B Loading image diff... core/res/res/layout/contact_header.xml +18 −2 Original line number Diff line number Diff line Loading @@ -38,9 +38,25 @@ android:layout_marginTop="5dip" android:orientation="vertical"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:id="@+id/aggregate_badge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingRight="3dip" android:paddingTop="3dip" android:src="@drawable/ic_aggregated" /> <!-- "Name" field is locale-specific. --> <include layout="@layout/contact_header_name"/> </LinearLayout> <TextView android:id="@+id/status" android:layout_width="fill_parent" android:layout_height="0dip" Loading Loading
core/java/com/android/internal/widget/ContactHeaderWidget.java +10 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList private static final String TAG = "ContactHeaderWidget"; private TextView mDisplayNameView; private View mAggregateBadge; private TextView mPhoneticNameView; private CheckBox mStarredView; private FasttrackBadgeWidget mPhotoView; Loading Loading @@ -159,6 +160,8 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList mDisplayNameView = (TextView) findViewById(R.id.name); mDisplayNameView.setOnLongClickListener(this); mAggregateBadge = findViewById(R.id.aggregate_badge); mAggregateBadge.setVisibility(View.GONE); mPhoneticNameView = (TextView) findViewById(R.id.phonetic_name); Loading Loading @@ -283,6 +286,13 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList } } /** * Turn on/off showing of the aggregate bage element. */ public void showAggregateBadge(boolean showBagde) { mAggregateBadge.setVisibility(showBagde ? View.VISIBLE : View.GONE); } /** * Turn on/off showing of the star element. */ Loading
core/res/res/layout/contact_header.xml +18 −2 Original line number Diff line number Diff line Loading @@ -38,9 +38,25 @@ android:layout_marginTop="5dip" android:orientation="vertical"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:id="@+id/aggregate_badge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingRight="3dip" android:paddingTop="3dip" android:src="@drawable/ic_aggregated" /> <!-- "Name" field is locale-specific. --> <include layout="@layout/contact_header_name"/> </LinearLayout> <TextView android:id="@+id/status" android:layout_width="fill_parent" android:layout_height="0dip" Loading