Commit 4b7e3bf9 authored by Geoffrey Métais's avatar Geoffrey Métais

Improve context menu appearence

parent d167a41c
......@@ -10,8 +10,8 @@
android:layout_height="wrap_content"
android:layout_width="match_parent"
style="@style/VLC.TextViewTitle"
android:gravity="center_horizontal"
android:layout_margin="8dp"/>
android:textColor="@color/orange800"
android:layout_margin="@dimen/default_margin"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/ctx_list"
android:layout_height="wrap_content"
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="default_content_width">800dp</dimen>
<dimen name="default_context_width">600dp</dimen>
<dimen name="file_picker_width">720dp</dimen>
</resources>
\ No newline at end of file
......@@ -46,6 +46,7 @@
<dimen name="file_picker_height">-1px</dimen>
<dimen name="default_content_width">-1px</dimen>
<dimen name="default_context_width">-1px</dimen>
<!-- Default -->
......
......@@ -76,7 +76,7 @@ class ContextSheet : BottomSheetDialogFragment() {
list.adapter = ContextAdapter()
val flags = arguments?.getInt(CTX_FLAGS_KEY) ?: 0
options = populateOptions(flags)
if (!AndroidDevices.isPhone) launch(UI) { dialog.window.setLayout(resources.getDimensionPixelSize(R.dimen.default_content_width), ViewGroup.LayoutParams.MATCH_PARENT) }
if (!AndroidDevices.isPhone) launch(UI) { dialog.window.setLayout(resources.getDimensionPixelSize(R.dimen.default_context_width), ViewGroup.LayoutParams.MATCH_PARENT) }
}
private fun populateOptions(flags: Int) = mutableListOf<CtxOption>().apply {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment