mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2024-12-16 15:48:13 +08:00
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>
This commit is contained in:
parent
f39357f596
commit
dd1fce892a
@ -5,6 +5,7 @@ import android.content.Intent;
|
|||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
import android.widget.Button;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import org.mian.gitnex.R;
|
import org.mian.gitnex.R;
|
||||||
import org.mian.gitnex.activities.CommitsActivity;
|
import org.mian.gitnex.activities.CommitsActivity;
|
||||||
@ -34,7 +35,7 @@ public class BranchesAdapter extends RecyclerView.Adapter<BranchesAdapter.Branch
|
|||||||
|
|
||||||
branchNameTv = itemView.findViewById(R.id.branchName);
|
branchNameTv = itemView.findViewById(R.id.branchName);
|
||||||
branchCommitAuthor = itemView.findViewById(R.id.branchCommitAuthor);
|
branchCommitAuthor = itemView.findViewById(R.id.branchCommitAuthor);
|
||||||
TextView branchCommitHash = itemView.findViewById(R.id.branchCommitHash);
|
Button branchCommitHash = itemView.findViewById(R.id.branchCommitHash);
|
||||||
|
|
||||||
branchCommitHash.setOnClickListener(new View.OnClickListener() {
|
branchCommitHash.setOnClickListener(new View.OnClickListener() {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
@ -31,14 +31,18 @@
|
|||||||
android:textColor="?attr/primaryTextColor"
|
android:textColor="?attr/primaryTextColor"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
<TextView
|
<Button
|
||||||
android:id="@+id/branchCommitHash"
|
android:id="@+id/branchCommitHash"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textColor="@color/lightBlue"
|
|
||||||
android:text="@string/viewCommits"
|
android:text="@string/viewCommits"
|
||||||
android:textSize="14sp" />
|
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" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user