Posts
Q&A
recyclerview ์ onBindViewHolder ์์์ overridePendingTransition ๋ฅผ ์ ์ฉํ ์ ์๋์ฉ?
๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค. ํ์ธํด๋ณธ๊ฒฐ๊ณผ ์์ ์์ค๋ ์ด์์ด ์์์ผ๋ context ๋๊ธฐ๋ ๋ฐฉ๋ฒ์ด ์๋ชป๋๊ฒ์ผ๋ก ํ์ธํ์์ต๋๋ค;; ๊ฐ์ฌํฉ๋๋นใ ใ
- 0
- 2
- 378
Q&A
์๋ ค์ฃผ์ ๋ฐ๋ก 2์ฐจ์ recycler๋ทฐ๋ฅผ ์ด์ฉํด ๊ตฌํํ๋๋ฐ.. ๋ ๋ค๋ฅธ ๋ฌธ์ ๊ฐ ์๊ธฐ๋ค์ ใ ใ ;
๊ฒ์๊ธ์ด ๋๋ฌด ๊ธธ์ด์ ธ์.. ์๋ ๋งํฌ๋ก ๋ฌธ์๋๋ ธ์ต๋๋ค ใ ; https://www.inflearn.com/dwquestion/๋ฆฌ์ฌ์ดํด๋ฌ๋ทฐ๋ฅผ-2์ฐจ๋ก-๊ตฌํ์-๋ฌธ์ ์ ์ ๋๋ค-ใ ใ /
- 0
- 2
- 377
Q&A
๋ง๋ก ์ค๋ช ๋๋ฆฌ๊ธฐ๊ฐ ์ด๋ ค์์... ๋์์์ผ๋ก ๋๊ธ ๋จ๊น๋๋ค ใ ใ ;
๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค ใ ; ๊ฒฐ๊ตญ์ ๋ฆฌ์ฌ์ดํด๋ฌ๋ก ํ๋๊ฑฐ๋ค์ ใ ใ ;๊ธฐ์ด๋ง ๊ฐ์ง๊ณ ํ๋ค๋ณด๋...์ด๊ฒ ์ ์์ผ๋ก ๋ ์ด์์ ๊ตฌ์ฑํ๋๊ฒ ๋ง๋๊ฑด์ง๋ ๋ชจ๋ฅด๊ฒ ๊ณ ;; ์ ๋ง ๋ํด ํ๋ค์ใ ใ ์ฌ์ค ๋ง์์ฃผ์ "์ฌ์ดํด๋ ค๋ทฐ๋ฅผ 2์ฐจ์์ผ๋ก ๋ง๋ค์ด์ ํน์ ์์ดํ ํ์๋ค๊ฐ horizontal ๋ฆฌ์ฌ์ดํด๋ฌ๋ทฐ๋ฅผ ๋ฃ์ด์ฃผ์ด์"๋ฐ๋ก๋ ์ด๋ฏธ ํด๋ณด์์ต๋๋ค ใ ใ โ ๊ทธ๋ฐ๋ฐ ์ ๋ ์ด๋ ๊ฒ ํ๋๊ฒ ๋ง๋๊ฐ? ์ด๊ฒ ๋ง๋๋ฐฉ๋ฒ์ธ๊ฐ? ๋ผ๋ ์๋ฌธ์ด ์๊พธ ๋ค๊ณ ํด๊ฒฐ๋์ง ์์โ ์ ๊ธ์ ๋จ๊ฒผ์๋๋ฐ... ์๋ฌธ์ด ํด์๋์๋ค์ ใ ใ ;์ ๋ง ๊ฐ์ฌํฉ๋๋ค. ใ ใ ์ ๊ฐ ์ง๋ฌธ ๋๋ฌด ๋ง์ด ํด์ ์ฃ์กํ ๋ฐ๋ฆ์ ๋๋ค; ์ง๋ฌธ์ํ๊ณ ํผ์ ํด๊ฒฐํด ๋ณด๋ ค๊ณ 3์ผ๊ฐ ์ด๊ฒ๋ง ํ๋๋ฐ..๋ญ๊ฐ ์ ๋ต์ธ์ง ๋ชฐ๋ผ์... ์ด๋ฌ์ง๋ ๋ชปํ๊ณ ์ ๋ฌ์ง๋ ๋ชปํ๋๋ฐ ใ ใ ; ๊ฐ์ฌํฉ๋๋คใ ;๋ค์๋ฒ์๋ ์ด๊ธ ๋ฟ๋ง ์๋๋ผ ์ค๊ธ(์ค๋ฌด, ๋ง์ด ์ฐ์ด๋ ๋ถ๋ถ์ ์ฃผ ใ ใ ๋๋ ๋ฐฉํฅ์ฑ?) ๊ฐ์ข๋ ๊ผญ ๋ถํ๋๋ฆฌ๊ฒ ์ต๋๋ค.
- 0
- 7
- 591
Q&A
๋ง๋ก ์ค๋ช ๋๋ฆฌ๊ธฐ๊ฐ ์ด๋ ค์์... ๋์์์ผ๋ก ๋๊ธ ๋จ๊น๋๋ค ใ ใ ;
๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค ใ ; ๊ฒฐ๊ตญ์ ๋ฆฌ์ฌ์ดํด๋ฌ๋ก ํ๋๊ฑฐ๋ค์ ใ ใ ;๊ธฐ์ด๋ง ๊ฐ์ง๊ณ ํ๋ค๋ณด๋...์ด๊ฒ ์ ์์ผ๋ก ๋ ์ด์์ ๊ตฌ์ฑํ๋๊ฒ ๋ง๋๊ฑด์ง๋ ๋ชจ๋ฅด๊ฒ ๊ณ ;; ์ ๋ง ๋ํด ํ๋ค์ใ ใ ์ฌ์ค ๋ง์์ฃผ์ "์ฌ์ดํด๋ ค๋ทฐ๋ฅผ 2์ฐจ์์ผ๋ก ๋ง๋ค์ด์ ํน์ ์์ดํ ํ์๋ค๊ฐ horizontal ๋ฆฌ์ฌ์ดํด๋ฌ๋ทฐ๋ฅผ ๋ฃ์ด์ฃผ์ด์"๋ฐ๋ก๋ ์ด๋ฏธ ํด๋ณด์์ต๋๋ค ใ ใ โ ๊ทธ๋ฐ๋ฐ ์ ๋ ์ด๋ ๊ฒ ํ๋๊ฒ ๋ง๋๊ฐ? ์ด๊ฒ ๋ง๋๋ฐฉ๋ฒ์ธ๊ฐ? ๋ผ๋ ์๋ฌธ์ด ์๊พธ ๋ค๊ณ ํด๊ฒฐ๋์ง ์์โ ์ ๊ธ์ ๋จ๊ฒผ์๋๋ฐ... ์๋ฌธ์ด ํด์๋์๋ค์ ใ ใ ;์ ๋ง ๊ฐ์ฌํฉ๋๋ค. ใ ใ ์ ๊ฐ ์ง๋ฌธ ๋๋ฌด ๋ง์ด ํด์ ์ฃ์กํ ๋ฐ๋ฆ์ ๋๋ค; ์ง๋ฌธ์ํ๊ณ ํผ์ ํด๊ฒฐํด ๋ณด๋ ค๊ณ 3์ผ๊ฐ ์ด๊ฒ๋ง ํ๋๋ฐ..๋ญ๊ฐ ์ ๋ต์ธ์ง ๋ชฐ๋ผ์... ์ด๋ฌ์ง๋ ๋ชปํ๊ณ ์ ๋ฌ์ง๋ ๋ชปํ๋๋ฐ ใ ใ ; ๊ฐ์ฌํฉ๋๋คใ ;๋ค์๋ฒ์๋ ์ด๊ธ ๋ฟ๋ง ์๋๋ผ ์ค๊ธ(์ค๋ฌด, ๋ง์ด ์ฐ์ด๋ ๋ถ๋ถ์ ์ฃผ ใ ใ ๋๋ ๋ฐฉํฅ์ฑ?) ๊ฐ์ข๋ ๊ผญ ๋ถํ๋๋ฆฌ๊ฒ ์ต๋๋ค.
- 0
- 7
- 591
Q&A
๋ง๋ก ์ค๋ช ๋๋ฆฌ๊ธฐ๊ฐ ์ด๋ ค์์... ๋์์์ผ๋ก ๋๊ธ ๋จ๊น๋๋ค ใ ใ ;
๊ทธ ์์ ๋ค์ viewpager(๋ฐฐ๋)์ recycler๋ทฐ๊ฐ ์กด์ฌํฉ๋๋ค; ใ http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"xmlns:app="http://schemas.android.com/apk/res-auto"android:background="#ccc"android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent"> android:layout_width="match_parent" android:layout_height="wrap_content"> android:id="@+id/main1_viewpager" android:layout_width="match_parent" android:layout_height="200dp"> android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="160dp" android:gravity="right" android:paddingRight="20dp" android:orientation="horizontal"> android:text="1" android:id="@+id/now_page" android:layout_width="wrap_content" android:layout_height="wrap_content" /> android:text="/" android:layout_width="wrap_content" android:layout_height="wrap_content" /> android:text="5" android:id="@+id/total_page" android:layout_width="wrap_content" android:layout_height="wrap_content" /> android:id="@+id/item_list" android:layout_width="match_parent" android:layout_height="wrap_content" app:layoutManager="android.support.v7.widget.LinearLayoutManager" >
- 0
- 7
- 591
Q&A
๋ง๋ก ์ค๋ช ๋๋ฆฌ๊ธฐ๊ฐ ์ด๋ ค์์... ๋์์์ผ๋ก ๋๊ธ ๋จ๊น๋๋ค ใ ใ ;
ํ๋ ์ ๋ ์ด์์ ์์ ๋ค์ ํญ๋ทฐ๊ฐ ์กด์ฌํ๊ตฌ์...http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"xmlns:app="http://schemas.android.com/apk/res-auto"tools:context=".fragment.HomeFragment"> android:id="@+id/main_tablayout" android:layout_width="match_parent" app:tabMode="scrollable" android:layout_height="50dp"> android:id="@+id/main_viewpager" android:layout_width="match_parent" android:layout_height="800dp">
- 0
- 7
- 591
Q&A
๋ง๋ก ์ค๋ช ๋๋ฆฌ๊ธฐ๊ฐ ์ด๋ ค์์... ๋์์์ผ๋ก ๋๊ธ ๋จ๊น๋๋ค ใ ใ ;
์ฐธ๊ณ ๋ก ๋์์ ์ด๋ฐ์ ๋ณด์๋ฉด ๋ฐ๋ก ๋๋ค๊ฐ ์ค๋ฐ๋ถ ์ดํ์ ์ ์ฒด๊ฐ ์คํฌ๋กค์ด ๋๋ ์ด์ ๋ (์์ ๋ทฐํ์ด์ ธ)์์ ํ๋ฉด์ ๋์ด ๋ด๋ ธ๊ธฐ ๋๋ฌธ์ ๊ฐ๋ฅํ์ต๋๋ค;ใ ใ ; ์ฐธ๊ณ ๋ก ๋ฉ์ธ์ํฐ๋นํฐ ๋ ์ด์์์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค. 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=".MainActivity" android:background="#acac">
- 0
- 7
- 591
Q&A
๋ฐ์ดํฐ์ฝ๊ธฐ(๋๊ธฐ)๊ฐ์ข์ ๋ฒ๊ทธ๊ฐ ์๋๊ฒ ๊ฐ์ต๋๋ค.
๋ต๋ณ์ฃผ์ ๋ฐ๋กrealTimeKeyArrayList.removeAt(position)break๋ฅผ ์ถ๊ฐํ๋๊น ๋ฉ๋๋ค~ใ ;break ๊ผญ ์จ์ค์ผ ๋๋ ๋ด ๋๋ค... break ์์จ์ฃผ๋ฉด ๋ ๋ค๋ฅธ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค์^^ใ ใ ;
- 0
- 2
- 161