-
[Android] Coach MarkAndroid 2019. 8. 2. 13:11
단말마다 width, height를 알기 어렵기때문에,
Activity 자체를 ConstraintLayout로 짠 후
ConstraintLayout를 제일 하단에 하나 더 얹어 해결하도록 한다.
나는 80%의 dimmed를 주었다 (#cc000000)
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <!-- Content Area --> <android.support.constraint.ConstraintLayout android:id="@+id/mainContents" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent"> </android.support.constraint.ConstraintLayout> <!-- Coach Mark Area--> <android.support.constraint.ConstraintLayout android:id="@+id/coachMark" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#cc000000"> </android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>
'Android' 카테고리의 다른 글
[Android] Zxing Library Code Scanner Remove Laser Line (0) 2019.08.12 [Android] dotted line 점선 view 만들기 (세로/가로) (0) 2019.08.02 [Android] Deep Link vs App Link (0) 2019.05.06 [Android] Kotlin 2-dimensional array of object (0) 2019.04.30 [Android] ViewFlipper startFlipping() not working when Lock Screen exists on the phone. (0) 2019.04.24