今天遇到个难缠的问题,Android界面一直都不是那么好设计,今天体会到了
对应的layout文件如下:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_margin="0dip"
android:layout_weight="1">
<TextView
android:text="@string/cost_time"
android:layout_gravity="left"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"/>
<Chronometer android:id="@+id/costTime"
android:gravity="left"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="0dip"
android:layout_weight="1"/>
<TextView
android:text="@string/best_time"
android:gravity="center"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="0dip"
android:la