Android 레이아웃에서 전체 화면 스크롤 가능한 갤러리를 만드는 방법은 무엇입니까?
-
14-12-2019 - |
문제
이것은 코드입니다 :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Gallery
android:id="@+id/gallery"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:spacing="5dp"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />
</LinearLayout>
.
전체 화면 갤러리를 만들고 싶습니다 ...
해결책
@android : style / theme.black.notitlebar.fullscreen 전체 화면보기를 얻으려면 AndroidManifest.xml 파일의 활동 선언으로 설정하십시오.
예 :
<activity android:name=".YourActivity"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />
. 제휴하지 않습니다 StackOverflow