badge

Attempting to badge the application icon but haven't received permission from the user to badge the application : iOS 8 Xcode 6

大憨熊 提交于 2019-11-28 15:57:46
问题 I am checking my app compatibility with iOS 8, I am getting following Log in console "Attempting to badge the application icon but haven't received permission from the user to badge the application" . Can anyone please help me to get rid of this warning. And Yes, my app shows Badges on App Icon and TabBar Icon. 回答1: Here is What I did in my AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // registering for remote

How to add badge on top of Font Awesome symbol?

五迷三道 提交于 2019-11-28 15:17:55
I would like to add badge with some number (5, 10, 100) on top of the Font Awesome symbol ( fa-envelope ). For example: But, I can not understand how to put the badge on top of the symbol. My attempt is available here: jsFiddle . I would like to have it support Twitter Bootstrap 2.3.2. Paulie_D This can be done with no additional mark-up, just a new class (which you would use anyway) and a pseudo element. JSFiddle Demo HTML <i class="fa fa-envelope fa-5x fa-border icon-grey badge"></i> CSS *.icon-blue {color: #0088cc} *.icon-grey {color: grey} i { width:100px; text-align:center; vertical-align

Database Architecture for “Badge” System & Arbitrary Criteria (MySQL/PHP)

你说的曾经没有我的故事 提交于 2019-11-28 15:10:02
Quickie-Question: To summarize, I'm a little confused as to how I would design such a database that allows indefinite badge-rule creation without requiring structural changes to the previously existing user-tables in the database. Storing Badge Title, Criteria, etc. What would that Table look like? badge_id (1) badge_title (10K Badge) badge_image (10k.jpg) badge_criteria ([posts] >= 10000) ... Winded-Question: I would like to implement a badge-system on my own personal projects, but am seeking a bit of advice as to how one would best do such a thing. I've been reading some of the questions

Android Tablayout tabs with notification badge like whatsApp

蓝咒 提交于 2019-11-28 05:28:44
I want to implement notification badge with android.support.design.widget.TabLayout . I had tried my best effort to implement it but fails. Any help would by greatly appreciated. My solution to this was using https://github.com/jgilfelt/android-viewbadger and setting a custom view to each tab: My tabs have only icons so I used ImageView, but I believe you can use any other view, check https://github.com/jgilfelt/android-viewbadger/blob/master/README.markdown : private BadgeView badge; Tab tab = tabLayout.getTabAt(position); ImageView imageView = new ImageView(context); tab.setCustomView

Swift - How to change UITabBarItem badge font?

百般思念 提交于 2019-11-28 03:53:29
问题 I have a UITabBar . I set a value for tab bar items: tabBarItem3?.badgeValue = String(self.numberOfProducts) Now I want to change its font to a specific font. Then I used this code : tabBarItem3?.setBadgeTextAttributes([NSFontAttributeName: UIFont(name: "IRANSans", size: 14)], for: .normal) It doesn't work. What should I do? 回答1: Swift 3 UITabBarItem.appearance().setBadgeTextAttributes([NSFontAttributeName: UIFont(name: "IRANSans", size: 14)], for: .normal) UITabBarItem.appearance()

Notification Badge On Action Item Android

天涯浪子 提交于 2019-11-28 02:57:58
I wana add a notification badge on the cart image placed in action bar and manipulate it programmatically. Any Help? You can show custom MenuItem on ActionBar by creating a custom layout for MenuItem . To set a custom layout you have to use menu item attribute app:actionLayout . Follow below steps to create a Badge on Cart action item. See the attached image for result. Create a custom layout with ImageView (for cart icon) and TextView (for count value) layout/custom_action_item_layout.xml: <?xml version="1.0" encoding="utf-8"?> <FrameLayout style="?attr/actionButtonStyle" xmlns:android="http:

How to implement badges?

左心房为你撑大大i 提交于 2019-11-28 02:40:38
I've given some thought to implementing badges (just like the badges here on Stack Overflow) and think it would be difficult without Windows services, but I'd like to avoid that if possible. I came up with a plan to implement some examples: Audobiographer: Check if all fields in the profile is filled out. Commentor: When making a comment check if the number of comments equal 10, if so award the badge. Good Answer: When voting up check to see if vote score is 25 or higher. How could this be implemented in the database? Or would another way be better? A similar-to-Stackoverflow implementation is

Update badge counter in Swift

不想你离开。 提交于 2019-11-27 21:43:12
问题 With following code I get (2) in the badge icon immediately after app compiling: func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) { let installation = PFInstallation.currentInstallation() installation.setDeviceTokenFromData(deviceToken) installation.badge = 2 installation.saveInBackground() } I did try the next variant: Initialized a new var badgeCount = 0 and later: func application(application: UIApplication,

can we show badge number on android app icon like iphone? [duplicate]

China☆狼群 提交于 2019-11-27 21:38:45
Possible Duplicate: Is there a way to add a badge to an application icon in Android? I just wanted to know that can we show the badge number in Android app Icon? I know that android notifications are different then Iphone but i want to do in my android app. Is that applicable? Thanks for your answer. Arul T I think we can do it. check this question Badge on Android TabHost . the accepted answers refers to this code https://github.com/jgilfelt/android-viewbadger Edit i haven't tried yet. check this question. Is there a way to add a badge to an application icon in Android? Jin35 You can do it

How to add small red dot in UITabBarItem

半腔热情 提交于 2019-11-27 20:06:25
问题 How to add red dot on the top right side of the UITabBarItem . I have searched a while and some guys said this can be done setting Badge Value of the UITabBarItem .But when I give it a try and set badge value to empty space " ",the red dot is somewhat big.How can I get a proper one?Big thanks. 回答1: If you want to avoid traversing subviews & potentially dangerous hacks in general, what I've done is set the badge's background colour to clear and used a styled bullet point to appear as a badge: