Loading api/current.xml +140 −0 Original line number Diff line number Diff line Loading @@ -186237,6 +186237,146 @@ </parameter> </method> </class> <class name="QuickContactBadge" extends="android.widget.ImageView" abstract="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <implements name="android.view.View.OnClickListener"> </implements> <constructor name="QuickContactBadge" type="android.widget.QuickContactBadge" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="context" type="android.content.Context"> </parameter> </constructor> <constructor name="QuickContactBadge" type="android.widget.QuickContactBadge" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="context" type="android.content.Context"> </parameter> <parameter name="attrs" type="android.util.AttributeSet"> </parameter> </constructor> <constructor name="QuickContactBadge" type="android.widget.QuickContactBadge" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="context" type="android.content.Context"> </parameter> <parameter name="attrs" type="android.util.AttributeSet"> </parameter> <parameter name="defStyle" type="int"> </parameter> </constructor> <method name="assignContactFromEmail" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="emailAddress" type="java.lang.String"> </parameter> <parameter name="lazyLookup" type="boolean"> </parameter> </method> <method name="assignContactFromPhone" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="phoneNumber" type="java.lang.String"> </parameter> <parameter name="lazyLookup" type="boolean"> </parameter> </method> <method name="assignContactUri" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="contactUri" type="android.net.Uri"> </parameter> </method> <method name="onClick" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="v" type="android.view.View"> </parameter> </method> <method name="setExcludeMimes" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="excludeMimes" type="java.lang.String[]"> </parameter> </method> <method name="setMode" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="size" type="int"> </parameter> </method> <field name="mExcludeMimes" type="java.lang.String[]" transient="false" volatile="false" value="null" static="false" final="false" deprecated="not deprecated" visibility="protected" > </field> </class> <class name="RadioButton" extends="android.widget.CompoundButton" abstract="false" core/java/android/widget/FasttrackBadgeWidget.java→core/java/android/widget/QuickContactBadge.java +11 −13 Original line number Diff line number Diff line Loading @@ -36,12 +36,10 @@ import android.view.View.OnClickListener; import com.android.internal.R; /** * Widget used to show an image with the standard fasttrack badge * Widget used to show an image with the standard QuickContact badge * and on-click behavior. * * @hide */ public class FasttrackBadgeWidget extends ImageView implements OnClickListener { public class QuickContactBadge extends ImageView implements OnClickListener { private Uri mContactUri; private String mContactEmail; Loading Loading @@ -74,22 +72,22 @@ public class FasttrackBadgeWidget extends ImageView implements OnClickListener { public FasttrackBadgeWidget(Context context) { public QuickContactBadge(Context context) { this(context, null); } public FasttrackBadgeWidget(Context context, AttributeSet attrs) { public QuickContactBadge(Context context, AttributeSet attrs) { this(context, attrs, 0); } public FasttrackBadgeWidget(Context context, AttributeSet attrs, int defStyle) { public QuickContactBadge(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.FasttrackBadgeWidget, defStyle, 0); com.android.internal.R.styleable.QuickContactBadge, defStyle, 0); mMode = a.getInt(com.android.internal.R.styleable.FasttrackBadgeWidget_fasttrackWindowSize, mMode = a.getInt(com.android.internal.R.styleable.QuickContactBadge_quickContactWindowSize, FastTrack.MODE_MEDIUM); a.recycle(); Loading @@ -105,8 +103,8 @@ public class FasttrackBadgeWidget extends ImageView implements OnClickListener { } /** * Assign the contact uri that this fasttrack badge should be associated * with. Note that this is only used for displaying the fasttrack window and * Assign the contact uri that this QuickContactBadge should be associated * with. Note that this is only used for displaying the QuickContact window and * won't bind the contact's photo for you. * * @param contactUri Either a {@link Contacts#CONTENT_URI} or Loading @@ -122,7 +120,7 @@ public class FasttrackBadgeWidget extends ImageView implements OnClickListener { private void onContactUriChanged() { if (mContactUri == null && mContactEmail == null && mContactPhone == null) { if (mNoBadgeBackground == null) { mNoBadgeBackground = getResources().getDrawable(R.drawable.fasttrack_nobadge); mNoBadgeBackground = getResources().getDrawable(R.drawable.quickcontact_nobadge); } setBackgroundDrawable(mNoBadgeBackground); } else { Loading Loading @@ -173,7 +171,7 @@ public class FasttrackBadgeWidget extends ImageView implements OnClickListener { } /** * Set the fasttrack window mode. Options are {@link FastTrack#MODE_SMALL}, * Set the QuickContact window mode. Options are {@link FastTrack#MODE_SMALL}, * {@link FastTrack#MODE_MEDIUM}, {@link FastTrack#MODE_LARGE}. * @param size */ Loading core/java/com/android/internal/widget/ContactHeaderWidget.java +3 −3 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.CheckBox; import android.widget.FasttrackBadgeWidget; import android.widget.QuickContactBadge; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.TextView; Loading @@ -68,7 +68,7 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList private View mAggregateBadge; private TextView mPhoneticNameView; private CheckBox mStarredView; private FasttrackBadgeWidget mPhotoView; private QuickContactBadge mPhotoView; private ImageView mPresenceView; private TextView mStatusView; private TextView mStatusAttributionView; Loading Loading @@ -171,7 +171,7 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList mStarredView = (CheckBox)findViewById(R.id.star); mStarredView.setOnClickListener(this); mPhotoView = (FasttrackBadgeWidget) findViewById(R.id.photo); mPhotoView = (QuickContactBadge) findViewById(R.id.photo); mPresenceView = (ImageView) findViewById(R.id.presence); Loading core/res/res/drawable-hdpi/fasttrack_badge_pressed.9.png→core/res/res/drawable-hdpi/quickcontact_badge_pressed.9.png (670 B) File moved. View file core/res/res/drawable-hdpi/fasttrack_badge_small_pressed.9.png→core/res/res/drawable-hdpi/quickcontact_badge_small_pressed.9.png (633 B) File moved. View file Loading
api/current.xml +140 −0 Original line number Diff line number Diff line Loading @@ -186237,6 +186237,146 @@ </parameter> </method> </class> <class name="QuickContactBadge" extends="android.widget.ImageView" abstract="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <implements name="android.view.View.OnClickListener"> </implements> <constructor name="QuickContactBadge" type="android.widget.QuickContactBadge" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="context" type="android.content.Context"> </parameter> </constructor> <constructor name="QuickContactBadge" type="android.widget.QuickContactBadge" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="context" type="android.content.Context"> </parameter> <parameter name="attrs" type="android.util.AttributeSet"> </parameter> </constructor> <constructor name="QuickContactBadge" type="android.widget.QuickContactBadge" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="context" type="android.content.Context"> </parameter> <parameter name="attrs" type="android.util.AttributeSet"> </parameter> <parameter name="defStyle" type="int"> </parameter> </constructor> <method name="assignContactFromEmail" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="emailAddress" type="java.lang.String"> </parameter> <parameter name="lazyLookup" type="boolean"> </parameter> </method> <method name="assignContactFromPhone" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="phoneNumber" type="java.lang.String"> </parameter> <parameter name="lazyLookup" type="boolean"> </parameter> </method> <method name="assignContactUri" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="contactUri" type="android.net.Uri"> </parameter> </method> <method name="onClick" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="v" type="android.view.View"> </parameter> </method> <method name="setExcludeMimes" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="excludeMimes" type="java.lang.String[]"> </parameter> </method> <method name="setMode" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="size" type="int"> </parameter> </method> <field name="mExcludeMimes" type="java.lang.String[]" transient="false" volatile="false" value="null" static="false" final="false" deprecated="not deprecated" visibility="protected" > </field> </class> <class name="RadioButton" extends="android.widget.CompoundButton" abstract="false"
core/java/android/widget/FasttrackBadgeWidget.java→core/java/android/widget/QuickContactBadge.java +11 −13 Original line number Diff line number Diff line Loading @@ -36,12 +36,10 @@ import android.view.View.OnClickListener; import com.android.internal.R; /** * Widget used to show an image with the standard fasttrack badge * Widget used to show an image with the standard QuickContact badge * and on-click behavior. * * @hide */ public class FasttrackBadgeWidget extends ImageView implements OnClickListener { public class QuickContactBadge extends ImageView implements OnClickListener { private Uri mContactUri; private String mContactEmail; Loading Loading @@ -74,22 +72,22 @@ public class FasttrackBadgeWidget extends ImageView implements OnClickListener { public FasttrackBadgeWidget(Context context) { public QuickContactBadge(Context context) { this(context, null); } public FasttrackBadgeWidget(Context context, AttributeSet attrs) { public QuickContactBadge(Context context, AttributeSet attrs) { this(context, attrs, 0); } public FasttrackBadgeWidget(Context context, AttributeSet attrs, int defStyle) { public QuickContactBadge(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.FasttrackBadgeWidget, defStyle, 0); com.android.internal.R.styleable.QuickContactBadge, defStyle, 0); mMode = a.getInt(com.android.internal.R.styleable.FasttrackBadgeWidget_fasttrackWindowSize, mMode = a.getInt(com.android.internal.R.styleable.QuickContactBadge_quickContactWindowSize, FastTrack.MODE_MEDIUM); a.recycle(); Loading @@ -105,8 +103,8 @@ public class FasttrackBadgeWidget extends ImageView implements OnClickListener { } /** * Assign the contact uri that this fasttrack badge should be associated * with. Note that this is only used for displaying the fasttrack window and * Assign the contact uri that this QuickContactBadge should be associated * with. Note that this is only used for displaying the QuickContact window and * won't bind the contact's photo for you. * * @param contactUri Either a {@link Contacts#CONTENT_URI} or Loading @@ -122,7 +120,7 @@ public class FasttrackBadgeWidget extends ImageView implements OnClickListener { private void onContactUriChanged() { if (mContactUri == null && mContactEmail == null && mContactPhone == null) { if (mNoBadgeBackground == null) { mNoBadgeBackground = getResources().getDrawable(R.drawable.fasttrack_nobadge); mNoBadgeBackground = getResources().getDrawable(R.drawable.quickcontact_nobadge); } setBackgroundDrawable(mNoBadgeBackground); } else { Loading Loading @@ -173,7 +171,7 @@ public class FasttrackBadgeWidget extends ImageView implements OnClickListener { } /** * Set the fasttrack window mode. Options are {@link FastTrack#MODE_SMALL}, * Set the QuickContact window mode. Options are {@link FastTrack#MODE_SMALL}, * {@link FastTrack#MODE_MEDIUM}, {@link FastTrack#MODE_LARGE}. * @param size */ Loading
core/java/com/android/internal/widget/ContactHeaderWidget.java +3 −3 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.CheckBox; import android.widget.FasttrackBadgeWidget; import android.widget.QuickContactBadge; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.TextView; Loading @@ -68,7 +68,7 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList private View mAggregateBadge; private TextView mPhoneticNameView; private CheckBox mStarredView; private FasttrackBadgeWidget mPhotoView; private QuickContactBadge mPhotoView; private ImageView mPresenceView; private TextView mStatusView; private TextView mStatusAttributionView; Loading Loading @@ -171,7 +171,7 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList mStarredView = (CheckBox)findViewById(R.id.star); mStarredView.setOnClickListener(this); mPhotoView = (FasttrackBadgeWidget) findViewById(R.id.photo); mPhotoView = (QuickContactBadge) findViewById(R.id.photo); mPresenceView = (ImageView) findViewById(R.id.presence); Loading
core/res/res/drawable-hdpi/fasttrack_badge_pressed.9.png→core/res/res/drawable-hdpi/quickcontact_badge_pressed.9.png (670 B) File moved. View file
core/res/res/drawable-hdpi/fasttrack_badge_small_pressed.9.png→core/res/res/drawable-hdpi/quickcontact_badge_small_pressed.9.png (633 B) File moved. View file