Created
June 19, 2024 18:46
-
-
Save sajjadyousefnia/820590987b168e8fc0432ff4ca82eebd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="vertical"> | |
| <com.google.android.material.card.MaterialCardView | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center_vertical|right" | |
| android:layout_marginLeft="@dimen/_10sdp" | |
| android:layout_marginTop="@dimen/_5sdp" | |
| android:layout_marginRight="@dimen/_10sdp" | |
| android:layout_marginBottom="@dimen/_5sdp" | |
| app:cardBackgroundColor="@color/card_view_color" | |
| app:strokeWidth="0dp"> | |
| <androidx.constraintlayout.widget.ConstraintLayout | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content"> | |
| <LinearLayout | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:gravity="center" | |
| android:orientation="vertical" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintLeft_toLeftOf="parent" | |
| app:layout_constraintRight_toRightOf="parent" | |
| app:layout_constraintTop_toTopOf="parent"> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:orientation="horizontal"> | |
| <RelativeLayout | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content"> | |
| <com.google.android.material.progressindicator.CircularProgressIndicator | |
| android:id="@+id/circular_progress" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_margin="@dimen/_10sdp" /> | |
| <ImageButton | |
| android:id="@+id/btn_change_state" | |
| android:layout_width="@dimen/_10sdp" | |
| android:layout_height="@dimen/_10sdp" | |
| android:layout_centerInParent="true" | |
| android:layout_gravity="center" | |
| android:background="@null" | |
| android:scaleType="fitXY" | |
| android:src="@drawable/ic_pause" | |
| app:tint="@color/app_bright_white_color" /> | |
| </RelativeLayout> | |
| <com.google.android.material.textview.MaterialTextView | |
| android:id="@+id/tv_title" | |
| android:layout_width="@dimen/_180sdp" | |
| android:layout_height="wrap_content" | |
| android:ellipsize="end" | |
| android:fontFamily="@font/regular" | |
| android:gravity="right" | |
| android:maxLines="2" | |
| android:padding="@dimen/_10sdp" | |
| android:text="فیلم زیبا و دیدنی مارتین اسکورسیزی که بسیار پرطرفدار شده است" | |
| android:textColor="@color/app_bright_white_color" | |
| app:fontFamily="@font/regular" /> | |
| </LinearLayout> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:gravity="center" | |
| android:orientation="horizontal"> | |
| <com.google.android.material.textview.MaterialTextView | |
| android:id="@+id/tv_speed" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_weight="1" | |
| android:fontFamily="@font/regular" | |
| android:gravity="left|center_vertical" | |
| android:justificationMode="inter_word" | |
| android:letterSpacing="0.05" | |
| android:paddingLeft="@dimen/_10sdp" | |
| android:paddingRight="@dimen/_5sdp" | |
| android:text="2.25MB/1080MB" | |
| android:textColor="@color/app_bright_white_color" | |
| app:fontFamily="@font/regular" | |
| app:lineHeight="@dimen/_5sdp" /> | |
| <com.google.android.material.textview.MaterialTextView | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_weight="1" | |
| android:fontFamily="@font/regular" | |
| android:gravity="right|center_vertical" | |
| android:paddingLeft="@dimen/_5sdp" | |
| android:paddingRight="@dimen/_10sdp" | |
| android:text="سرعت" | |
| android:textColor="@color/app_bright_white_color" | |
| app:fontFamily="@font/regular" | |
| app:lineHeight="@dimen/_5sdp" /> | |
| </LinearLayout> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:gravity="center" | |
| android:orientation="horizontal"> | |
| <com.google.android.material.textview.MaterialTextView | |
| android:id="@+id/tv_downloaded_bytes" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_weight="1" | |
| android:fontFamily="@font/regular" | |
| android:gravity="left|center_vertical" | |
| android:justificationMode="inter_word" | |
| android:letterSpacing="0.05" | |
| android:paddingLeft="@dimen/_10sdp" | |
| android:paddingRight="@dimen/_5sdp" | |
| android:text="8585.85 KB/sec" | |
| android:textColor="@color/app_bright_white_color" | |
| app:fontFamily="@font/regular" | |
| app:lineHeight="@dimen/_5sdp" /> | |
| <com.google.android.material.textview.MaterialTextView | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_weight="1" | |
| android:fontFamily="@font/regular" | |
| android:gravity="right|center_vertical" | |
| android:paddingLeft="@dimen/_5sdp" | |
| android:paddingRight="@dimen/_10sdp" | |
| android:text="دانلود شده" | |
| android:textColor="@color/app_bright_white_color" | |
| app:fontFamily="@font/regular" | |
| app:lineHeight="@dimen/_5sdp" /> | |
| </LinearLayout> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:gravity="center" | |
| android:orientation="horizontal"> | |
| <com.google.android.material.textview.MaterialTextView | |
| android:id="@+id/tv_remaining_time" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_weight="1" | |
| android:fontFamily="@font/regular" | |
| android:gravity="left|center_vertical" | |
| android:justificationMode="inter_word" | |
| android:letterSpacing="0.05" | |
| android:paddingLeft="@dimen/_10sdp" | |
| android:paddingRight="@dimen/_5sdp" | |
| android:text="3 ساعت و 15 دقیقه" | |
| android:textColor="@color/app_bright_white_color" | |
| app:fontFamily="@font/regular" | |
| app:lineHeight="@dimen/_5sdp" /> | |
| <com.google.android.material.textview.MaterialTextView | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_weight="1" | |
| android:fontFamily="@font/regular" | |
| android:gravity="right|center_vertical" | |
| android:paddingLeft="@dimen/_5sdp" | |
| android:paddingRight="@dimen/_10sdp" | |
| android:text="مدت باقی مانده" | |
| android:textColor="@color/app_bright_white_color" | |
| app:fontFamily="@font/regular" | |
| app:lineHeight="@dimen/_5sdp" /> | |
| </LinearLayout> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_marginBottom="@dimen/_10sdp" | |
| android:gravity="center" | |
| android:orientation="horizontal"> | |
| <com.google.android.material.textview.MaterialTextView | |
| android:id="@+id/tv_status" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_weight="1" | |
| android:fontFamily="@font/regular" | |
| android:gravity="left|center_vertical" | |
| android:justificationMode="inter_word" | |
| android:letterSpacing="0.05" | |
| android:paddingLeft="@dimen/_10sdp" | |
| android:paddingRight="@dimen/_5sdp" | |
| android:text="در حال بارگیری" | |
| android:textColor="@color/app_bright_white_color" | |
| app:fontFamily="@font/regular" | |
| app:lineHeight="@dimen/_5sdp" /> | |
| <com.google.android.material.textview.MaterialTextView | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_weight="1" | |
| android:fontFamily="@font/regular" | |
| android:gravity="right|center_vertical" | |
| android:paddingLeft="@dimen/_5sdp" | |
| android:paddingRight="@dimen/_10sdp" | |
| android:text="وضعیت" | |
| android:textColor="@color/app_bright_white_color" | |
| app:fontFamily="@font/regular" | |
| app:lineHeight="@dimen/_5sdp" /> | |
| </LinearLayout> | |
| </LinearLayout> | |
| <ImageView | |
| android:id="@+id/img_cover" | |
| android:layout_width="0dp" | |
| android:layout_height="0dp" | |
| android:alpha="0.1" | |
| android:scaleType="fitXY" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintLeft_toLeftOf="parent" | |
| app:layout_constraintRight_toRightOf="parent" | |
| app:layout_constraintTop_toTopOf="parent" /> | |
| </androidx.constraintlayout.widget.ConstraintLayout> | |
| </com.google.android.material.card.MaterialCardView> | |
| </LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment