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:text="@string/set_as_cover"
|
||||||
android:paddingStart="16dp"
|
android:textColor="?attr/colorOnBackground"
|
||||||
android:paddingEnd="16dp">
|
app:drawableStartCompat="@drawable/ic_photo_24dp"
|
||||||
|
app:drawableTint="?attr/colorOnBackground" />
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:layout_width="24dp"
|
android:id="@+id/share"
|
||||||
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:textColor="?attr/colorOnBackground" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/share_layout"
|
|
||||||
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:text="@string/action_share"
|
||||||
android:paddingStart="16dp"
|
android:textColor="?attr/colorOnBackground"
|
||||||
android:paddingEnd="16dp">
|
app:drawableStartCompat="@drawable/ic_share_24dp"
|
||||||
|
app:drawableTint="?attr/colorOnBackground" />
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:layout_width="24dp"
|
android:id="@+id/save"
|
||||||
android:layout_height="24dp"
|
|
||||||
app:srcCompat="@drawable/ic_share_24dp"
|
|
||||||
app:tint="?attr/colorOnBackground" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="32dp"
|
|
||||||
android:text="@string/action_share"
|
|
||||||
android:textColor="?attr/colorOnBackground" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/save_layout"
|
|
||||||
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:text="@string/action_save"
|
||||||
android:paddingStart="16dp"
|
android:textColor="?attr/colorOnBackground"
|
||||||
android:paddingEnd="16dp">
|
app:drawableStartCompat="@drawable/ic_save_24dp"
|
||||||
|
app:drawableTint="?attr/colorOnBackground" />
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="24dp"
|
|
||||||
app:srcCompat="@drawable/ic_save_24dp"
|
|
||||||
app:tint="?attr/colorOnBackground" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="32dp"
|
|
||||||
android:text="@string/action_save"
|
|
||||||
android:textColor="?attr/colorOnBackground" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user