Apply proper margin between accents
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -44,9 +44,6 @@ import com.aurora.store.view.custom.CubicBezierInterpolator
|
|||||||
import com.aurora.store.view.epoxy.views.AccentViewModel_
|
import com.aurora.store.view.epoxy.views.AccentViewModel_
|
||||||
import com.aurora.store.view.ui.commons.BaseFragment
|
import com.aurora.store.view.ui.commons.BaseFragment
|
||||||
import com.gara.store.view.epoxy.controller.FlexLayoutManager
|
import com.gara.store.view.epoxy.controller.FlexLayoutManager
|
||||||
import com.google.android.flexbox.FlexDirection
|
|
||||||
import com.google.android.flexbox.FlexWrap
|
|
||||||
import com.google.android.flexbox.JustifyContent
|
|
||||||
import com.google.gson.reflect.TypeToken
|
import com.google.gson.reflect.TypeToken
|
||||||
import java.nio.charset.StandardCharsets
|
import java.nio.charset.StandardCharsets
|
||||||
import kotlin.math.sqrt
|
import kotlin.math.sqrt
|
||||||
@@ -96,11 +93,7 @@ class AccentFragment : BaseFragment() {
|
|||||||
|
|
||||||
private fun attachRecycler() {
|
private fun attachRecycler() {
|
||||||
with(B.epoxyRecycler) {
|
with(B.epoxyRecycler) {
|
||||||
layoutManager = FlexLayoutManager(requireContext()).apply {
|
layoutManager = FlexLayoutManager(requireContext())
|
||||||
justifyContent = JustifyContent.SPACE_BETWEEN
|
|
||||||
flexWrap = FlexWrap.WRAP
|
|
||||||
flexDirection = FlexDirection.ROW
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="4dp"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
|||||||
Reference in New Issue
Block a user