Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit 3e1be4d

Browse files
committed
Tidy FragmentByXXX doc
1 parent dd6ed8e commit 3e1be4d

2 files changed

Lines changed: 15 additions & 18 deletions

File tree

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/FragmentById.java‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* android:layout_height="match_parent" >
4343
*
4444
* <fragment
45-
* android:id="@+id/myFragment"
45+
* android:id="@+id/<b>myFragment</b>"
4646
* android:name="mypackage.MyFragment_"
4747
* android:layout_width="match_parent"
4848
* android:layout_height="match_parent" /&gt;
@@ -55,21 +55,20 @@
5555
* // all injected fragment will be the same
5656
*
5757
* &#064;FragmentById
58-
* public MyFragment myFragment;
58+
* public MyFragment <b>myFragment</b>;
5959
*
60-
* &#064;FragmentById(R.id.myFragment)
60+
* &#064;FragmentById(R.id.<b>myFragment</b>)
6161
* public MyFragment myFragment2;
6262
* }
6363
* </pre>
6464
*
6565
* </blockquote>
6666
*
6767
* <p>
68-
* To use the <code>getChildFragmentManager()</code> to inject the Fragment
69-
* {@link android.app.Fragment Fragment}, set the {@link #childFragment()}
70-
* annotation parameter to <code>true</code>. You can only do this if the
71-
* annotated field is in a class which extends {@link android.app.Fragment
72-
* Fragment} or {@link android.support.v4.app.Fragment support Fragment} and the
68+
* To use the <code>getChildFragmentManager()</code> to inject the Fragment, set
69+
* the {@link #childFragment()} annotation parameter to <code>true</code>. You
70+
* can only do this if the annotated field is in a class which extends
71+
* android.app.Fragment or support.v4.app.Fragment and the
7372
* <code>getChildFragmentManager()</code> method is available.
7473
* </p>
7574
*

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/FragmentByTag.java‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*
4444
* &lt;fragment
4545
* android:id="@+id/myFragment"
46-
* android:tag="myFragmentTag"
46+
* android:tag="<b>myFragmentTag</b>"
4747
* android:name="mypackage.MyFragment_"
4848
* android:layout_width="match_parent"
4949
* android:layout_height="match_parent" /&gt;
@@ -56,22 +56,20 @@
5656
* // all injected fragment will be the same
5757
*
5858
* &#064;FragmentByTag
59-
* public MyFragment myFragmentTag;
59+
* public MyFragment <b>myFragmentTag</b>;
6060
*
61-
* &#064;FragmentByTag("myFragmentTag")
61+
* &#064;FragmentByTag(<b>"myFragmentTag"</b>)
6262
* public MyFragment myFragmentTag2;
6363
* }
6464
* </pre>
6565
*
6666
* </blockquote>
67-
*
68-
* *
67+
*
6968
* <p>
70-
* To use the <code>getChildFragmentManager()</code> to inject the Fragment
71-
* {@link android.app.Fragment Fragment}, set the {@link #childFragment()}
72-
* annotation parameter to <code>true</code>. You can only do this if the
73-
* annotated field is in a class which extends {@link android.app.Fragment
74-
* Fragment} or {@link android.support.v4.app.Fragment support Fragment} and the
69+
* To use the <code>getChildFragmentManager()</code> to inject the Fragment, set
70+
* the {@link #childFragment()} annotation parameter to <code>true</code>. You
71+
* can only do this if the annotated field is in a class which extends
72+
* android.app.Fragment or support.v4.app.Fragment and the
7573
* <code>getChildFragmentManager()</code> method is available.
7674
* </p>
7775
*

0 commit comments

Comments
 (0)