Loading...

Android UI設計距離課題

Temperature: 0 °C

Mark ChangMark Chang
author_tools

layout_marginTop指定該屬性所在控件距離上方的位置空間。

layout_marginBottom指定該屬性所在控件距離下方的位置空間。

layout_marginLeft指定該屬性所在控件距離左邊的位置空間。

layout_marginRight指定該屬性所在控件離距右邊的位置空間。

例如

android:id="@+id/text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/radioGroup"
android:layout_centerHorizontal="true"
android:layout_marginTop="27dp"//距離上方的位置空間
android:layout_marginBottom="27dp"//距離下方的位置空間
android:text="測量你的健康數據"
android:textSize="20sp" />


Android UI設計距離課題
補充如果要讓文字置中使用android:gravity屬性,以下方式
android:gravity="center_horizontal"

以上紀錄
 

https://innstory.com/story-Android_UI設計距離課題-1858
Android

Prev
 centos查看對外開放了那些port的指令

Next
Android_禁止螢幕旋轉 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

PHP如何設定HTTP安全標頭?

PHP如何設定HTTP安全標...

PHP該如何將以下安全標頭添加到網站? XFrameOptions  防止點擊劫持攻擊 XXSSPr...

讓文字左右對齊

讓文字左右對齊

讓文字左右對齊這類的設計案,通常都會出現在平面設計居多。 網頁上很少會遇到客戶會執著於這方面,但不能...

php檢查陣列中大於0的值

php檢查陣列中大於0的值

假設有一個陣列$a $a = array(,,,,,,); 取得大於的數值有幾個 $tempa = ...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format