在我的代码中,我显示周标签每件事都很好,只有周标签星期一没有正确对齐看到图像 http://imgur.com/YJqBje9。我如何正确设置 textview monday 只有我想在每个按钮上方显示 textview 我该怎么做?星期一没有正确对齐请帮助我
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="5dp" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TableLayout
android:id="@+id/table_layout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:stretchColumns="0,1,2,3,4,5,6" >
<TableRow
android:background="#D8D8D8"
android:paddingBottom="2dp"
android:paddingLeft="25dp"
android:paddingRight="25dp" >
<TextView
android:id="@+id/mon"
android:layout_weight="1"
android:paddingLeft="20dp"
android:text="@string/monday"
android:textColor="#000000" />
<TextView
android:id="@+id/tue"
android:layout_weight="1"
android:gravity="center"
android:paddingLeft="17dp"
android:text="@string/tuesday"
android:textColor="#000000" />
<TextView
android:id="@+id/wed"
android:layout_weight="1"
android:gravity="center"
android:text="@string/wednesday"
android:textColor="#000000" />
<TextView
android:id="@+id/thur"
android:layout_weight="1"
android:gravity="center"
android:paddingRight="15dp"
android:text="@string/thursday"
android:textColor="#000000" />
<TextView
android:id="@+id/fri"
android:layout_weight="1"
android:gravity="center"
android:paddingRight="35dp"
android:text="@string/friday"
android:textColor="#000000" />
</TableRow>
<TableRow>
<ImageView
android:id="@+id/last_week"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_weight="0.5"
android:background="@drawable/calender_bg"
android:paddingLeft="5dp"
android:paddingRight="15dp"
android:src="@drawable/prevb" >
</ImageView>
<Button
android:id="@+id/e01"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_weight="1"
android:background="@drawable/calendar_button_selector"
android:paddingRight="2dp"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#D9DBD7" >
</Button>
<Button
android:id="@+id/e02"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_weight="1"
android:background="@drawable/calendar_button_selector"
android:paddingRight="2dp"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#D9DBD7" >
</Button>
<Button
android:id="@+id/e03"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_weight="1"
android:background="@drawable/calendar_button_selector"
android:paddingRight="2dp"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#D9DBD7" >
</Button>
<Button
android:id="@+id/e04"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_weight="1"
android:background="@drawable/calendar_button_selector"
android:paddingRight="2dp"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#D9DBD7" >
</Button>
<Button
android:id="@+id/e05"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_weight="1"
android:background="@drawable/calendar_button_selector"
android:paddingRight="2dp"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#D9DBD7" >
</Button>
<ImageView
android:id="@+id/next_week"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_weight="0.5"
android:background="@drawable/calender_bg"
android:paddingLeft="15dp"
android:paddingRight="5dp"
android:src="@drawable/nextb" >
</ImageView>
</TableRow>
</TableLayout>
</LinearLayout>
</LinearLayout>