質問

How can I clone this behaviour (iOS) on an Android-App?

enter image description here

Technically its definitly possible as I have an app by my own on my Androidphone - its an Email-App with a very similiar indicator on the Icon. (shows the number of unread Emails)

役に立ちましたか?

解決 2

If you are referring to doing this on the home screen, that is an app widget.

他のヒント

yes you can implement overlay like ios.. by the way it is called badge value.

here is one sample available on github

You just have to add classes in your project and call below lines

View target = findViewById(R.id.target_view);
BadgeView badge = new BadgeView(this, target);
badge.setText("1");
badge.show();

hope it helps.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top