Last active
January 5, 2016 14:07
-
-
Save mrmans0n/0999fafdc1dd563411fd to your computer and use it in GitHub Desktop.
Template for BindableLayout
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
#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