Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Commit

Permalink
ビューア画面のレイアウト微調整
Browse files Browse the repository at this point in the history
  • Loading branch information
tateisu committed Dec 24, 2019
1 parent 1e27752 commit 6692a6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/jp/juggler/screenshotbutton/MyService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class MyService : Service(), CoroutineScope, View.OnClickListener, View.OnTouchL
} else {
@Suppress("DEPRECATION")
WindowManager.LayoutParams.TYPE_SYSTEM_ALERT
// TYPE_SYSTEM_OVERLAYはロック画面にもViewを表示できますが、タッチイベントを取得できません
},
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or
// WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH or
Expand Down
5 changes: 1 addition & 4 deletions app/src/main/res/layout/act_viewer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
android:layout_height="match_parent"
tools:context=".ActViewer"
android:orientation="vertical"
android:padding="8dp"

>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="top"
android:padding="8dp"
>
<ImageButton
android:id="@+id/btnBack"
Expand Down Expand Up @@ -63,8 +62,6 @@
android:id="@+id/ivImage"
android:importantForAccessibility="no"
android:scaleType="fitCenter"

android:padding="4dp"
/>

</LinearLayout>

0 comments on commit 6692a6b

Please sign in to comment.