|
1 | | -/** |
2 | | - * Copyright (C) 2010-2014 eBusiness Information, Excilys Group |
3 | | - * |
4 | | - * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
5 | | - * use this file except in compliance with the License. You may obtain a copy of |
6 | | - * the License at |
7 | | - * |
8 | | - * http://www.apache.org/licenses/LICENSE-2.0 |
9 | | - * |
10 | | - * Unless required by applicable law or agreed To in writing, software |
11 | | - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
12 | | - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
13 | | - * License for the specific language governing permissions and limitations under |
14 | | - * the License. |
15 | | - */ |
16 | | -package org.androidannotations.annotations; |
17 | | - |
18 | | -import java.lang.annotation.ElementType; |
19 | | -import java.lang.annotation.Retention; |
20 | | -import java.lang.annotation.RetentionPolicy; |
21 | | -import java.lang.annotation.Target; |
22 | | - |
23 | | -/** |
24 | | - * Use it on {@link EActivity} annotated classes to set a custom title layout. |
25 | | - * <p/> |
26 | | - * The annotation value is mandatory and should be one of R.layout.* fields. |
27 | | - * <p/> |
28 | | - * <blockquote> |
29 | | - * |
30 | | - * Example : |
31 | | - * |
32 | | - * <pre> |
33 | | - * @CustomTitle(R.layout.activityTitleLayout) |
34 | | - * @EActivity(R.layout.main) |
35 | | - * public class MyActivity extends Activity { |
36 | | - * |
37 | | - * } |
38 | | - * </pre> |
39 | | - * |
40 | | - * </blockquote> |
41 | | - */ |
42 | | -@Retention(RetentionPolicy.CLASS) |
43 | | -@Target(ElementType.TYPE) |
44 | | -public @interface CustomTitle { |
45 | | - int value(); |
46 | | -} |
| 1 | +/** |
| 2 | + * Copyright (C) 2010-2014 eBusiness Information, Excilys Group |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 5 | + * use this file except in compliance with the License. You may obtain a copy of |
| 6 | + * the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed To in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 12 | + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | + * License for the specific language governing permissions and limitations under |
| 14 | + * the License. |
| 15 | + */ |
| 16 | +package org.androidannotations.annotations; |
| 17 | + |
| 18 | +import java.lang.annotation.ElementType; |
| 19 | +import java.lang.annotation.Retention; |
| 20 | +import java.lang.annotation.RetentionPolicy; |
| 21 | +import java.lang.annotation.Target; |
| 22 | + |
| 23 | +/** |
| 24 | + * Use it on {@link EActivity} annotated classes to set a custom title layout. |
| 25 | + * <p/> |
| 26 | + * The annotation value is mandatory and should be one of R.layout.* fields. |
| 27 | + * <p/> |
| 28 | + * <blockquote> |
| 29 | + * |
| 30 | + * Example : |
| 31 | + * |
| 32 | + * <pre> |
| 33 | + * @CustomTitle(R.layout.activityTitleLayout) |
| 34 | + * @EActivity(R.layout.main) |
| 35 | + * public class MyActivity extends Activity { |
| 36 | + * |
| 37 | + * } |
| 38 | + * </pre> |
| 39 | + * |
| 40 | + * </blockquote> |
| 41 | + */ |
| 42 | +@Retention(RetentionPolicy.CLASS) |
| 43 | +@Target(ElementType.TYPE) |
| 44 | +public @interface CustomTitle { |
| 45 | + int value(); |
| 46 | +} |
0 commit comments