1. 程式人生 > >Android TextView對齊的小技巧

Android TextView對齊的小技巧

             <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="姓"
                        android:textColor="#6e6e6e"
                        android:textSize="13dp" />
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="姓名"
                        android:visibility="invisible"
                        android:textColor="#6e6e6e"
                        android:textSize="13dp" />
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="名"
                        android:textColor="#6e6e6e"
                        android:textSize="13dp" />