I am working on my first honeycomb application. The name of the app is fairly long and the launcher title is getting truncated/faded. I'm having trouble finding out whether it's possible to break this into multiple lines so that the entire title is visible. Anyone know?
Thank you.
AFAIK you cannot control how the application label is displayed by the Launcher, that is up the Launcher.
So you'll either have to shorten the name you use as the label for the Launcher, or accept the fading/truncating of your label.
You could try adding a \n at the point where you want a line-break in your String, but I doubt this would have any effect.
Unfortunately there is not a way to prevent truncation of the action bar title. The solution is to make the action bar title short.
Related
I am testing my app with TalkBack and have noticed that at some points in the app for e.g. if I click a dropdown spinner, and select an item, it will call out the item's name (which is expected), but right after that it will call out the app's name as well.
I know this is coming from the android:label for the application in the Manifest, and I have tried removing it, and setting it null; but in that case it just reads out 'Untitled'. I am sure it is coming from there because when I change the label to another string it starts saying that.
Not sure, how to fix this and have not found any solid solutions for this online. Any help would be appreciated!
I want to show an icon on status bar when receive some messages.
The icon represent the number of unread message, so I want to draw some text, such as 2 on the icon.
I tried two solutions but both failed.
set number field (in notification class) as 2 , it seemed this is not supported after android 3.0
set remoteviews on statusbar, using framelayout in remoteViews, but failed.
statusbar only show icon, do not show overlayed text.
How can I implement this feature on android 4.1.2?
thanks in advance.
Use RemoteView in notification. Refer this Link
You should go for BadgeView. It gives you notifications that resemble facebook like numbers
You can't do it generally (as you discovered, support for badging the small icon with a number was dropped in Honeycomb since in most cases it made the underlying icon hard to see and understand).
If you feel you must do this, I'd suggest generating 10 or so images with the number embedded into the graphic. For the last one you'd do something like "*" or "9+" to indicate that there are too many updates to be enumerated in such a tight space :)
Can anyone point me to an example of displaying text in a view that "unrolls" down from the Android Action bar when the corresponding item is touched?
In my case, I want to display GPS state information such number of visible satellites, but that's not really important, it's just text data. The distinction, in this case, is that I don't want to display a drop-down menu, just text data -- that changes over time, but has no function.
I'll keep searching, but at this point, I'm not even sure what to use for a search phrase.
Thanks,
R.
I got some assistance at one point with how to add a spinner to my ActionBar. The spinner display DOES allow me to temporarily drop below the "normal" Action Bar space, but I don't know how to fix its label at the top. Does this make any sense? If could use a spinner without losing the Action Bar label, it would probably be perfect. Does anybody know how I might do that? Does anybody think I probably should have opened a separate case??
Thanks, R.
Try this...
View customeView = getLayoutInflater().inflate(R.layout.custom_action_bar_layout, null);
getActionBar().setDisplayShowCustomEnabled(true)
getActionBar().setCustomView(addView);
Also refer: https://groups.google.com/forum/#!msg/android-developers/mDUJ1yYcVPQ/ATwHNLg1OA0J
I've seen several apps that show no text below the icon in the home screen, and i want that for my app.
By searching here, I managed to prevent the app name to appear below the icon with the manifest, but I still get a small grey empty oval.
Does anyone knows how to remove it also?
Thanks!
You should always include a label under the icon. I can't think of ANY reason why you wouldn't.
Is there a way (perhaps some special character along the lines of non-breaking spaces) that I can force the menu items in my Action Bar to have two line labels? I think this just looks better than long, single-line tab labels...
Thanks,
R.
Edit, additional info: My apologies, I have so far managed to avoid needing the overflow menu, probably because I'm developing for a Nexus 7 with a nice large screen. To clarify, one of my menu tabs (in the action bar proper) is "Restore Defaults", but I think it would look better if it was:
Restore
Defaults
Is there something I can incorporate into my Strings.xml file to force the Action Bar to display the item like that? When I used longer names for all five menu items, "Restore Defaults" DID display on two lines (but it was the only one). Anyway, I know it's possible, just not how to do it on purpose.
Since toadzky does not make an answer of his comment, I will:
Insert a '\n' in the title of your menu item. that should make it wrap.
As soon as he puts it up as an answer, I will delete mine and you can accept his, but this way at least the question can be officially closed.