【发布时间】:2015-05-10 06:15:25
【问题描述】:
我想实现这个:
我试图做的是并排添加一个按钮和微调器,用户界面看起来很糟糕。我怎样才能实现这样的用户界面(红色标记)?提前致谢。
到目前为止我所尝试的:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Spinner
android:id="@+id/storageDirectory"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:background="@android:drawable/btn_dropdown"
android:spinnerMode="dropdown"
android:textSize="12dip"
android:layout_weight=".5"/>
<Button
android:id="@+id/frame"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_marginRight="5dp"
android:textSize="12dip"
android:layout_marginTop="5dp"
android:layout_weight=".5"/>
</LinearLayout>
<ListView
android:id="@+id/fileList"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
【问题讨论】:
标签: android xml file user-interface