Skip to content

Commit

Permalink
Merge branch 'master' into bump
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa authored May 16, 2023
2 parents 50ef2fc + 5bfaeaf commit 4275a04
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dpadrecyclerview-test-fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
compileSdk versions.compileSdkVersion

defaultConfig {
minSdk versions.minSdkVersion
minSdk 19
targetSdk versions.targetSdkVersion

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
3 changes: 2 additions & 1 deletion dpadrecyclerview-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ android {
compileSdk versions.compileSdkVersion

defaultConfig {
minSdk versions.minSdkVersion
minSdk 19
targetSdk versions.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments useTestStorageService: 'true'
testInstrumentationRunnerArguments listener: 'com.rubensousa.dpadrecyclerview.testfixtures.recording.TestRecordingListener'
multiDexEnabled true
}

buildTypes {
Expand Down
3 changes: 2 additions & 1 deletion dpadrecyclerview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ android {
compileSdk versions.compileSdkVersion

defaultConfig {
minSdk versions.minSdkVersion
minSdk 19
targetSdk versions.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments useTestStorageService: 'true'
testInstrumentationRunnerArguments listener: 'com.rubensousa.dpadrecyclerview.testfixtures.recording.TestRecordingListener'
multiDexEnabled true
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,12 @@ open class DpadRecyclerView @JvmOverloads constructor(
typedArray.getInt(R.styleable.DpadRecyclerView_android_gravity, Gravity.NO_GRAVITY)
)
}
val edge = ParentAlignment.Edge.values()[typedArray.getInt(
R.styleable.DpadRecyclerView_dpadRecyclerViewParentAlignmentEdge,
ParentAlignment.Edge.MIN_MAX.ordinal
)]
val parentAlignment = ParentAlignment(
edge = ParentAlignment.Edge.values()[typedArray.getInt(
R.styleable.DpadRecyclerView_dpadRecyclerViewParentAlignmentEdge,
ParentAlignment.Edge.MIN_MAX.ordinal
)],
edge = edge,
offset = typedArray.getDimensionPixelSize(
R.styleable.DpadRecyclerView_dpadRecyclerViewParentAlignmentOffset,
ViewAlignment.DEFAULT_OFFSET
Expand All @@ -171,7 +172,11 @@ open class DpadRecyclerView @JvmOverloads constructor(
isFractionEnabled = typedArray.getBoolean(
R.styleable.DpadRecyclerView_dpadRecyclerViewParentAlignmentFractionEnabled,
true
)
),
preferKeylineOverEdge = typedArray.getBoolean(
R.styleable.DpadRecyclerView_dpadRecyclerViewParentAlignmentPreferKeylineOverEdge,
edge == ParentAlignment.Edge.MAX
),
)
val childAlignment = ChildAlignment(
offset = typedArray.getDimensionPixelSize(
Expand Down
1 change: 1 addition & 0 deletions dpadrecyclerview/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<attr name="dpadRecyclerViewParentAlignmentOffset" format="dimension" />
<attr name="dpadRecyclerViewParentAlignmentFraction" format="float" />
<attr name="dpadRecyclerViewParentAlignmentFractionEnabled" format="boolean" />
<attr name="dpadRecyclerViewParentAlignmentPreferKeylineOverEdge" format="dimension" />
<attr name="dpadRecyclerViewFocusableDirection" format="enum">
<enum name="standard" value="0" />
<enum name="circular" value="1" />
Expand Down

0 comments on commit 4275a04

Please sign in to comment.