mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-18 11:58:52 +01:00
#1076 - Video playback support
This commit is contained in:
@@ -17,11 +17,27 @@
|
||||
~ You should have received a copy of the GNU General Public License
|
||||
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<common.widget.SquareImageView android:id="@+id/thumbnail"
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/divider"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@tools:sample/backgrounds/scenic" />
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<common.widget.SquareImageView android:id="@+id/thumbnail"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/divider"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@tools:sample/backgrounds/scenic" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/video"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_gravity="top|end"
|
||||
android:layout_margin="16dp"
|
||||
android:src="@drawable/ic_play_circle_filled_white_24dp" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -30,6 +30,11 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<com.google.android.exoplayer2.ui.PlayerView
|
||||
android:id="@+id/video"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<string name="menu_call">Call</string>
|
||||
<string name="menu_info">Details</string>
|
||||
<string name="menu_save">Save image</string>
|
||||
<string name="menu_save">Save to gallery</string>
|
||||
|
||||
<string name="main_title_selected">%d selected</string>
|
||||
<string name="main_menu_clear">Clear</string>
|
||||
@@ -111,7 +111,7 @@
|
||||
<string name="info_unblock">Unblock</string>
|
||||
<string name="info_delete">Delete conversation</string>
|
||||
|
||||
<string name="gallery_toast_saved">Saved image</string>
|
||||
<string name="gallery_toast_saved">Saved to gallery</string>
|
||||
|
||||
<string name="settings_category_appearance">Appearance</string>
|
||||
<string name="settings_category_general">General</string>
|
||||
|
||||
Reference in New Issue
Block a user