Skip to content

Instantly share code, notes, and snippets.

@mrmans0n
Last active January 5, 2016 14:07
Show Gist options
  • Save mrmans0n/0999fafdc1dd563411fd to your computer and use it in GitHub Desktop.
Save mrmans0n/0999fafdc1dd563411fd to your computer and use it in GitHub Desktop.
Template for BindableLayout
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
import android.content.Context;
import io.nlopez.smartadapters.views.BindableFrameLayout;
#parse("File Header.java")
public class ${NAME} extends BindableFrameLayout<${MODEL}> {
public ${NAME}(Context context) {
super(context);
}
@Override
public int getLayoutId() {
return R.layout.${LAYOUT_NAME};
}
@Override
public void onViewInflated() {
// TODO add your findViewById / ButterKnife kind of stuff here
}
@Override
public void bind(${MODEL} item) {
// TODO assign values to your view widgets
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment