How to change the left arrow icon in actionBar on Titanium Appcelerator? - android-actionbar

I would change the left arrow icon in actionBar in Titanium Appcelerator, the icon visible if the property "displayHomeAsUp" is true. I tried to search on google but no solutions I found, someone can help me? Thanks in advance!

That's a Android system-provided feature that you cannot change.

Related

Can I remove the caption in a CDockablePane

I'm porting a MFC application to use the Ribbon UI and MFC feature pack and would like to have a docked horizontal pane that does not include a caption. I'd hope that something like
MyPane.ModifyStyle(WS_CAPTION, 0);
m_pParentFrame->RecalcLayout();
would work, but no joy. FWIW, the docking pane is hosting a wide horizontal dialog docked under the main view and the caption wastes more desktop real estate than I'd like to give away.
Edit: Further googling found a possible solution here: http://www.sibisa.com/remove-hide-title-bar-board-cdockablepane-window/
Edit2: EnableGripper(FALSE) was what was needed, see https://msdn.microsoft.com/en-us/library/bb984118.aspx
Calling EnableGripper(FALSE) removes the caption.

Android ActionBar vs ToolBar

Can you make Android new Toolbar to be shown with shadow like you could do with the old ActionBar?
Please refer to the image: Left is ActionBar and you can see it looks "floating" with shadow while the right one is ToolBar, how can you show it the same?
Use attibute android:elevetion=4dp on toolbar.

Glass AlertDialog upsizing icon

I am following all the instruction from https://developers.google.com/glass/develop/gdk/card-design#alert
but the icon displaying in alert dialog is stretched and clipped as shown below:
Please guide how to correct this issue.
Thank you.
Make sure that your icon is in the drawable-hdpi folder of your res directory and not in the plain drawable folder or the folder for a different pixel density.

How to disable and enable the window refresh when click on the top-left app icon?

How to disable and enable the window refresh when click on the top-left app icon?
For example, in window every .exe has a icon in its top-left sign, when we right click on that icon, some application stop refresh its window(For example, if the applicaiton has text-input, when you left-click on the top-left icon, the cursor in the text-input will stop blink), and for some other application, when you lef-click on the top-left icon, the application window will still refresh, how to enable or disable this?
Any code example is welcome, the question is urgent, please give your help.
Thanks a lost.
Wa
It's a standard menu behavior implemented with Windows. It's better not to override it as it's really painful. You can also put a a wait logic (using WaitForSingleObject) or Sleep for a while but that will make the application unresponsive.
If you can explain the purpose, we might be able to help you better.

Need help adding scroll bar to edit box

I'm making an MFC dialog-based application in Visual C++ 2005. I added a scroll bar to an edit box. How do I program the scroll bar to make it work?
The windows styles wS_VSCROLL and WS_HSCROLL control if there is a scroll bar present or not. Normally you just setup these styles as part of the resource dialog template.
With MFC you use the "CWnd::ShowScrollBar" method to turn the scroll bar on/off.
When scrollbars are turned on, then they should work automatically for edit controls. You don't need to do anything.
http://www.functionx.com/visualc/controls/scrollbar.htm
has code you can use to control the scroll bar.