- Duration display adjustment

- Avatar click to owner page
This commit is contained in:
Stefan Schueller 2019-01-27 16:22:44 +01:00
parent 9aa51e32a2
commit 5464c51a18
2 changed files with 10 additions and 2 deletions

View File

@ -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());

View File

@ -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"