FlipView
Android FlipView UI library
Install / Use
/learn @polok/FlipViewREADME
FlipView
Android custom state View Group - FlipView UI library
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.

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.
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
