android.widget.QuickContactBadge Java Examples

The following examples show how to use android.widget.QuickContactBadge. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultBrailleRule.java    From brailleback with Apache License 2.0 6 votes vote down vote up
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 "";
}
 
Example #2
Source File: ButtonFragment.java    From holoaccent with Apache License 2.0 6 votes vote down vote up
@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;
	}
 
Example #3
Source File: QuickContactsDemo.java    From codeexamples-android with Eclipse Public License 1.0 5 votes vote down vote up
@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;
}
 
Example #4
Source File: ContactBadge5.java    From CSipSimple with GNU General Public License v3.0 4 votes vote down vote up
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);
}
 
Example #5
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static BaseDSL.ViewClassResult quickContactBadge() {
  return BaseDSL.v(QuickContactBadge.class);
}
 
Example #6
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void quickContactBadge(Anvil.Renderable r) {
  return BaseDSL.v(QuickContactBadge.class, r);
}
 
Example #7
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static BaseDSL.ViewClassResult quickContactBadge() {
  return BaseDSL.v(QuickContactBadge.class);
}
 
Example #8
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void quickContactBadge(Anvil.Renderable r) {
  return BaseDSL.v(QuickContactBadge.class, r);
}