오디션 지원자
- 오디오 재생시 시간과 ProgressBar 추가
This commit is contained in:
25
app/src/main/res/drawable/audition_player_seekbar.xml
Normal file
25
app/src/main/res/drawable/audition_player_seekbar.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@android:id/background">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="6.7dp" />
|
||||
<solid android:color="@color/color_cc979797" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:id="@android:id/secondaryProgress">
|
||||
<clip>
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="6.7dp" />
|
||||
<solid android:color="@color/color_cc979797" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="6.7dp" />
|
||||
<solid android:color="@color/color_3bb9f1" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
@@ -27,18 +27,70 @@
|
||||
app:layout_constraintStart_toStartOf="@+id/iv_profile"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_profile" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_nickname"
|
||||
android:layout_width="wrap_content"
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="13.3dp"
|
||||
android:fontFamily="@font/gmarket_sans_medium"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
android:layout_marginHorizontal="13.3dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/iv_profile"
|
||||
app:layout_constraintEnd_toStartOf="@+id/ll_vote"
|
||||
app:layout_constraintStart_toEndOf="@+id/iv_profile"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_profile"
|
||||
tools:text="닉네임" />
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_profile">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_nickname"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="@font/gmarket_sans_medium"
|
||||
android:maxEms="9"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
tools:text="닉네임닉네임닉네임닉네임닉네임" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_current_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@+id/tv_total_duration"
|
||||
android:layout_toEndOf="@+id/tv_nickname"
|
||||
android:fontFamily="@font/gmarket_sans_medium"
|
||||
android:gravity="end"
|
||||
android:textColor="@color/color_777777"
|
||||
android:textSize="12sp"
|
||||
tools:text="00:10:00" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_total_duration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/gmarket_sans_medium"
|
||||
android:textColor="@color/color_777777"
|
||||
android:textSize="12sp"
|
||||
tools:text="/30:00:00" />
|
||||
</RelativeLayout>
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/sb_progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2.3dp"
|
||||
android:paddingStart="0dp"
|
||||
android:paddingEnd="0dp"
|
||||
android:progressDrawable="@drawable/audition_player_seekbar"
|
||||
android:thumb="@null"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_vote"
|
||||
|
Reference in New Issue
Block a user