Add this to build.gradle 1. defaultConfig { vectorDrawables.useSupportLibrary = true } 2. Add the following to onCreate of your Application…

Read More

Change text color of SearchView Android

EditText searchEditText = (EditText)searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text); searchEditText.setTextColor(ContextCompat.getColor(App.getInstance().getApplicationContext(), R.color.white)); searchEditText.setHintTextColor(ContextCompat.getColor(App.getInstance().getApplicationContext(), R.color.white)); http://stackoverflow.com/questions/38658093/change-color-android-support-v7-widget-searchview

Read More

How to change text color of PopUpMenu

<style name=”AppTheme” parent=”AppBaseTheme”> <item name=”android:popupMenuStyle”>@style/PopupMenu</item> <item name=”android:textAppearanceLargePopupMenu”> @style/myPopupMenuTextAppearanceLarge</item> <item name=”android:textAppearanceSmallPopupMenu”> @style/myPopupMenuTextAppearanceSmall</item> <!– All customizations that are NOT specific to a…

Read More

Change PopUp Menu Background

<style name=”CustomTheme” parent=”AppTheme”> <!–<item name=”android:popupMenuStyle”>@style/PopupMenu.MyAppTheme</item>–> </style> <style name=”PopupMenu.MyAppTheme” parent=”@style/Widget.AppCompat.Light.PopupMenu”> <item name=”android:popupBackground”>@color/white</item> <item name=”android:itemTextAppearance”>@style/itemTextStyle</item> </style>

Read More

RecyclerView inside NestedScrollView

Replace your recyclerView with, <android.support.v4.widget.NestedScrollView <android.support.v7.widget.RecyclerView android:id=”@+id/conversation” app:layout_behavior=”@string/appbar_scrolling_view_behavior” android:layout_width=”match_parent” android:layout_height=”wrap_content” /> </android.support.v4.widget.NestedScrollView> will manage the rest of things. One more…

Read More