Note that there are some explanatory texts on larger screens.

plurals
  1. POTwoWay GridView library doesn't work properly. (Horizontal GridView)
    primarykey
    data
    text
    <p>I was trying to achieve the following task: Setting an horizontal GridView of images instead of the normal vertical GridView.<br> I found out that most StackOverflow answers were targetting this library:<br> <a href="https://github.com/jess-anders/two-way-gridview" rel="nofollow noreferrer">https://github.com/jess-anders/two-way-gridview</a></p> <p>I first ran the sample project and it resulted in the following:</p> <p><img src="https://i.stack.imgur.com/bwYj7.png" alt="Screen Orientation - Vertical"></p> <p><img src="https://i.stack.imgur.com/w58IH.png" alt="Screen Orientation - Horizontal"></p> <p>Here's the xml File of the TwoWayGridView layout:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;com.jess.ui.TwoWayGridView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:background="#E8E8E8" android:id="@+id/gridview" android:layout_width="fill_parent" android:layout_height="fill_parent" app:cacheColorHint="#E8E8E8" app:columnWidth="80dp" app:rowHeight="80dp" app:numColumns="auto_fit" app:numRows="auto_fit" app:verticalSpacing="16dp" app:horizontalSpacing="16dp" app:stretchMode="spacingWidthUniform" app:scrollDirectionPortrait="vertical" app:scrollDirectionLandscape="horizontal" app:gravity="center"/&gt; </code></pre> <p>I also tried to link this library into my project, but the results are the same. Each image takes the whole row and the scrolling is vertical instead of horizontal.</p> <p>What could be the reason for that problem? (<strong>Note</strong>: I haven't changed anything in the sample project). </p> <p><strong>EDIT:</strong> Here's a ScreenShot when importing the project:</p> <p><img src="https://i.stack.imgur.com/K3oUa.jpg" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload