mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 15:49:20 +01:00
Clean up reader action sheet layout
This commit is contained in:
parent
ce29914c56
commit
333c035fed
@ -22,9 +22,9 @@ class ReaderPageSheet(
|
|||||||
override fun createView(inflater: LayoutInflater): View {
|
override fun createView(inflater: LayoutInflater): View {
|
||||||
binding = ReaderPageSheetBinding.inflate(activity.layoutInflater, null, false)
|
binding = ReaderPageSheetBinding.inflate(activity.layoutInflater, null, false)
|
||||||
|
|
||||||
binding.setAsCoverLayout.setOnClickListener { setAsCover() }
|
binding.setAsCover.setOnClickListener { setAsCover() }
|
||||||
binding.shareLayout.setOnClickListener { share() }
|
binding.share.setOnClickListener { share() }
|
||||||
binding.saveLayout.setOnClickListener { save() }
|
binding.save.setOnClickListener { save() }
|
||||||
|
|
||||||
return binding.root
|
return binding.root
|
||||||
}
|
}
|
||||||
|
@ -5,82 +5,49 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
<TextView
|
||||||
android:id="@+id/set_as_cover_layout"
|
android:id="@+id/set_as_cover"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
|
android:drawablePadding="32dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
|
android:paddingHorizontal="16dp"
|
||||||
android:foreground="?attr/selectableItemBackground"
|
android:foreground="?attr/selectableItemBackground"
|
||||||
android:gravity="center"
|
|
||||||
android:paddingStart="16dp"
|
|
||||||
android:paddingEnd="16dp">
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="24dp"
|
|
||||||
app:srcCompat="@drawable/ic_photo_24dp"
|
|
||||||
app:tint="?attr/colorOnBackground" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="32dp"
|
|
||||||
android:text="@string/set_as_cover"
|
android:text="@string/set_as_cover"
|
||||||
android:textColor="?attr/colorOnBackground" />
|
android:textColor="?attr/colorOnBackground"
|
||||||
|
app:drawableStartCompat="@drawable/ic_photo_24dp"
|
||||||
</LinearLayout>
|
app:drawableTint="?attr/colorOnBackground" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/share_layout"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="56dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:foreground="?attr/selectableItemBackground"
|
|
||||||
android:gravity="center"
|
|
||||||
android:paddingStart="16dp"
|
|
||||||
android:paddingEnd="16dp">
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="24dp"
|
|
||||||
app:srcCompat="@drawable/ic_share_24dp"
|
|
||||||
app:tint="?attr/colorOnBackground" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/share"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="56dp"
|
||||||
android:layout_marginStart="32dp"
|
android:drawablePadding="32dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:paddingHorizontal="16dp"
|
||||||
|
android:foreground="?attr/selectableItemBackground"
|
||||||
android:text="@string/action_share"
|
android:text="@string/action_share"
|
||||||
android:textColor="?attr/colorOnBackground" />
|
android:textColor="?attr/colorOnBackground"
|
||||||
|
app:drawableStartCompat="@drawable/ic_share_24dp"
|
||||||
</LinearLayout>
|
app:drawableTint="?attr/colorOnBackground" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/save_layout"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="56dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:foreground="?attr/selectableItemBackground"
|
|
||||||
android:gravity="center"
|
|
||||||
android:paddingStart="16dp"
|
|
||||||
android:paddingEnd="16dp">
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="24dp"
|
|
||||||
app:srcCompat="@drawable/ic_save_24dp"
|
|
||||||
app:tint="?attr/colorOnBackground" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/save"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="56dp"
|
||||||
android:layout_marginStart="32dp"
|
android:drawablePadding="32dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:paddingHorizontal="16dp"
|
||||||
|
android:foreground="?attr/selectableItemBackground"
|
||||||
android:text="@string/action_save"
|
android:text="@string/action_save"
|
||||||
android:textColor="?attr/colorOnBackground" />
|
android:textColor="?attr/colorOnBackground"
|
||||||
|
app:drawableStartCompat="@drawable/ic_save_24dp"
|
||||||
</LinearLayout>
|
app:drawableTint="?attr/colorOnBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user