Giter Site home page Giter Site logo

double-axis-scrollview's Introduction

Scroll view that can be scrolled in two axis at the same time

Installation

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
dependencies {
    implementation 'com.github.gbksoft:double-axis-scrollview:v1.0.0'
}

How to use

What is the best way to get horizontal and vertical scrolling? You should get rid of the fact that scrollview can host only one direct child with wrap_content to deal with width, height and vertical orientation. You simply wrap the children inside another LinearLayout. Two directional scroll may easily be an original addition to some design projects.

<?xml version="1.0" encoding="utf-8"?>
<com.gbksoft.library.DoubleSideScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:contentDescription="@string/sample_car_image"
        android:src="@drawable/test" />

</com.gbksoft.library.DoubleSideScrollView>

What is the best way to get horizontal and vertical scrolling? You should get rid of the fact that scrollview can host only one direct child with wrap_content to deal with width, height and vertical orientation. You simply wrap the children inside another LinearLayout. Two directional scroll may easily be an original addition to some design projects.

I first considered making two directional scroll view when my designer partner was showing me a lot of pictures. Now, they contained a lot of details and so he zoomed them and moved the cursor to exhibit all the details. And I thought to myself “why not make X and Y scroll” ? So I started coding to make two-Dimension Scrollviews on Android possible. This library is a good example of why scrolling matters and how it affects design.

This android DoubleSideScrollView is perfect for dealing with huge pictures that require attentive and detailed look. To scroll both horizontally & vertically at the same time is especially convenient when working with a lot of high resolution pics that need a detailed check. Here’s how to make scrollview horizontal and vertical in android.

Let us know

This scrollable view android adjustment is not our only original decision. Contact us by email [email protected] to find out more about our projects! Share your feedback and tell us about yourself.

double-axis-scrollview's People

Contributors

annedomini avatar oxxxyaction avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.