Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

ASP.NET - scratching discs of code & entrepreneurship

Archive · View All
January 2012 8
April 2011 6
March 2011 4
August 2012 2
June 2011 2
May 2012 1
May 2011 1

John Katsiotis's Blog

Android-Binding and GreenDroid

Jan 4 2012 12:00AM by John Katsiotis   

If you want to use android-binding along with GreenDroid’s ActionBarActivity (GDActivity, GDMapActivity etc.) you might stumble into some issues. I know I did.

That’s why I created a Bind method that can be used instead of Binder.setAndBindContentView

Here it is (put it inside a static class):

public static void bind(ActionBarActivity activity, int layoutId, Object viewModel) {
	if (activity == null)
		return;
	FrameLayout contentView = activity.getContentView();
	try {
		Context context = contentView.getContext();
		InflateResult result = Binder.inflateView(context, layoutId, contentView, true);
		Binder.bindView(context, result, viewModel);
	} catch (Exception e) {
		//handle ex
	}
}

Cheers!


Republished from djsolid - scratching discs of code & entrepreneurship [19 clicks].  Read the original version here [2 clicks].

John Katsiotis
990 · 0% · 26
1
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

"Android-Binding and GreenDroid" rated 5 out of 5 by 1 readers
Android-Binding and GreenDroid , 5.0 out of 5 based on 1 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]