Back to project page AbLE.
The source code is released under:
Apache License
If you think the Android project AbLE listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright 2013 Phil Brown//w w w.ja v a 2 s .c o m Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package self.philbrown.AbLE.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Provides a class template that provides callbacks for getting a view object programmatically * and inserting it into the layout. * @author Phil Brown * */ @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface LayoutAdapter { /** * Set to the x and y coordinates of the inflated {@link android.view.View View}, respectively. * @return */ public float[] origin() default {0,0}; /** * Layout Parameters. Can be any of "fill_parent", "wrap_content", "match_parent", or a pixel value. * @return * @see {@link android.view.ViewGroup.LayoutParams LayoutParams} */ public String[] params() default {"wrap_content", "wrap_content"}; /** * Defines which {@link AbstractLayoutAdapter} is set as the view adapter to this layout * @return */ public String adapterClass(); /** * If set to {@code true}, variables, methods calls, and setters will be performed before the call to * {@code getView()}. * @return */ public boolean handleSettersFirst() default false; }