object(mysqli_result)#13 (5) { ["current_field"]=> int(0) ["field_count"]=> int(25) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) } Android ConstraintLayout - 將一個視圖放在另一個視圖之上 - 程序員論壇 - Powered by Discuz!

程序員論壇

標題: Android ConstraintLayout - 將一個視圖放在另一個視圖之上 [打印本頁]

作者: GreenCup    時間: 2019-12-5 18:07
標題: Android ConstraintLayout - 將一個視圖放在另一個視圖之上
Android ConstraintLayout - Put one view on top of another view

Android ConstraintLayout - 將一個視圖放在另一個視圖之上

最上的在元件加入以下程式碼 :
  1. android:translationZ="2dp"
複製代碼
若還是不是最上層的, 在其它的元件加入比最上層少的數值 :
  1. android:translationZ="1dp"
複製代碼
元件由程式碼建立用以下來分層 :
  1. editText.setTranslationZ(1);
複製代碼





歡迎光臨 程序員論壇 (http://program.thesmartfire.com/) Powered by Discuz! X2.5