AppCompat 23.3 Support Vectors no longer work?

Update: They enable it again in Support Library 23: For AppCompat users, we’ve added an opt-in API to re-enable support Vector Drawables from resources (the behavior found in 23.2) via AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); – keep in mind that this still can cause issues with memory usage and problems updating Configuration instances, hence why it is disabled by … Read more

Fixing Error in styles.xml to generate R.java : No resource found name ‘Theme.AppCompat.Light’

You are trying to use Theme.AppCompat.Light theme which is a library project. You have to reference this library project to your project. Now, at first, check that you have installed this library project as follows… Go Window–>Android SDK Manager then a window named Android SDK Manager will appear as below. If the Android Support Library … Read more

transparent Actionbar with AppCompat-v7 21

<!– Application theme. –> <style name=”AppTheme” parent=”Theme.AppCompat.Light”> <item name=”android:actionBarStyle”>@style/MyActionBar</item> <!– Support library compatibility –> <item name=”actionBarStyle”>@style/MyActionBar</item> </style> <!– ACTION BAR STYLES –> <style name=”MyActionBar” parent=”@style/Widget.AppCompat.ActionBar”> <item name=”android:background”>@drawable/actionbar_background</item> <item name=”android:windowActionBarOverlay”>true</item> <!– Support library compatibility –> <item name=”background”>@drawable/actionbar_background</item> <item name=”windowActionBarOverlay”>true</item> </style>

Xamarin Forms Android Error: Please install package ‘Android Support Library’

The error message tells you pretty explicitly what the error is C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\android_m2repository_r10.zip is not a valid zip file How to fix it Please download https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip and extract it to the C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\content directory.

Is any difference between a MaterialButton and a simple Button?

If you are using a MaterialComponents Theme there is no difference between <Button /> and <com.google.android.material.button.MaterialButton />. There is an auto-inflation enabled which will replace <Button with <com.google.android.material.button.MaterialButton at runtime. The MaterialComponentsViewInflater replaces some framework widgets with Material Components ones at inflation time, provided if a MaterialComponents theme is in use. Something similar happens also … Read more

Android v21 Theme.Appcompat color accent is ignored, no padding on dialogs

About the accent color. You are using a AppCompat theme so you should remove Android from the namespace inside your theme. <style name=”AppTheme_Light” parent=”Theme.AppCompat.Light.DarkActionBar”> <item name=”colorPrimary”>@color/abc1</item> <item name=”colorPrimaryDark”>@color/abc2</item> <item name=”colorAccent”>@color/abc3</item> </style> About the dialog. AppCompat doesn’t support it (as I know). You can try to use this style in your values-v21 folder: <style name=”Theme” parent=”FrameworkRoot.Theme”> … Read more

CoordinatorLayout using the ViewPager’s RecyclerView

Chris Banes has posted a sample on Github which shows exactly what you want to do. Here is the xml file that defines how one can indirectly attach a coordinator layout to the viewpager’s fragments. <android.support.design.widget.CoordinatorLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:id=”@+id/main_content” android:layout_width=”match_parent” android:layout_height=”match_parent”> <android.support.design.widget.AppBarLayout android:id=”@+id/appbar” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:theme=”@style/ThemeOverlay.AppCompat.Dark.ActionBar”> <android.support.v7.widget.Toolbar android:id=”@+id/toolbar” android:layout_width=”match_parent” android:layout_height=”?attr/actionBarSize” android:background=”?attr/colorPrimary” app:popupTheme=”@style/ThemeOverlay.AppCompat.Light” app:layout_scrollFlags=”scroll|enterAlways” /> <android.support.design.widget.TabLayout … Read more

How do I style appcompat-v7 Toolbar like Theme.AppCompat.Light.DarkActionBar?

The recommended way to style the Toolbar for a Light.DarkActionBar clone would be to use Theme.AppCompat.Light.DarkActionbar as parent/app theme and add the following attributes to the style to hide the default ActionBar: <style name=”AppTheme” parent=”Theme.AppCompat.Light.DarkActionBar”> <item name=”windowActionBar”>false</item> <item name=”windowNoTitle”>true</item> </style> Then use the following as your Toolbar: <android.support.design.widget.AppBarLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:theme=”@style/ThemeOverlay.AppCompat.Dark.ActionBar”> <android.support.v7.widget.Toolbar android:id=”@+id/toolbar” android:layout_width=”match_parent” android:layout_height=”?attr/actionBarSize” … Read more