This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.support.v7.app.AppCompatActivity; | |
//import android.app.Activity; // import this if you don't want to use the AppComat package. | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.ViewParent; | |
import android.view.Window; | |
import android.view.WindowManager; | |
/** | |
* the activity with a Dialog theme doesn't really respect the "wrap_content" params. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyCustomView extends View { | |
public MyCustomView(Context context) { this(context, R.style.MyCustomView); } | |
public MyCustomView(Context context, AttributeSet attrs) { this(context, attrs, 0); } | |
public MyCustomView(Context context, AttributeSet attrs, int defStyle) { | |
super(context, attrs, defStyle); | |
final int defStyleRes = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#include <FS.h> | |
#include <i2s.h> | |
#include <opusfile_spiffs.hpp> | |
#define SAMPLE_RATE_HZ (32000) | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __ADCMUX_HPP__ | |
#define __ADCMUX_HPP__ | |
#include <Arduino.h> | |
#include <cstdarg> | |
extern "C" int system_adc_read(); | |
#ifndef ADC_RESOLUTION_BITS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.fitivision.iot.p2p.ui; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.Log; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ImageView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomToolbar extends android.support.v7.widget.Toolbar { | |
private static final String TAG = "CustomToolbar"; | |
public CustomToolbar(Context context) { | |
this(context, null); | |
} | |
public CustomToolbar(Context context, @Nullable AttributeSet attrs) { | |
this(context, attrs, 0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/archive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.os.Build; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.annotation.RequiresApi; | |
import android.support.annotation.StringRes; | |
import android.support.design.widget.TextInputLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BindingFragment<BindingT extends ViewDataBinding> extends Fragment { | |
private BindingT mBinding = null; | |
private boolean mSuperCalled = false; | |
protected BindingT getBinding() { | |
return mBinding; | |
} | |
@Nullable | |
@Override |
OlderNewer