- Duration display adjustment
- Avatar click to owner page
This commit is contained in:
parent
9aa51e32a2
commit
5464c51a18
@ -107,13 +107,20 @@ public class VideoAdapter extends RecyclerView.Adapter<VideoAdapter.VideoViewHol
|
||||
);
|
||||
|
||||
holder.videoOwner.setText(displayNameAndHost);
|
||||
|
||||
// video owner click
|
||||
holder.videoOwner.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(context, AccountActivity.class);
|
||||
intent.putExtra(EXTRA_ACCOUNTDISPLAYNAME, displayNameAndHost);
|
||||
context.startActivity(intent);
|
||||
});
|
||||
|
||||
// avatar click
|
||||
holder.avatar.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(context, AccountActivity.class);
|
||||
intent.putExtra(EXTRA_ACCOUNTDISPLAYNAME, displayNameAndHost);
|
||||
context.startActivity(intent);
|
||||
});
|
||||
|
||||
holder.mView.setOnClickListener(v -> {
|
||||
|
||||
// Log.v("VideoAdapter", "click: " + videoList.get(position).getName());
|
||||
|
@ -30,6 +30,7 @@
|
||||
android:scaleType="fitXY" />
|
||||
|
||||
<TextView
|
||||
android:textSize="12sp"
|
||||
android:paddingStart="4dp"
|
||||
android:paddingEnd="4dp"
|
||||
android:layout_margin="2dp"
|
||||
@ -41,7 +42,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#ffffff"
|
||||
android:background="#000000"/>
|
||||
android:background="#232323"/>
|
||||
|
||||
<de.hdodenhof.circleimageview.CircleImageView xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/avatar"
|
||||
|
Loading…
Reference in New Issue
Block a user