-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move RecyclerConfiguration to top-level
Summary: The nesting seems counter-intuitive as it's implemented by other top-level classes and has the side-effect of being excluded from javadoc generation as it's part of the spec and not the generated component. Reviewed By: IanChilds, marco-cova Differential Revision: D7287233 fbshipit-source-id: a73ccb1e75bd0bb4ec76df0c10a65e1538f021d2
- Loading branch information
1 parent
d980e88
commit f2b00a8
Showing
6 changed files
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...ctions-widget/src/main/java/com/facebook/litho/sections/widget/RecyclerConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
|
||
package com.facebook.litho.sections.widget; | ||
|
||
import android.support.v7.widget.RecyclerView; | ||
import android.support.v7.widget.SnapHelper; | ||
import com.facebook.litho.ComponentContext; | ||
import com.facebook.litho.sections.SectionTree; | ||
import com.facebook.litho.widget.Binder; | ||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* A configuration object the {@link RecyclerCollectionComponent} will use to determine which layout | ||
* manager should be used for the {@link RecyclerView} | ||
*/ | ||
public interface RecyclerConfiguration { | ||
|
||
<E extends Binder<RecyclerView> & SectionTree.Target> E buildTarget(ComponentContext c); | ||
|
||
@Nullable | ||
SnapHelper getSnapHelper(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters