Set background color in activity

This commit is contained in:
M66B
2024-05-17 12:54:03 +02:00
parent 1083865e77
commit a25ab1367f
32 changed files with 23 additions and 50 deletions

View File

@@ -256,10 +256,12 @@ public class FragmentOptions extends FragmentBase {
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
final Context context = getContext();
TabLayout tabLayout = view.findViewById(R.id.tab_layout);
tabLayout.setBackgroundColor(Helper.resolveColor(context, R.attr.colorCardBackground));
tabLayout.setupWithViewPager(pager);
final Context context = getContext();
int colorAccent = Helper.resolveColor(context, androidx.appcompat.R.attr.colorAccent);
for (int i = 0; i < tabLayout.getTabCount(); i++) {
Drawable d = ContextCompat.getDrawable(context, PAGE_ICONS[i]);