类android.widget.QuickContactBadge源码实例Demo

下面列出了怎么用android.widget.QuickContactBadge的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: brailleback   文件: DefaultBrailleRule.java
private CharSequence getFallbackText(
    Context context,
    AccessibilityNodeInfoCompat node) {
    // Order is important below because of class inheritance.
    if (matchesAny(context, node, Button.class, ImageButton.class)) {
        return context.getString(R.string.type_button);
    }
    if (matchesAny(context, node, QuickContactBadge.class)) {
        return context.getString(R.string.type_quickcontact);
    }
    if (matchesAny(context, node, ImageView.class)) {
        return context.getString(R.string.type_image);
    }
    if (matchesAny(context, node, EditText.class)) {
        return context.getString(R.string.type_edittext);
    }
    if (matchesAny(context, node, AbsSeekBar.class)) {
        return context.getString(R.string.type_seekbar);
    }
    return "";
}
 
源代码2 项目: holoaccent   文件: ButtonFragment.java
@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View result = inflater.inflate(R.layout.buttons, null);
		
		View coloredButton = result.findViewById(R.id.coloredButton);
		coloredButton.setLongClickable(true);
//		registerForContextMenu(coloredButton);
		
//		mListPopupButton = result.findViewById(R.id.listPopupButton);
//		mListPopupButton.setOnLongClickListener(mPopupListener);

        QuickContactBadge badge = (QuickContactBadge)result.findViewById(R.id.badge);
        badge.assignContactFromEmail("[email protected]", false);
		
		return result;
	}
 
源代码3 项目: codeexamples-android   文件: QuickContactsDemo.java
@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
    View view = super.newView(context, cursor, parent);
    ContactListItemCache cache = new ContactListItemCache();
    cache.nameView = (TextView) view.findViewById(R.id.name);
    cache.photoView = (QuickContactBadge) view.findViewById(R.id.badge);
    view.setTag(cache);

    return view;
}
 
源代码4 项目: CSipSimple   文件: ContactBadge5.java
public ContactBadge5(Context context, AttributeSet attrs, int defStyle, com.csipsimple.widgets.contactbadge.QuickContactBadge topBadge) {
    super(context, attrs, defStyle, topBadge);
    badge = new OverlayedQuickContactBadge(context, attrs, defStyle, topBadge);
}
 
源代码5 项目: anvil   文件: DSL.java
public static BaseDSL.ViewClassResult quickContactBadge() {
  return BaseDSL.v(QuickContactBadge.class);
}
 
源代码6 项目: anvil   文件: DSL.java
public static Void quickContactBadge(Anvil.Renderable r) {
  return BaseDSL.v(QuickContactBadge.class, r);
}
 
源代码7 项目: anvil   文件: DSL.java
public static BaseDSL.ViewClassResult quickContactBadge() {
  return BaseDSL.v(QuickContactBadge.class);
}
 
源代码8 项目: anvil   文件: DSL.java
public static Void quickContactBadge(Anvil.Renderable r) {
  return BaseDSL.v(QuickContactBadge.class, r);
}
 
 类所在包
 类方法
 同包方法