From cfa0a72dc9850b0b3787911a6565fe274adaafca Mon Sep 17 00:00:00 2001 From: M M Arif Date: Fri, 12 Aug 2022 10:20:57 +0500 Subject: [PATCH] labels list ui revamp --- .../mian/gitnex/fragments/LabelsFragment.java | 5 - app/src/main/res/layout/fragment_labels.xml | 24 ++-- app/src/main/res/layout/list_labels.xml | 105 +++++++++++------- 3 files changed, 77 insertions(+), 57 deletions(-) diff --git a/app/src/main/java/org/mian/gitnex/fragments/LabelsFragment.java b/app/src/main/java/org/mian/gitnex/fragments/LabelsFragment.java index 2701e980..2c563249 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/LabelsFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/LabelsFragment.java @@ -11,7 +11,6 @@ import android.widget.TextView; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.lifecycle.ViewModelProvider; -import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; @@ -63,10 +62,6 @@ public class LabelsFragment extends Fragment { mRecyclerView.setHasFixedSize(true); mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext())); - DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(mRecyclerView.getContext(), - DividerItemDecoration.VERTICAL); - mRecyclerView.addItemDecoration(dividerItemDecoration); - mProgressBar = fragmentLabelsBinding.progressBar; swipeRefresh.setOnRefreshListener(() -> new Handler(Looper.getMainLooper()).postDelayed(() -> { diff --git a/app/src/main/res/layout/fragment_labels.xml b/app/src/main/res/layout/fragment_labels.xml index e6da5cc7..a8a25af2 100644 --- a/app/src/main/res/layout/fragment_labels.xml +++ b/app/src/main/res/layout/fragment_labels.xml @@ -6,19 +6,25 @@ xmlns:app="http://schemas.android.com/apk/res-auto" tools:context=".activities.RepoDetailActivity"> - + android:layout_height="match_parent" + android:background="?attr/primaryBackgroundColor" + android:padding="@dimen/dimen8dp"> - + android:layout_height="wrap_content"> - + + + + + + android:paddingTop="@dimen/dimen4dp" + android:paddingBottom="@dimen/dimen4dp"> + app:cardElevation="@dimen/dimen0dp"> - - - + style="?attr/materialCardViewFilledStyle" + app:cardCornerRadius="@dimen/dimen16dp" + app:cardElevation="@dimen/dimen0dp" + app:contentPaddingBottom="@dimen/dimen4dp" + app:contentPaddingLeft="@dimen/dimen12dp" + app:contentPaddingRight="@dimen/dimen12dp" + app:contentPaddingTop="@dimen/dimen4dp"> + + + + + + + + + + + + + + - - - -