Xml文件  |  142行  |  6.4 KB

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (C) 2010-2011 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:id="@+id/noEffectsTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:ellipsize="marquee"
        android:fadingEdge="horizontal"
        android:layout_gravity="center"
        android:gravity="center"
        android:text="@string/no_effects"
        android:layout_weight="1"
        android:visibility="gone" />

    <FrameLayout
        android:id="@+id/contentSoundEffects"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:layout_gravity="center"
            android:orientation="vertical">

            <Spinner android:id="@+id/eqSpinner"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:drawSelectorOnTop="true"
            />

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <include layout="@layout/music_eq" />

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">

                    <LinearLayout
                        android:id="@+id/bBLayout"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:minHeight="?android:attr/listPreferredItemHeight"
                        android:gravity="center_vertical"
                        android:paddingRight="?android:attr/scrollbarSize"
                        android:layout_marginLeft="15dip"
                        android:layout_marginRight="6dip"
                        android:layout_marginTop="6dip"
                        android:layout_marginBottom="6dip"
                        android:orientation="vertical"
                        android:background="@android:drawable/list_selector_background">
                        <TextView
                            android:id="@+id/bBStrengthText"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_weight="1"
                            android:textAppearance="?android:attr/textAppearanceLarge"
                            android:ellipsize="marquee"
                            android:fadingEdge="horizontal"
                            android:text="@string/bass_boost_strength" />
                        <com.android.musicfx.seekbar.SeekBar
                            android:id="@+id/bBStrengthSeekBar"
                            android:layout_width="170dip"
                            android:layout_height="wrap_content"
                            android:paddingTop="2dip"
                            android:paddingLeft="20dip"
                            android:paddingRight="20dip" />
                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/vILayout"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:minHeight="?android:attr/listPreferredItemHeight"
                        android:gravity="center_vertical"
                        android:paddingRight="?android:attr/scrollbarSize"
                        android:layout_marginLeft="15dip"
                        android:layout_marginRight="6dip"
                        android:layout_marginTop="6dip"
                        android:layout_marginBottom="6dip"
                        android:orientation="vertical"
                        android:background="@android:drawable/list_selector_background">
                        <TextView
                            android:id="@+id/vIStrengthText"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_weight="1"
                            android:textAppearance="?android:attr/textAppearanceLarge"
                            android:ellipsize="marquee"
                            android:fadingEdge="horizontal"
                            android:text="@string/virtualizer_strength" />
                        <com.android.musicfx.seekbar.SeekBar
                            android:id="@+id/vIStrengthSeekBar"
                            android:layout_width="170dip"
                            android:layout_height="wrap_content"
                            android:paddingTop="2dip"
                            android:paddingLeft="20dip"
                            android:paddingRight="20dip" />
                    </LinearLayout>

                    <Spinner android:id="@+id/prSpinner"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:minHeight="?android:attr/listPreferredItemHeight"
                        android:drawSelectorOnTop="true"
                        android:visibility="gone"
                    />

                </LinearLayout>
            </LinearLayout>
        </LinearLayout>
    </FrameLayout>
</LinearLayout>