Tôi gặp vấn đề sau, tôi đã tạo biểu mẫu với thư viện, thư viện thay vì chứa hình ảnh chứa các mục từ một trong các lớp học của tôi, mọi thứ bên trong mỗi mục của thư viện sẽ hiển thị hoàn hảo. Tôi đã gỡ bỏ khoảng cách giữa hình ảnh sử dụng:Không gian thư viện lúc bắt đầu và kết thúc
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Gallery android:id="@+id/galleryid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:spacing="0dip"
android:padding="0dip"
android:layout_weight="1" />
các mục của các thư viện:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="75dip" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content" android:orientation="vertical" android:gravity="center_horizontal" android:background="#ffffff">
<TextView android:id="@+id/frame_number" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="-" android:textSize="12dip" android:textColor="#ffffff" android:background="#000000" android:gravity="center" />
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="horizontal" android:gravity="center_horizontal">
<TextView android:id="@+id/frame_shot1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-" android:textSize="18dip" android:textColor="#000000" />
<TextView android:id="@+id/frame_shot2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-" android:textSize="18dip" android:textColor="#000000" />
</LinearLayout>
<TextView android:id="@+id/frame_total" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="---" android:textSize="38dip" android:textColor="#000000"/>
</LinearLayout>
buuuuuuuuuuuuuuuuut, tôi đã là một vấn đề, có một số không gian trống ở đầu và cuối bộ sưu tập không có mục nào. điều này là bộ sưu tập của tôi có nhiều mục trên đó mà u có thể cuộn theo chiều ngang, nhưng tôi muốn loại bỏ những khoảng trống đó vì vậy điều đầu tiên ở bên trái của thư viện là mục đầu tiên và cuối cùng khi u cuộn ở bên phải là đúng mục.
Sửa 16/8 Tuy nhiên với cùng một vấn đề trở lại trong dự án, ở đây tôi rời khỏi một hình ảnh của chính xác những gì là những gì tôi đang cố gắng để thoát khỏi điều đó là không gian đen ngay từ đầu (cũng là ở cuối thư viện ở phía bên kia)
Bạn có tìm thấy giải pháp cho điều này không? –
xin chào Mina và Ale k bạn có tìm giải pháp cho vấn đề này không? – SRam
Xin chào SRam, Mina và Ale K bạn có tìm giải pháp về vấn đề trên không? – indrajeet