-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat] 식당 정보 화면 NestedScrollView로 감싸기 #346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
1f9cf13
3f8801f
5d3ce90
5f714bb
5a80ea8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,151 +8,157 @@ | |||||||||||||||||||||||||
| android:padding="16dp" | ||||||||||||||||||||||||||
| app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <LinearLayout | ||||||||||||||||||||||||||
| <androidx.core.widget.NestedScrollView | ||||||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||||||
| android:layout_height="match_parent" | ||||||||||||||||||||||||||
| android:layout_marginTop="32dp" | ||||||||||||||||||||||||||
| android:layout_marginBottom="70dp" | ||||||||||||||||||||||||||
| android:gravity="center" | ||||||||||||||||||||||||||
| android:orientation="vertical" | ||||||||||||||||||||||||||
| app:layout_constraintStart_toStartOf="parent" | ||||||||||||||||||||||||||
| app:layout_constraintTop_toTopOf="parent" | ||||||||||||||||||||||||||
| tools:ignore="MissingConstraints"> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| android:layout_height="wrap_content" | ||||||||||||||||||||||||||
| android:fillViewport="true"> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <LinearLayout | ||||||||||||||||||||||||||
| android:orientation="vertical" | ||||||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||||||
| android:layout_height="wrap_content"> | ||||||||||||||||||||||||||
| android:layout_height="match_parent" | ||||||||||||||||||||||||||
| android:layout_marginBottom="70dp" | ||||||||||||||||||||||||||
| android:gravity="center" | ||||||||||||||||||||||||||
| android:orientation="vertical" | ||||||||||||||||||||||||||
| app:layout_constraintStart_toStartOf="parent" | ||||||||||||||||||||||||||
| app:layout_constraintTop_toTopOf="parent" | ||||||||||||||||||||||||||
| tools:ignore="MissingConstraints"> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <TextView | ||||||||||||||||||||||||||
| android:id="@+id/tv_name" | ||||||||||||||||||||||||||
| style="@style/H1" | ||||||||||||||||||||||||||
| <LinearLayout | ||||||||||||||||||||||||||
| android:orientation="vertical" | ||||||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||||||
| android:layout_height="wrap_content" | ||||||||||||||||||||||||||
| android:gravity="center" | ||||||||||||||||||||||||||
| android:text="학생식당" | ||||||||||||||||||||||||||
| android:textColor="@color/black" /> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <View | ||||||||||||||||||||||||||
| android:layout_height="wrap_content"> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <View | ||||||||||||||||||||||||||
| android:id="@+id/drag_handle" | ||||||||||||||||||||||||||
| android:layout_width="30dp" | ||||||||||||||||||||||||||
| android:layout_height="2dp" | ||||||||||||||||||||||||||
| android:layout_gravity="center" | ||||||||||||||||||||||||||
| android:background="@color/gray400" | ||||||||||||||||||||||||||
| android:contentDescription="@null" /> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <TextView | ||||||||||||||||||||||||||
| android:id="@+id/tv_name" | ||||||||||||||||||||||||||
| style="@style/H1" | ||||||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||||||
| android:layout_height="wrap_content" | ||||||||||||||||||||||||||
| android:gravity="center" | ||||||||||||||||||||||||||
| android:paddingTop="16dp" | ||||||||||||||||||||||||||
| android:textColor="@color/black" | ||||||||||||||||||||||||||
| tools:text="학생식당"/> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <View | ||||||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||||||
| android:layout_height="1dp" | ||||||||||||||||||||||||||
| android:layout_marginTop="24dp" | ||||||||||||||||||||||||||
| android:layout_marginBottom="24dp" | ||||||||||||||||||||||||||
| android:background="@color/gray200" /> | ||||||||||||||||||||||||||
| </LinearLayout> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <LinearLayout | ||||||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||||||
| android:layout_height="1dp" | ||||||||||||||||||||||||||
| android:layout_marginTop="24dp" | ||||||||||||||||||||||||||
| android:layout_marginBottom="24dp" | ||||||||||||||||||||||||||
| android:background="@color/gray200" /> | ||||||||||||||||||||||||||
| </LinearLayout> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <LinearLayout | ||||||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||||||
| android:layout_height="wrap_content" | ||||||||||||||||||||||||||
| android:layout_marginBottom="12dp" | ||||||||||||||||||||||||||
| android:orientation="horizontal" | ||||||||||||||||||||||||||
| android:weightSum="10"> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <TextView | ||||||||||||||||||||||||||
| android:id="@+id/tv_location_info" | ||||||||||||||||||||||||||
| style="@style/Subtitle2" | ||||||||||||||||||||||||||
| android:layout_width="0dp" | ||||||||||||||||||||||||||
| android:layout_height="wrap_content" | ||||||||||||||||||||||||||
| android:layout_weight="3" | ||||||||||||||||||||||||||
| android:text="@string/location" | ||||||||||||||||||||||||||
| android:textColor="@color/black" /> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <TextView | ||||||||||||||||||||||||||
| android:id="@+id/tv_location" | ||||||||||||||||||||||||||
| style="@style/Body3" | ||||||||||||||||||||||||||
| android:layout_width="0dp" | ||||||||||||||||||||||||||
| android:layout_height="wrap_content" | ||||||||||||||||||||||||||
| android:layout_weight="7" | ||||||||||||||||||||||||||
| android:gravity="end" | ||||||||||||||||||||||||||
| android:text="학생회관 3층" | ||||||||||||||||||||||||||
| android:textColor="@color/black" /> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| </LinearLayout> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <!-- 테두리 때문에 카드뷰 씀 --> | ||||||||||||||||||||||||||
| <androidx.cardview.widget.CardView | ||||||||||||||||||||||||||
| android:id="@+id/cv_photo" | ||||||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||||||
| android:layout_height="220dp" | ||||||||||||||||||||||||||
| android:layout_marginTop="6dp" | ||||||||||||||||||||||||||
| app:cardCornerRadius="5dp"> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <ImageView | ||||||||||||||||||||||||||
| android:id="@+id/iv_cafeteria_photo" | ||||||||||||||||||||||||||
| android:layout_marginBottom="12dp" | ||||||||||||||||||||||||||
| android:orientation="horizontal" | ||||||||||||||||||||||||||
| android:weightSum="10"> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <TextView | ||||||||||||||||||||||||||
| android:id="@+id/tv_location_info" | ||||||||||||||||||||||||||
| style="@style/Subtitle2" | ||||||||||||||||||||||||||
| android:layout_width="0dp" | ||||||||||||||||||||||||||
| android:layout_height="wrap_content" | ||||||||||||||||||||||||||
| android:layout_weight="3" | ||||||||||||||||||||||||||
| android:text="@string/location" | ||||||||||||||||||||||||||
| android:textColor="@color/black" /> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <TextView | ||||||||||||||||||||||||||
| android:id="@+id/tv_location" | ||||||||||||||||||||||||||
| style="@style/Body3" | ||||||||||||||||||||||||||
| android:layout_width="0dp" | ||||||||||||||||||||||||||
| android:layout_height="wrap_content" | ||||||||||||||||||||||||||
| android:layout_weight="7" | ||||||||||||||||||||||||||
| android:gravity="end" | ||||||||||||||||||||||||||
| android:text="학생회관 3층" | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| android:textColor="@color/black" /> | ||||||||||||||||||||||||||
| </LinearLayout> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <!-- 테두리 때문에 카드뷰 씀 --> | ||||||||||||||||||||||||||
| <androidx.cardview.widget.CardView | ||||||||||||||||||||||||||
| android:id="@+id/cv_photo" | ||||||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||||||
| android:layout_height="220dp" | ||||||||||||||||||||||||||
| android:layout_marginTop="6dp" | ||||||||||||||||||||||||||
| app:cardCornerRadius="5dp"> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <ImageView | ||||||||||||||||||||||||||
| android:id="@+id/iv_cafeteria_photo" | ||||||||||||||||||||||||||
| android:layout_width="match_parent" | ||||||||||||||||||||||||||
| android:layout_height="match_parent" | ||||||||||||||||||||||||||
| android:scaleType="centerCrop" | ||||||||||||||||||||||||||
| android:src="@drawable/img_dodam" | ||||||||||||||||||||||||||
| app:layout_constraintStart_toStartOf="@+id/iv_profile" | ||||||||||||||||||||||||||
| app:layout_constraintTop_toBottomOf="@+id/tv_review_item_comment" /> | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| android:id="@+id/iv_cafeteria_photo" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:scaleType="centerCrop" | |
| android:src="@drawable/img_dodam" | |
| app:layout_constraintStart_toStartOf="@+id/iv_profile" | |
| app:layout_constraintTop_toBottomOf="@+id/tv_review_item_comment" /> | |
| android:id="@+id/iv_cafeteria_photo" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:scaleType="centerCrop" | |
| android:src="@drawable/img_dodam" /> |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이
LinearLayout의 부모는NestedScrollView이므로ConstraintLayout에서 사용되는app:layout_constraintStart_toStartOf와app:layout_constraintTop_toTopOf속성은 아무런 효과가 없습니다.tools:ignore="MissingConstraints"를 사용하여 경고를 무시하는 대신, 불필요한 속성들을 제거하는 것이 좋습니다.