Last active
December 1, 2017 03:29
-
-
Save daeun1012/2c36a515949ff33271b3d8dcad719405 to your computer and use it in GitHub Desktop.
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
private ProductAdapter mProductAdapter; | |
private ListFragmentBinding mBinding; | |
@Nullable | |
@Override | |
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, | |
@Nullable Bundle savedInstanceState) { | |
// 바인딩 생성 | |
mBinding = DataBindingUtil.inflate(inflater, R.layout.list_fragment, container, false); | |
mProductAdapter = new ProductAdapter(mProductClickCallback); | |
mBinding.productsList.setAdapter(mProductAdapter); | |
// 생성된 바인딩 view 리턴 | |
return mBinding.getRoot(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment