Created
September 25, 2012 17:17
-
-
Save topgenorth/3783241 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
protected void setupView(Context context, final ViewGroup parent) { | |
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); | |
if (parent == null) { | |
Log.e("TOMO", "The parent ViewGroup is null!"); | |
} | |
View v; | |
// crashes on this line: | |
v = inflater.inflate(R.layout.balloon_overlay, parent); | |
title = (TextView) v.findViewById(R.id.balloon_item_title); | |
snippet = (TextView) v.findViewById(R.id.balloon_item_snippet); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment