Android Dialog theme makes icon too light

The problem is that you are using private resource android.R.drawable.ic_dialog_alert. Using private resources is problematic, they can vary on different devices and you can’t even be sure that they are present on all devices. The best is to avoid using private resources. If you need them, you should copy them from Android sources and put … Read more

Android – Change app Theme on onClick [duplicate]

Following blog can solve your problem: http://mrbool.com/how-to-change-the-layout-theme-of-an-android-application/25837 Copying the blog code for quick reference: Assuming that you already defined following three themes in the XML file R.style.FirstTheme, R.style.SecondTheme and R.style.ThirdTheme import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; public class ChangeThemeActivity extends Activity implements OnClickListener { /** Called when the activity is first created. */ … Read more

Not targeting the latest versions of Android

It says this because of targetSdkVersion=”16″. API 16 is Jellybean 4.1 and 4.1.1, while Jellybean 4.2 is API 17. Try using: <uses-sdk android:minSdkVersion=”8″ android:targetSdkVersion=”17″ /> Also, keep in mind that this is a Lint warning. These warning exist to help you better your code and make it easy to maintain, while being compatible with the … Read more

Modifying content width of the Sphinx theme ‘Read the Docs’

Another option is to create a stylesheet in source/_static with just the css you want, e.g. .wy-nav-content { max-width: none; } or .wy-nav-content { max-width: 1200px !important; } Make sure the directory is referenced in source/conf.py – I believe by default there’s a line to do this, i.e. # Add any paths that contain custom … Read more

Theme/Style is not applied when inflater used with ApplicationContext

Solution # 1 The inflate method accepts optional ‘ViewGroup root’ argument: public View inflate (int resource, ViewGroup root, boolean attachToRoot) If we have value to pass as ‘root’ parameter, than hence we can use it to get ‘activity context’ from where we can get correct LayoutInflater: ViewGroup root > activity context > LayoutInflater So my … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)