Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.polok.flipview:library

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.polok.flipview:library

If you have a need to have a UI component which will act similar to toggle button or be like a view group with state checked/unchecked this is a right place for you.

  • 1.0.1
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

FlipView

Android custom state View Group - FlipView UI library

License Android Arsenal

ABOUT

If you have a need to have a UI component which will act similar to toggle button or be like a view group with state checked/unchecked this is a right place for you.

image

GRADLE

dependencies {
    compile 'com.github.polok.flipview:library:1.0.1'
}

Customization


   <!-- FlipView front view layout resource -->
   app:flip_view_front_layout="" [format="reference"]

   <!-- FlipView back view layout resource -->
   app:flip_view_back_layout="" [format="reference"]

   <!-- Is FlipView checked or not by default-->
   app:is_checked="" [format="boolean"] (default:false)

   <!-- Is FlipView animated when changing status -->
   app:"show_animations="" [format="boolean"] (default:false)

   <!-- FlipView animation to apply when state goes from "not checked" to "checked" -->
   app:fade_in_animation="" [format="reference"]

   <!-- FlipView animation to apply when state goes from "checked" to "not checked" -->
   app:fade_out_animation="" [format="reference"]

   <!-- FlipView animation duration -->
   app:animation_duration="" [format="integer"] (default:100ms)

USAGE

    <com.github.polok.flipview.FlipView
        android:id="@+id/flip_animation_view_demo"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:descendantFocusability="blocksDescendants"
        app:is_checked="true"
        app:flip_view_front_layout="@layout/flip_text_view_front_layout"
        app:flip_view_back_layout="@layout/flip_text_view_back_layout"
        app:show_animations="false" />
((FlipView)findViewById(R.id.flip_animation_view_demo)).setFlipViewChangeListener(new FlipView.FlipViewChangeListener() {
            @Override
            public void onFlipViewClick(FlipView flipView, boolean isChecked) {
                Toast.makeText(MainActivity.this, "Clicked - " + isChecked, Toast.LENGTH_SHORT).show();
            }
        });

API

    public static interface FlipViewChangeListener {
        void onFlipViewClick(FlipView flipView, boolean isChecked);
    }

Developed By

Marcin Polak - mpolak87(at).gmail.com

Changelog

  • 2015-12-08 - 1.0.1 - Removed redundant ic_launcher icon and tools version update

License

Copyright 2014 Marcin Polak

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

FAQs

Package last updated on 08 Dec 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc