kandi background
Explore Kits

two-way-gridview | Android GridView that can be configured to scroll | RecyclerView library

 by   jess-anders Java Version: Current License: No License

 by   jess-anders Java Version: Current License: No License

Download this library from

kandi X-RAY | two-way-gridview Summary

two-way-gridview is a Java library typically used in User Interface, RecyclerView applications. two-way-gridview has no bugs, it has no vulnerabilities and it has low support. However two-way-gridview build file is not available. You can download it from GitHub.
An Android GridView that can be configured to scroll horizontally or vertically. I should have posted this over a year and a half ago, but never got around to it. I needed a grid view that in portrait would scroll vertically, but in landscape, would scroll horizontally. I thought I could try hacking up the Gallery, but that never works out well, and if GridView could really be configured to scroll any direction, it would just be so much easier. So I built it one weekend. Lots of left, right, top, bottom changes, but the end result is a really useful UI widget. Feel free to use it in your apps, according to the Apache 2.0 license. Also feel free to fork it and improve it. You could fairly easily create a horizontal listview by extending TwoWayAbsListView.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • two-way-gridview has a low active ecosystem.
  • It has 655 star(s) with 266 fork(s). There are 52 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 30 open issues and 8 have been closed. On average issues are closed in 1 days. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of two-way-gridview is current.
two-way-gridview Support
Best in #RecyclerView
Average in #RecyclerView
two-way-gridview Support
Best in #RecyclerView
Average in #RecyclerView

quality kandi Quality

  • two-way-gridview has 0 bugs and 0 code smells.
two-way-gridview Quality
Best in #RecyclerView
Average in #RecyclerView
two-way-gridview Quality
Best in #RecyclerView
Average in #RecyclerView

securitySecurity

  • two-way-gridview has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • two-way-gridview code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
two-way-gridview Security
Best in #RecyclerView
Average in #RecyclerView
two-way-gridview Security
Best in #RecyclerView
Average in #RecyclerView

license License

  • two-way-gridview does not have a standard license declared.
  • Check the repository for any license declaration and review the terms closely.
  • Without a license, all rights are reserved, and you cannot use the library in your applications.
two-way-gridview License
Best in #RecyclerView
Average in #RecyclerView
two-way-gridview License
Best in #RecyclerView
Average in #RecyclerView

buildReuse

  • two-way-gridview releases are not available. You will need to build from source code and install.
  • two-way-gridview has no build file. You will be need to create the build yourself to build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • two-way-gridview saves you 3156 person hours of effort in developing the same functionality from scratch.
  • It has 6791 lines of code, 412 functions and 16 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
two-way-gridview Reuse
Best in #RecyclerView
Average in #RecyclerView
two-way-gridview Reuse
Best in #RecyclerView
Average in #RecyclerView
Top functions reviewed by kandi - BETA

kandi has reviewed two-way-gridview and discovered the below as its top functions. This is intended to give you an instant insight into two-way-gridview implemented functionality, and help decide if they suit your requirements.

  • Called when data has been changed .
  • Handle a common key event .
  • Returns the position of the item in the adapter .
  • Updates the visible indicators depending on the view .
  • Remember the state of the view .
  • Sets the adapter to use .
  • Draws a thumb .
  • Invalidate the drawable .
  • Get the thumbnail for the specified URI .
  • Initializes the grid .

two-way-gridview Key Features

An Android GridView that can be configured to scroll horizontally or vertically

Usage

copy iconCopydownload iconDownload
<?xml version="1.0" encoding="utf-8"?>
<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"/>

Horizontal Gridview with a set number of rows

copy iconCopydownload iconDownload
GridLayoutManager gridLayoutManager = new GridLayoutManager(this, 2, GridLayoutManager.HORIZONTAL, false);
RecyclerView recyclerView = findViewById(R.id.DicesGridView);
recyclerView.setLayoutManager(gridLayoutManager);
DicesElementAdapter adapter = new DicesElementAdapter(this, DiceList, Result, LogsList, gson, sharedPreference);
recyclerView.setAdapter(adapter);

Community Discussions

Trending Discussions on two-way-gridview
  • Horizontal Gridview with a set number of rows
Trending Discussions on two-way-gridview

QUESTION

Horizontal Gridview with a set number of rows

Asked 2018-Apr-12 at 14:13

I read a post (How to make grid-view horizontally scrollable in android) and I tried everything the responses say, but I couldn't manage to make a horizontal gridview with 3 rows.

The closest I could get was using this: https://developer.android.com/reference/android/support/v17/leanback/widget/HorizontalGridView.html , and it has a big bug in which you can't set the number of rows with setNumRows(int) since it makes the horizontalgridview infinitly scrollable vertically.

I also considered the option of rotating a normal gridview 270 degrees but it gives me a lot of problems since I want an all margin of 10dp in the gridview.

And I also tried the TwoWay Gridview of github (https://github.com/jess-anders/two-way-gridview) but it didn't work either.

Same with this video tutorial: https://www.youtube.com/watch?v=94rCjYxvzEE

Please help me.

ANSWER

Answered 2018-Apr-12 at 14:13

I ended up doing it by using a recycle view and setting a gridlayoutmanager to it.

GridLayoutManager gridLayoutManager = new GridLayoutManager(this, 2, GridLayoutManager.HORIZONTAL, false);
RecyclerView recyclerView = findViewById(R.id.DicesGridView);
recyclerView.setLayoutManager(gridLayoutManager);
DicesElementAdapter adapter = new DicesElementAdapter(this, DiceList, Result, LogsList, gson, sharedPreference);
recyclerView.setAdapter(adapter);

Source https://stackoverflow.com/questions/49239776

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install two-way-gridview

You can download it from GitHub.
You can use two-way-gridview like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the two-way-gridview component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.