-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
i5
committed
Aug 11, 2020
1 parent
5e15440
commit 45fb40c
Showing
27 changed files
with
1,571 additions
and
0 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
picture_library/src/main/res/layout-ar/instagram_image_grid_item.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<com.luck.picture.lib.widget.SquareRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<ImageView | ||
android:id="@+id/ivPicture" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:scaleType="centerCrop" /> | ||
|
||
<TextView | ||
android:id="@+id/tvCheck" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_margin="8dp" | ||
android:background="?attr/picture.checked.style" | ||
android:gravity="center" | ||
android:textColor="@color/picture_color_white" | ||
android:textSize="12sp" /> | ||
|
||
<View | ||
android:id="@+id/btnCheck" | ||
android:layout_width="45dp" | ||
android:layout_height="45dp" | ||
android:layout_alignParentRight="true" | ||
android:background="@color/picture_color_transparent" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_isGif" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentBottom="true" | ||
android:background="@drawable/picture_gif_tag" | ||
android:text="@string/picture_gif_tag" | ||
android:textColor="@color/picture_color_white" | ||
android:textSize="11sp" | ||
android:visibility="gone" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_long_chart" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentBottom="true" | ||
android:background="@drawable/picture_gif_tag" | ||
android:text="@string/picture_long_chart" | ||
android:textColor="@color/picture_color_white" | ||
android:textSize="11sp" | ||
android:visibility="gone" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_duration" | ||
android:layout_width="match_parent" | ||
android:layout_height="30dp" | ||
android:layout_alignParentBottom="true" | ||
android:background="@drawable/picture_icon_shadow_bg" | ||
android:drawableLeft="@drawable/picture_icon_video" | ||
android:drawablePadding="5dp" | ||
android:gravity="center_vertical" | ||
android:paddingLeft="5dp" | ||
android:paddingTop="8dp" | ||
android:text="00:00" | ||
android:textColor="@color/picture_color_white" | ||
android:textSize="11sp" | ||
android:visibility="gone" /> | ||
|
||
<View | ||
android:id="@+id/iv_mask" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="#aaffffff" | ||
android:visibility="gone" | ||
/> | ||
</com.luck.picture.lib.widget.SquareRelativeLayout> |
51 changes: 51 additions & 0 deletions
51
picture_library/src/main/res/layout-ar/picture_activity_external_preview.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/picture_color_black" | ||
android:fitsSystemWindows="true"> | ||
|
||
|
||
<View | ||
android:id="@+id/titleViewBg" | ||
android:layout_width="match_parent" | ||
android:layout_height="48dp" | ||
android:background="?attr/picture.ac_preview.title.bg" /> | ||
|
||
<ImageButton | ||
android:id="@+id/left_back" | ||
android:layout_width="48dp" | ||
android:layout_height="48dp" | ||
android:background="@color/picture_color_transparent" | ||
android:scaleType="centerInside" | ||
android:src="?attr/picture.preview.leftBack.icon" /> | ||
|
||
<TextView | ||
android:id="@+id/picture_title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="48dp" | ||
android:layout_alignTop="@id/left_back" | ||
android:layout_alignBottom="@id/left_back" | ||
android:layout_centerHorizontal="true" | ||
android:ellipsize="end" | ||
android:gravity="center" | ||
android:maxEms="11" | ||
android:textColor="?attr/picture.ac_preview.title.textColor" | ||
android:textSize="18sp" /> | ||
|
||
<ImageButton | ||
android:id="@+id/ib_delete" | ||
android:layout_width="48dp" | ||
android:layout_height="48dp" | ||
android:layout_alignParentLeft="true" | ||
android:background="@color/picture_color_transparent" | ||
android:scaleType="centerInside" | ||
android:src="@drawable/picture_icon_delete" /> | ||
|
||
<com.luck.picture.lib.widget.PreviewViewPager | ||
android:id="@+id/preview_pager" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_below="@id/titleViewBg" /> | ||
|
||
</RelativeLayout> |
44 changes: 44 additions & 0 deletions
44
picture_library/src/main/res/layout-ar/picture_activity_video_play.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/picture_color_black" | ||
android:fitsSystemWindows="true"> | ||
|
||
<VideoView | ||
android:id="@+id/video_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_centerInParent="true" /> | ||
|
||
<ImageView | ||
android:id="@+id/iv_play" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerInParent="true" | ||
android:src="@drawable/picture_icon_video_play" | ||
android:visibility="invisible" /> | ||
|
||
<ImageButton | ||
android:id="@+id/pictureLeftBack" | ||
android:layout_width="48dp" | ||
android:layout_height="48dp" | ||
android:background="@color/picture_color_transparent" | ||
android:scaleType="centerInside" | ||
android:src="?attr/picture.preview.leftBack.icon" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_confirm" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentLeft="true" | ||
android:layout_marginTop="16dp" | ||
android:layout_marginLeft="16dp" | ||
android:background="@drawable/picture_send_button_bg" | ||
android:text="@string/picture_confirm" | ||
android:textColor="@color/picture_color_white" | ||
android:textSize="14sp" | ||
android:visibility="gone" | ||
tools:visibility="visible" /> | ||
</RelativeLayout> |
37 changes: 37 additions & 0 deletions
37
picture_library/src/main/res/layout-ar/picture_album_folder_item.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@drawable/picture_item_select_bg" | ||
android:orientation="vertical" | ||
android:padding="6dp"> | ||
|
||
|
||
<ImageView | ||
android:id="@+id/first_image" | ||
android:layout_width="50dp" | ||
android:layout_height="50dp" | ||
android:layout_centerVertical="true" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_sign" | ||
android:layout_width="12dp" | ||
android:layout_height="12dp" | ||
android:layout_alignLeft="@id/first_image" | ||
android:layout_margin="4dp" | ||
android:background="?attr/picture.folder_checked_dot" | ||
android:visibility="invisible" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_folder_name" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="10dp" | ||
android:layout_marginTop="5dp" | ||
android:layout_toRightOf="@id/first_image" | ||
android:text="@string/picture_camera_roll_num" | ||
android:textColor="@color/picture_color_4d" | ||
android:textSize="16sp" /> | ||
|
||
|
||
</RelativeLayout> |
17 changes: 17 additions & 0 deletions
17
picture_library/src/main/res/layout-ar/picture_alert_dialog.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/loading" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:background="@drawable/picture_dialog_custom_bg" | ||
android:orientation="vertical" | ||
android:padding="10dp"> | ||
|
||
<ProgressBar | ||
android:layout_width="25dp" | ||
android:layout_height="25dp" | ||
android:layout_gravity="center_horizontal" | ||
android:indeterminateBehavior="repeat" | ||
android:indeterminateDrawable="@drawable/picture_anim_progress" /> | ||
|
||
</LinearLayout> |
112 changes: 112 additions & 0 deletions
112
picture_library/src/main/res/layout-ar/picture_audio_dialog.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@drawable/picture_dialog_shadow"> | ||
|
||
<TextView | ||
android:id="@+id/tv_musicStatus" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:padding="10dp" | ||
android:text="" | ||
android:textColor="@color/picture_color_9b" | ||
android:textSize="14sp" /> | ||
|
||
<RelativeLayout | ||
android:id="@+id/rlSeekBar" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/tv_musicStatus" | ||
android:layout_gravity="center" | ||
android:gravity="center_horizontal|center_vertical"> | ||
|
||
<!--显示当前进度--> | ||
<TextView | ||
android:id="@+id/tv_musicTime" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerVertical="true" | ||
android:text="00:00" | ||
android:textColor="@color/picture_color_9b" | ||
android:textSize="12sp" /> | ||
|
||
|
||
<SeekBar | ||
android:id="@+id/musicSeekBar" | ||
android:layout_width="220dp" | ||
android:layout_height="wrap_content" | ||
android:layout_centerVertical="true" | ||
android:layout_marginLeft="5dp" | ||
android:layout_marginRight="5dp" | ||
android:layout_toRightOf="@+id/tv_musicTime" | ||
android:layout_weight="1" | ||
android:max="100" | ||
android:maxHeight="4.0dp" | ||
android:minHeight="4.0dp" | ||
android:progressDrawable="@drawable/picture_layer_progress" | ||
android:thumb="@drawable/picture_sb_thumb" | ||
android:thumbOffset="0dp" /> | ||
|
||
<!--显示总进度--> | ||
<TextView | ||
android:id="@+id/tv_musicTotal" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerVertical="true" | ||
android:layout_toRightOf="@+id/musicSeekBar" | ||
android:text="00:00" | ||
android:textColor="@color/picture_color_9b" | ||
android:textSize="12sp" /> | ||
|
||
</RelativeLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/rlSeekBar" | ||
android:layout_marginTop="15dp" | ||
android:layout_marginBottom="15dp" | ||
android:gravity="center_horizontal" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:id="@+id/tv_PlayPause" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="25dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/picture_btn_music_shape" | ||
android:gravity="center" | ||
android:text="@string/picture_play_audio" | ||
android:textColor="@color/picture_color_white" | ||
android:textSize="14sp" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_Stop" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="15dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/picture_btn_music_shape" | ||
android:gravity="center" | ||
android:text="@string/picture_stop_audio" | ||
android:textColor="@color/picture_color_white" | ||
android:textSize="14sp" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_Quit" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="15dp" | ||
android:layout_marginLeft="25dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/picture_btn_music_shape" | ||
android:gravity="center" | ||
android:text="@string/picture_quit_audio" | ||
android:textColor="@color/picture_color_white" | ||
android:textSize="14sp" /> | ||
</LinearLayout> | ||
</RelativeLayout> | ||
|
Oops, something went wrong.