我是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>