From dd1fce892a470e97912e345325375675e43d08d6 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Wed, 22 Apr 2020 10:12:56 +0000 Subject: [PATCH] Replace textview with button for view commits in branches (#437) Replace textview with button for view commits in branches Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/437 Reviewed-by: 6543 <6543@noreply.gitea.io> --- .../org/mian/gitnex/adapters/BranchesAdapter.java | 3 ++- app/src/main/res/layout/list_branches.xml | 14 +++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/mian/gitnex/adapters/BranchesAdapter.java b/app/src/main/java/org/mian/gitnex/adapters/BranchesAdapter.java index 70a5ac39..8926ea4c 100644 --- a/app/src/main/java/org/mian/gitnex/adapters/BranchesAdapter.java +++ b/app/src/main/java/org/mian/gitnex/adapters/BranchesAdapter.java @@ -5,6 +5,7 @@ import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.Button; import android.widget.TextView; import org.mian.gitnex.R; import org.mian.gitnex.activities.CommitsActivity; @@ -34,7 +35,7 @@ public class BranchesAdapter extends RecyclerView.Adapter - + android:layout_marginTop="15dp" + android:textColor="@color/btnTextColor" + android:textSize="14sp" + android:minHeight="0dp" + android:minWidth="0dp" + android:padding="8dp" + android:background="@drawable/shape_buttons" />