diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt index 28d8189..dfdc661 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt @@ -6,7 +6,6 @@ import android.preference.PreferenceManager import android.view.* import androidx.appcompat.widget.Toolbar import androidx.core.content.ContextCompat -import androidx.core.graphics.drawable.DrawableCompat import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentPagerAdapter @@ -118,17 +117,6 @@ class HomeFragment : Fragment() { tabLayout.setupWithViewPager(viewPager) // Set the pie chart icon for the third tab tabLayout.getTabAt(2)?.setIcon(R.drawable.ic_pie_chart) - - var icon = tabLayout.getTabAt(2)?.icon - if (icon != null) { - val colors = context?.let {context -> - ContextCompat.getColorStateList( - context, R.color.tab_icon_selector) - } - - icon = DrawableCompat.wrap(icon) - DrawableCompat.setTintList(icon, colors) - } } /** diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index a709b74..5b87e73 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -29,9 +29,26 @@ android:orientation="vertical" app:layout_constraintGuide_percent="0.5"/> + + + + app:layout_constraintTop_toTopOf="@id/fabReceiveDummy" + app:layout_constraintStart_toStartOf="@id/fabReceiveDummy"/> + + + + app:layout_constraintTop_toTopOf="@id/fabSendDummy" + app:layout_constraintStart_toStartOf="@id/fabSendDummy"/> + + + + app:layout_constraintTop_toTopOf="@id/fabCameraDummy" + app:layout_constraintBottom_toBottomOf="@id/fabCameraDummy" + app:layout_constraintStart_toStartOf="@id/fabCameraDummy" + app:layout_constraintEnd_toEndOf="@id/fabCameraDummy"/> @@ -147,6 +190,7 @@ android:layout_height="wrap_content" android:layout_marginTop="8dp" android:background="@color/semiTransparent" + app:tabIconTint="@color/tab_icon_selector" app:tabTextColor="?android:colorControlNormal" app:tabSelectedTextColor="?android:textColorPrimary" app:tabIndicatorColor="?attr/themedColorBackgroundFloating" diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index c262699..aeaa1e5 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -13,7 +13,7 @@ 40dp - 16dp + 10dp 180dp