이미지 업로드
283
hi
작성한 질문수 1
0

게시글 작성 xml 을 동일하게 따라했는데도 이미지를 업로드 하면 이미지와 content 사이에 마진이 생깁니다.
<?xml version="1.0" encoding="utf-8"?>
<layout>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".BoardWriteActivity"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp">
<TextView
android:text="글쓰기 페이지"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="@color/black"
android:gravity="center"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="#000000"/>
<EditText
android:id="@+id/titleView"
android:layout_margin="20dp"
android:layout_width="match_parent"
android:background="@android:color/transparent"
android:hint="제목을 입력해주세요"
android:layout_height="60dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="#000000"/>
<EditText
android:id="@+id/contentView"
android:layout_margin="20dp"
android:layout_width="match_parent"
android:hint="내용을 입력해주세요"
android:background="@android:color/transparent"
android:layout_height="60dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="#000000"/>
<ImageView
android:id="@+id/contentImage"
android:src="@drawable/plusbtn"
android:layout_marginTop="20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/textUploadBtn"
android:text="입력"
android:layout_width="match_parent"
android:background="@drawable/custom_edittext"
android:layout_marginTop="50dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_height="wrap_content"/>
</LinearLayout>
</ScrollView>
</LinearLayout>
</layout>
답변 1
이미지가 기본이미지인지 확인
0
132
1
NavController error 발생
0
140
1
fragment 생성하고 메인에서 불러왔는데 안뜹니다.
0
140
2
67강 댓글
0
98
2
7강 데이터바인딩 에러
0
113
2
Firebase 스토리지 유료화 문제
1
295
2
게시글 이미지가 파이어베이스에 저장되지 않습니다.
0
180
2
AVD 갤러리에 이미지 저장 안되는 문제
0
240
2
이미지 받아오는 방법?
0
203
2
회원탈퇴 기능을 추가하려고 합니다.
0
186
2
상태바 질문 드립니다.
0
110
1
섹션2 인트로 페이지 꾸미기 질문 드립니다.
0
109
1
게시판 글을 길게 쓸경우
0
123
2
로그인 로그아웃
0
177
2
갤럭시 연결시 게시판에 업로드한 사진이 보이지 않아요.
0
206
2
웹뷰 AVD 실행안됨
0
191
1
자막켜기가 안되요 ㅜ.ㅜ
1
185
1
리사이클러뷰, 그리드레이아웃 오류
0
185
2
리사이클러뷰 오류 해결 방법이 궁금합니다.
0
194
1
firebase 스마트폰으로 연결이 안되는데 원인이 있을까요
0
259
2
안드로이드 스튜디오 게시글 이미지 업로드 유무
0
217
1
firebase 설정 오류
0
304
2
홈 화면 커뮤니티
0
178
1
게시판 글 읽기
0
239
2






