Change color tint of AppCompatCheckbox
Build config: compileSdkVersion 23 buildToolsVersion “23.0.2” defaultConfig { applicationId “com.khoaha.app” minSdkVersion 17 targetSdkVersion 22 versionCode 2 versionName “1.0” multiDexEnabled false…
Build config: compileSdkVersion 23 buildToolsVersion “23.0.2” defaultConfig { applicationId “com.khoaha.app” minSdkVersion 17 targetSdkVersion 22 versionCode 2 versionName “1.0” multiDexEnabled false…
@Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.main, menu); MenuItem searchItem = menu.findItem(R.id.menu_search); mSearchView = (SearchView)…
Before start. Please install: 1. IDE Android Studio https://developer.android.com/studio/index.html 2. Virtual Machine Genymotion https://www.genymotion.com How to install Genymotion Tutorial Session…
public class LinearLayoutManagerWithSmoothScroller extends LinearLayoutManager { public LinearLayoutManagerWithSmoothScroller(Context context) { super(context, VERTICAL, false); } public LinearLayoutManagerWithSmoothScroller(Context context, int orientation, boolean…
In styles.xml. <item name=”colorControlActivated”>@color/colorPrimary</item>
public int getItemPosition(Object object) { return POSITION_NONE; } http://stackoverflow.com/questions/7263291/viewpager-pageradapter-not-updating-the-view
AppBarLayout appBarLayout = (AppBarLayout) view.findViewById(R.id.app_bar_layout); appBarLayout.addOnOffsetChangedListener(this); — @Override public void onOffsetChanged(AppBarLayout appBarLayout, int offset) { if (offset == 0) {…