Enable sharing media directly from Tusky (#852)
* Extract duplicated code into BaseActivity * Migrate MediaUtils to kotlin * Migrate ViewVideoActivity to kotlin * Migrate ViewMediaActivity to kotlin * Initial media sharing functionality * Address code review feedback * Make share icon match * Address code review feedback
This commit is contained in:
parent
ab601c4566
commit
0bca94b94e
18 changed files with 785 additions and 690 deletions
|
|
@ -9,7 +9,7 @@
|
|||
<com.keylesspalace.tusky.view.ImageViewPager
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/view_pager" />
|
||||
android:id="@+id/viewPager" />
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@
|
|||
android:id="@+id/view_video_container"
|
||||
tools:context=".ViewVideoActivity">
|
||||
<VideoView
|
||||
android:id="@+id/video_player"
|
||||
android:id="@+id/videoPlayer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center" />
|
||||
<ProgressBar
|
||||
android:id="@+id/video_progress"
|
||||
android:id="@+id/videoProgressBar"
|
||||
android:layout_gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
|
@ -23,6 +23,6 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:theme="@style/AppTheme.Account.AppBarLayout"
|
||||
app:popupTheme="@style/AppTheme.Account.ToolbarPopupTheme.Dark"
|
||||
android:background="@color/semi_transparent" />
|
||||
app:popupTheme="?attr/toolbar_popup_theme"
|
||||
android:background="@color/toolbar_view_media" />
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue