我是Android的新手,可能不知道所有選項。任何幫助表示讚賞。兩個seekbars形成一個L?
指定「屏幕寬度百分比」和「屏幕長度百分比」的正確方法是什麼?哪種佈局是正確的?
我試圖做一個垂直在屏幕的左邊20%和一個水平seekbar在底部的20%的屏幕與其餘的由80%-80%象限形成的圖像。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:orientation="vertical"
android:stretchColumns="*"
tools:context=".MainActivity" >
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/text_title"/>
<SeekBar
android:id="@+id/seekBar2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="false"
android:layout_alignParentTop="false"
android:hapticFeedbackEnabled="true"
android:progress="25" />
<ImageView />
<SeekBar
android:id="@+id/seekBar1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:hapticFeedbackEnabled="true"
android:progress="50"
android:rotation="270" />
</RelativeLayout>