daniel-stoneuk / material-about-library

Makes it easy to create beautiful about screens for your apps
Apache License 2.0
1.12k stars 140 forks source link

ConvenienceBuilder: Phone Action Item #27

Closed Rainer-Lang closed 7 years ago

mree58 commented 7 years ago

Until then, you can use this :)

authorCardBuilder.addItem(new MaterialAboutActionItem.Builder() .text("Phone") .subText("+90 850 840 95 21") .icon(new IconicsDrawable(c) .icon(GoogleMaterial.Icon.gmd_phone) .color(ContextCompat.getColor(c, R.color.colorIcon)) .sizeDp(18)) .setOnClickListener(new MaterialAboutActionItem.OnClickListener() { @Override public void onClick() { Intent intent = new Intent(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel:+90 850 840 95 21")); c.startActivity(intent); } }) .build());

Rainer-Lang commented 7 years ago

Would you like to make a PR?

daniel-stoneuk commented 7 years ago

Thanks for the suggestion!