How to change Toolbar home icon color

I solved it by editing styles.xml: <style name=”ToolbarColoredBackArrow” parent=”AppTheme”> <item name=”android:textColorSecondary”>INSERT_COLOR_HERE</item> </style> …then referencing the style in the Toolbar definition in the activity: <LinearLayout android:id=”@+id/main_parent_view” android:layout_width=”match_parent” android:layout_height=”match_parent” android:orientation=”vertical”> <android.support.v7.widget.Toolbar xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:id=”@+id/toolbar” app:theme=”@style/ToolbarColoredBackArrow” app:popupTheme=”@style/AppTheme” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:minHeight=”?attr/actionBarSize” android:background=”?attr/colorPrimary”/>

Changing Icon per Day

I assume this is for an iOS app. The answers is, you can’t. The Calendar app has access to functionality in iOS that us mere mortal developers cannot access. You may be able to pull this off with a jailbroken phone, but I’ve never tried that.

ActionBarSherlock – How to set the padding of each actionbar’s icon?

<style name=”AppTheme” parent=”Theme.Sherlock”> <item name=”actionButtonStyle”>@style/MyActionButtonStyle</item> <item name=”android:actionButtonStyle”>@style/MyActionButtonStyle</item> </style> <style name=”MyActionButtonStyle” parent=”Widget.Sherlock.ActionButton”> <item name=”android:minWidth”>32dip</item> <item name=”android:padding”>0dip</item> </style> The default value of android:minWidth for the ActionBar buttons is 56dip. Don’t forget to set @style/AppTheme as the Activity‘s theme.

How to hide desktop icons programmatically?

You can do this using the Windows API. Here is sample code in C# that will toggle desktop icons. [DllImport(“user32.dll”, SetLastError = true)] static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport(“user32.dll”, SetLastError = true)] static extern IntPtr GetWindow(IntPtr hWnd, GetWindow_Cmd uCmd); enum GetWindow_Cmd : uint { GW_HWNDFIRST = 0, GW_HWNDLAST = 1, GW_HWNDNEXT = 2, … Read more