본문 바로가기

개발일기

23.08.18 부트캠프 39일차 TIL

팀 프로젝트 

 

 

편집 페이지만 담당 했지만 제대로 하지 못하였다.

 

 

도망가고 싶었는데 못 도망가겠다. 팀원분들이 너무 열심히 해서

 

 

못 하더라도 따라 가고 싶었다.

 

 

리니어 레이아웃으로 둘러싼 코드형태

 

 

<LinearLayout
        android:id="@+id/linearLayout"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:gravity="center_vertical"
        android:padding="10dp"
        app:layout_constraintBottom_toTopOf="@id/view_line"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <ImageButton
            android:id="@+id/btn_back"
            android:layout_width="30dp"
            android:layout_height="match_parent"
            android:background="@drawable/ic_back_pressed_selector"
            android:scaleType="centerCrop" />

    </LinearLayout>

    <View //여기와 충돌이 일어남 주석삭제 요망!!
        android:id="@+id/view_line"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@color/light_gray"
        app:layout_constraintBottom_toTopOf="@id/scrollView"
        app:layout_constraintTop_toBottomOf="@id/linearLayout" />

    <ScrollView
        android:id="@+id/scrollView"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/view_line">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:gravity="center_horizontal" //center로 되면 이미지가 위에 화살표버튼 view와 같이 겹쳐진다. 주석삭제 요망!!
            android:orientation="vertical"
            android:paddingHorizontal="30dp">

            <ImageView
                android:id="@+id/image_logo"
                android:layout_width="250dp"
                android:layout_height="250dp"
                android:layout_gravity="center"
                android:layout_marginBottom="30dp"
                android:src="@drawable/logo_philogram" />

            <TextView
                android:id="@+id/txt_nickname"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="left"
                android:padding="5dp"
                android:text="@string/edit_nickname_txt"
                android:textSize="15sp" />

            <EditText
                android:id="@+id/edt_nickname"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/edge"
                android:padding="10dp"
                android:textSize="15sp" />

            <TextView
                android:id="@+id/txt_nation"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="20dp"
                android:gravity="left"
                android:padding="5dp"
                android:text="@string/edit_nation_txt"
                android:textSize="15sp" />

            <EditText
                android:id="@+id/edt_nation"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/edge"
                android:padding="10dp"
                android:textSize="15sp" />

            <TextView
                android:id="@+id/txt_intro"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="20dp"
                android:gravity="left"
                android:padding="5dp"
                android:text="@string/edit_intro_txt"
                android:textSize="15sp" />

            <EditText
                android:id="@+id/edt_intro"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/edge"
                android:gravity="start"
                android:lines="4"
                android:padding="10dp"
                android:textSize="15sp" />

            <androidx.appcompat.widget.AppCompatButton
                android:id="@+id/btn_save"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="end"
                android:layout_marginTop="30dp"
                android:layout_marginBottom="10dp"
                android:background="@drawable/btn_selector"
                android:padding="12dp"
                android:text="@string/edit_save_btn"
                android:textColor="@color/white"
                android:textSize="15sp" />
        </LinearLayout>
    </ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

 

일주일동안 한개 페이지 구성도 제대로 하지 못하여서 팀원분들께 죄송하다.

 

발표에 도움 되는 생각 해야 겠다.