parent
32c2231406
commit
2e6531b6f9
@ -1,20 +1,31 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
<RelativeLayout 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:clickable="true" |
||||
android:layout_gravity="center" |
||||
android:background="@android:color/black"> |
||||
|
||||
<ProgressBar |
||||
android:id="@+id/view_media_progress" |
||||
android:layout_gravity="center" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" /> |
||||
android:background="@android:color/black" |
||||
android:clickable="true"> |
||||
|
||||
<com.github.chrisbanes.photoview.PhotoView |
||||
android:id="@+id/view_media_image" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" /> |
||||
android:layout_height="match_parent" |
||||
android:layout_below="@+id/toolbar" /> |
||||
|
||||
<android.support.v7.widget.Toolbar |
||||
android:id="@+id/toolbar" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="?attr/actionBarSize" |
||||
android:background="?attr/colorPrimary" |
||||
app:navigationIcon="?attr/homeAsUpIndicator" /> |
||||
|
||||
<ProgressBar |
||||
android:id="@+id/view_media_progress" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_centerHorizontal="true" |
||||
android:layout_centerVertical="true" |
||||
android:layout_gravity="center" /> |
||||
|
||||
</FrameLayout> |
||||
</RelativeLayout> |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:app="http://schemas.android.com/apk/res-auto"> |
||||
<item |
||||
android:id="@+id/action_download" |
||||
android:icon="@drawable/ic_file_download_black_24dp" |
||||
android:title="@string/dialog_download_image" |
||||
app:showAsAction="always" /> |
||||
</menu> |
Loading…
Reference in new issue