🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

com.picoscott:swipelayout

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.picoscott:swipelayout

A swipe layout

Source
mavenMaven
Version
0.1.2
Version published
Maintainers
1
Source

SwipeLayout

Maven Central

Installation

Usage

The first one is SwipeLayout that extends the FrameLayout. You can specify the attributes from a layout XML like:

<com.scott.swipe.SwipeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="150dp"
    app:swipeOrientation="horizontal"
    app:swipeStatusPosition="0.5">

    <FrameLayout
        android:layout_width="200dp"
        android:layout_height="100dp"
        android:background="#aaa"
        app:layout_itemType="start_item"/>
        
    <FrameLayout
        android:id="@+id/end_item"
        android:layout_width="200dp"
        android:layout_height="50dp"
        android:layout_gravity="end"
        android:background="#faf"
        app:layout_itemType="end_item"/>

    <FrameLayout
        android:id="@+id/swipe_item"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#afa"
        app:layout_itemType="swipe_item"/>

</com.scott.swipe.SwipeLayout>

Attribute for the SwipeLayout

  • swipeOrientation

    • SwipeOrientation control swipe direction. Possible values are:
      • horizontal (default)
      • vertical
  • swipeHandler

  • swipeStatusPosition

    • The attribute is create to swipeHandler.
      • float
      • dimen

Attributes for the children of a SwipeLayout

  • layout_itemType
    • These indicate the type of child view
      • none (default)
      • swipe_view
      • start_menu
      • end_menu

License

Please see LICENSE

FAQs

Package last updated on 28 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts