/** * This file was auto-generated by the Titanium Module SDK helper for Android * Appcelerator Titanium Mobile * Copyright (c) 2009-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. * */ package de.marcelpociot.autofocus; import org.appcelerator.kroll.KrollDict; import org.appcelerator.kroll.KrollProxy; import org.appcelerator.kroll.annotations.Kroll; import org.appcelerator.titanium.TiC; import org.appcelerator.kroll.common.Log; import org.appcelerator.kroll.common.TiConfig; import org.appcelerator.titanium.proxy.TiViewProxy; import org.appcelerator.titanium.view.TiCompositeLayout; import org.appcelerator.titanium.view.TiCompositeLayout.LayoutArrangement; import org.appcelerator.titanium.view.TiUIView; import android.app.Activity; import android.widget.LinearLayout; // This proxy can be created by calling Autofocus.createExample({message: "hello world"}) @Kroll.proxy(creatableInModule=AutofocusModule.class) public class ViewProxy extends TiViewProxy { // Standard Debugging variables private static final String TAG = "ViewProxy"; private class ExampleView extends TiUIView { public ExampleView(TiViewProxy proxy) { super(proxy); LinearLayout view = new LinearLayout( proxy.getActivity() ); view.setFocusable( true ); view.setFocusableInTouchMode( true ); setNativeView( view ); } } // Constructor public ViewProxy() { super(); } @Override public TiUIView createView(Activity activity) { TiUIView view = new ExampleView(this); return view; } }