equalizer.xml 3.1 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
4 5
    android:layout_height="512dp"
    android:minHeight="512dp"
Geoffrey Métais's avatar
Geoffrey Métais committed
6
    android:orientation="vertical"
7
    android:padding="@dimen/default_margin" >
8 9

    <LinearLayout
David Papazian's avatar
David Papazian committed
10
        android:orientation="horizontal"
11
        android:layout_width="match_parent"
David Papazian's avatar
David Papazian committed
12
        android:layout_height="wrap_content">
13

Geoffrey Métais's avatar
Geoffrey Métais committed
14
        <android.support.v7.widget.SwitchCompat
15 16
            android:id="@+id/equalizer_button"
            android:layout_width="wrap_content"
17
            android:layout_height="wrap_content"
David Papazian's avatar
David Papazian committed
18
            android:layout_gravity="center_vertical"/>
19 20 21

        <Spinner
            android:id="@+id/equalizer_presets"
David Papazian's avatar
David Papazian committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_weight="2"/>

        <LinearLayout
            android:id="@+id/buttons"
            android:orientation="horizontal"
            android:layout_width="50dp"
            android:layout_height="25dp"
            android:layout_gravity="center_vertical">
            <ImageView
                android:visibility="invisible"
                android:id="@+id/equalizer_save"
                android:layout_width="25dp"
                android:layout_height="25dp"
                android:src="?attr/ic_save"
                android:layout_gravity="center_vertical"/>
            <ImageView
                android:visibility="invisible"
                android:id="@+id/equalizer_revert"
                android:layout_width="25dp"
                android:layout_height="25dp"
                android:src="?attr/ic_previous"
                android:layout_gravity="center_vertical"/>
            <ImageView
                android:visibility="gone"
                android:id="@+id/equalizer_delete"
                android:layout_width="25dp"
                android:layout_height="25dp"
52
                android:src="?attr/ic_trash"
David Papazian's avatar
David Papazian committed
53 54
                android:layout_gravity="center_vertical"/>
        </LinearLayout>
55 56 57

        <SeekBar
            android:id="@+id/equalizer_preamp"
David Papazian's avatar
David Papazian committed
58
            android:layout_width="match_parent"
59 60 61 62 63 64
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_weight="1"
            android:maxHeight="4dip"
            android:minHeight="4dip"
            android:progressDrawable="@drawable/po_seekbar"
65 66
            android:thumb="@drawable/seekbar_thumb"
            android:splitTrack="false"/>
David Papazian's avatar
David Papazian committed
67

68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
    </LinearLayout>

    <HorizontalScrollView
        android:id="@+id/equalizer_scroll"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:fillViewport="true"
        android:fadeScrollbars="false" >

        <LinearLayout
            android:id="@+id/equalizer_bands"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:orientation="horizontal" />
    </HorizontalScrollView>

</LinearLayout>