Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Commit

Permalink
[core, layouts] Move TwoWayView to the layouts library
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasr committed Oct 20, 2014
1 parent 7c5fb03 commit 2b21213
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 13 deletions.
4 changes: 0 additions & 4 deletions core/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@

<resources xmlns:tools="http://schemas.android.com/tools">

<declare-styleable name="twowayview_TwoWayView">
<attr name="twowayview_layoutManager" format="string"/>
</declare-styleable>

<declare-styleable name="twowayview_TwoWayLayoutManager">
<attr name="android:orientation" tools:ignore="ResourceName"/>
</declare-styleable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import android.view.ViewGroup;
import android.view.ViewGroup.MarginLayoutParams;

import org.lucasr.twowayview.TwoWayView;
import org.lucasr.twowayview.widget.Lanes.LaneInfo;

public class SpannableGridLayoutManager extends GridLayoutManager {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import android.view.View;
import android.view.ViewGroup;

import org.lucasr.twowayview.TwoWayView;
import org.lucasr.twowayview.widget.Lanes.LaneInfo;

public class StaggeredGridLayoutManager extends GridLayoutManager {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
* limitations under the License.
*/

package org.lucasr.twowayview;
package org.lucasr.twowayview.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.util.AttributeSet;

import org.lucasr.twowayview.TwoWayLayoutManager;
import org.lucasr.twowayview.TwoWayLayoutManager.Orientation;

import java.lang.reflect.Constructor;
Expand Down
4 changes: 4 additions & 0 deletions layouts/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

<resources xmlns:tools="http://schemas.android.com/tools">

<declare-styleable name="twowayview_TwoWayView">
<attr name="twowayview_layoutManager" format="string"/>
</declare-styleable>

<declare-styleable name="twowayview_GridLayoutManager">
<attr name="twowayview_numColumns" format="integer"/>
<attr name="twowayview_numRows" format="integer"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import android.widget.TextView;

import org.lucasr.twowayview.TwoWayLayoutManager;
import org.lucasr.twowayview.TwoWayView;
import org.lucasr.twowayview.widget.TwoWayView;
import org.lucasr.twowayview.widget.SpannableGridLayoutManager;
import org.lucasr.twowayview.widget.StaggeredGridLayoutManager;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.lucasr.twowayview.ItemClickSupport.OnItemClickListener;
import org.lucasr.twowayview.ItemClickSupport.OnItemLongClickListener;
import org.lucasr.twowayview.widget.DividerItemDecoration;
import org.lucasr.twowayview.TwoWayView;
import org.lucasr.twowayview.widget.TwoWayView;

public class LayoutFragment extends Fragment {
private static final String ARG_LAYOUT_ID = "layout_id";
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/layout_grid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
-->

<org.lucasr.twowayview.TwoWayView
<org.lucasr.twowayview.widget.TwoWayView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/list"
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/layout_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
-->

<org.lucasr.twowayview.TwoWayView
<org.lucasr.twowayview.widget.TwoWayView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/list"
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/layout_spannable_grid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
-->

<org.lucasr.twowayview.TwoWayView
<org.lucasr.twowayview.widget.TwoWayView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/list"
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/layout_staggered_grid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
~ limitations under the License.
-->

<org.lucasr.twowayview.TwoWayView
<org.lucasr.twowayview.widget.TwoWayView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/list"
Expand Down

0 comments on commit 2b21213

Please sign in to comment.