#1076 - Video playback support

This commit is contained in:
Moez Bhatti
2018-06-06 15:52:19 -04:00
parent d6fa04f56d
commit b2b4e140e2
12 changed files with 102 additions and 25 deletions
@@ -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"
+2 -2
View File
@@ -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>