하나 개의보기를 교체합니다. 아무런 문제 - 이미지안드로이드 : <p></p>가의 세부 사항에 깊은 가자 클릭 교체 (숨기기) 버튼에 의해 서로 하나 개의보기 : 나는 100 개 이미지로 구성 ViewPager를 사용 을 내가 일반적으로 필요한 다른
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="1dip"
android:background="#ffffff">
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
/>
</RelativeLayout>
그것은 작품의 레이아웃
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:background="#ffffff" >
</android.support.v4.view.ViewPager>
<ImageButton
android:id="@+id/imagePlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imageRight"
android:layout_alignTop="@+id/imageList"
android:src="@drawable/list" />
</RelativeLayout>
ViewPager
의레이아웃. 하지만 뷰 페이지에 단추를 추가해야하며 뷰 페이지에서 이미지를 두드린 후 gif로 변경해야합니다. gif 미리보기와 onclick 재생 후 - gif가 재생되기 시작했습니다. GIF를위한
사용자 정의 레이아웃 :이
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageList"
android:layout_marginRight="28dp"
android:layout_toLeftOf="@+id/imageRight" >
<com.basv.gifmoviewview.widget.GifMovieView
android:id="@+id/gif1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
를 해결하는 방법? 버튼을 누른 후 다른 활동을 여는 것이 꽤 간단하지만 문제는 동일한 gif로 재생하는 것입니다.
아이디어가 있으십니까?
답장을 보내 주셔서 감사합니다. 휴대 전화의 메모리 사용에 가장 적합한 해결책은 아니지만 문제 해결을 위해 좋은 것으로 들립니다. – tadvas
편집 된 답변보기 –