Skip to content
Snippets Groups Projects
Commit 3c19298b authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Change action bar size according to device

parent 0606213a
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/actionBarSize">
android:layout_height="match_parent">
<androidx.viewpager.widget.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
......
......@@ -64,7 +64,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/main_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="@dimen/toolbar_height"
vlc:navigationContentDescription="@string/abc_action_bar_up_description"
vlc:popupTheme="?attr/toolbar_popup_style"
vlc:theme="@style/Toolbar.VLC"
......
......@@ -43,7 +43,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/main_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="@dimen/toolbar_height"
vlc:navigationContentDescription="@string/abc_action_bar_up_description"
vlc:popupTheme="?attr/toolbar_popup_style"
vlc:theme="@style/Toolbar.VLC"
......
......@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="@dimen/tab_layout_height"
android:background="?attr/background_actionbar"
app:tabMode="scrollable"
app:tabSelectedTextColor="?attr/font_actionbar_selected"
......
......@@ -11,7 +11,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/main_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="@dimen/toolbar_height"
app:navigationContentDescription="@string/abc_action_bar_up_description"
app:theme="@style/Toolbar.VLC"
app:popupTheme="?attr/toolbar_popup_style"
......
......@@ -3,4 +3,6 @@
<dimen name="info_appbar_height">300dp</dimen>
<dimen name="audio_player_cover_margin">16dp</dimen>
<dimen name="subs_dl_dialog_height">350dp</dimen>
<dimen name="toolbar_height">40dp</dimen>
<dimen name="tab_layout_height">32dp</dimen>
</resources>
\ No newline at end of file
......@@ -2,4 +2,6 @@
<resources>
<dimen name="subs_dl_dialog_height">448dp</dimen>
<dimen name="audio_player_seekbar_bottom_margin">32dp</dimen>
<dimen name="toolbar_height">-2px</dimen>
<dimen name="tab_layout_height">-2px</dimen>
</resources>
\ No newline at end of file
<resources>
<!-- Default -->
<dimen name="actionBarSize">48dp</dimen>
</resources>
\ No newline at end of file
......@@ -60,7 +60,6 @@
<dimen name="info_progress_end_margin">74dp</dimen>
<dimen name="info_default_margin">16dp</dimen>
<dimen name="actionBarSize">56dp</dimen>
<dimen name="info_dialog_peek_height">120dip</dimen>
<dimen name="player_peek_height">61dip</dimen>
......@@ -88,4 +87,6 @@
<dimen name="default_margin_plus_audio_margin">24dp</dimen>
<dimen name="audio_player_seekbar_bottom_margin">16dp</dimen>
<dimen name="toolbar_height">40dp</dimen>
<dimen name="tab_layout_height">24dp</dimen>
</resources>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment