我想把三个视图水平放在一起:TextView - SeekBar - TextView。这是我的示意图:0:00 ------0------ 0:00。
我希望SeekBar可以弹性伸缩,并且两侧有两个计数器,但最后一个textView没有显示出来。我还没有学习过Android中的布局相关知识。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/player_background"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/Progress01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp"
android:textIsSelectable="false"
android:text="@string/progress"
android:textColor="@color/player_duration_progress"/>
<SeekBar
android:id="@+id/SeekBar01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/Duration01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp"
android:textIsSelectable="false"
android:text="@string/duration"
android:textColor="@color/player_duration_progress"/>
</LinearLayout>
</LinearLayout>
也许在这里使用LinearLayout并不是最合适的选择?