經過這段時間擺弄的時間超過了我不知道承認的情況,文本對齊如何在TextView中工作?Android TextView剔除文字
很顯然,我試圖讓「N」垂直中心本身在TextView的。
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/titleN"
android:id="@+id/textView"
android:height="114dp"
android:textSize="120dp"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignBottom="@+id/textView3"
android:layout_gravity="center"
android:gravity="center"/>
當我刪除的高度,它看起來像:
請張貼顯示您所做的代碼。我們不能告訴你如何解決這個問題,而不知道你在第一時間做了什麼。 –
是因爲'height'小於'textSize'?你根本不需要這個值。 – tallpaul
我嘗試了很多不同的值,試圖讓它與它旁邊的TextViews排隊。我將使用任何值工作... – user1561108