Skip to content

Instantly share code, notes, and snippets.

View jkhosla's full-sized avatar

Jatin Khosla jkhosla

View GitHub Profile
@jkhosla
jkhosla / android-action-bar.java
Created September 28, 2016 11:47
Hiding / Showing the Action Bar in Particular Activity
// This is kind of tricky.
// To do this programitacally and for minSDKVersion 16
// Import statement -
import android.support.v7.app.ActionBar;
//Usage
void onCreate {
ActionBar actionBar = getSupportActionBar();
actionBar.hide();
@jkhosla
jkhosla / android-edit-text.xml
Created September 28, 2016 11:59
Limiting text length of EditText in Android
//for minSDKVersion 16
// in the layout xml on the editText
android:maxLength="5"
@jkhosla
jkhosla / dev-tools-gone-missing-macos-update.txt
Last active December 20, 2016 15:15
Upgrading macOS : Developer Tools
If one finds the dev tools all gone post a macOS Update.
Open the terminal and
xcode-select -- install