diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/404.html b/404.html new file mode 100644 index 00000000..fd848cf3 --- /dev/null +++ b/404.html @@ -0,0 +1,595 @@ + + + +
+ + + + + + + + + + + + + + + + + + +This section is meant to be an overview to the concepts of ParentAlignment
and ChildAlignment
.
For more detailed examples, check this section.
+The parent alignment is the first configuration required for aligning views in DpadRecyclerView
.
+This configuration will take care of calculating the anchor position for your ViewHolders.
Consider the following example for a vertical DpadRecyclerView
:
The red circle is centered both horizontally and vertically and serves as the anchor for all ViewHolders.
+To create this configuration, you would do the following:
+ +You can also create a top anchor:
+ +In this case, the configuration would be:
+ +Both offset
and fraction
start counting from the minimum edge of the DpadRecyclerView
. For horizontal orientations, this would be the start and for vertical orientation this would be the top.
By default, the views at the minimum and maximum edges won't be aligned to the keyline position specified by ParentAlignment
. If you want to change this behavior, you need to change the edge
argument of ParentAlignment
:
ParentAlignment.Edge.NONE
ParentAlignment.Edge.MIN
ParentAlignment.Edge.MAX
ParentAlignment.Edge.MIN_MAX
The ChildAlignment
class will take care of calculating the anchor position for your ViewHolder
views.
Consider the following example for a horizontal DpadRecyclerView
:
The blue circle shows the keyline position defined by ParentAlignment
and the green circles shows the anchor position of each child
+defined by ChildAlignment
.
In this case, the combined configuration would be:
+ +For more detailed examples, check the recipes section.
+ + + + + + + + + + + + + +{"use strict";/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */var Va=/["'&<>]/;qn.exports=za;function za(e){var t=""+e,r=Va.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i