Skip to content

Instantly share code, notes, and snippets.

String[] names = DateFormatSymbols.getInstance().getShortWeekdays();
@haidong94
haidong94 / recyclerview padding
Last active March 6, 2018 10:29
recyclerview padding
android:clipToPadding="false"
@Override
public boolean onQueryTextChange(String newText) {
adapter.getFilter().filter(newText);
adapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() {
@Override
public void onChanged() {
super.onChanged();
checkEmpty();
}
android:focusable="true"
android:focusableInTouchMode="true"
add it to layout outer
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(ed_ten.getWindowToken(), 0);
final static int RQS_RECORDING = 1;
Uri savedUri;
Button buttonRecord;
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_test);
buttonRecord = (Button) findViewById(R.id.record);