All Projects → Hitomis → Fungamerefresh

Hitomis / Fungamerefresh

好玩的下拉刷新控件,让我们一起来回味童年

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Fungamerefresh

Taelinarena
[outdated] A moddable MOBA in Formality
Stars: ✭ 84 (-93.57%)
Mutual labels:  functional-programming
Fuego
Functional Experiment in Golang
Stars: ✭ 87 (-93.34%)
Mutual labels:  functional-programming
Imlazy
😴 Functional programming with lazy immutable iterables
Stars: ✭ 89 (-93.19%)
Mutual labels:  functional-programming
Bulb
A reactive programming library for JavaScript.
Stars: ✭ 84 (-93.57%)
Mutual labels:  functional-programming
Cafeapp
A Real World Business Application using F# and Suave
Stars: ✭ 86 (-93.42%)
Mutual labels:  functional-programming
Spring 5 Examples
This repository is contains spring-boot 2 / spring framework 5 project examples. Using reactive programming model / paradigm and Kotlin
Stars: ✭ 87 (-93.34%)
Mutual labels:  functional-programming
Functionalrx2
FunctionalRx2 is a collection of constructs to simplify a functional programming approach to Java and Android [STABLE]
Stars: ✭ 83 (-93.65%)
Mutual labels:  functional-programming
Taskorama
⚙ A Task/Future data type for JavaScript
Stars: ✭ 90 (-93.11%)
Mutual labels:  functional-programming
Zio Logging
Simple logging for ZIO apps, with correlation, context & pluggable backends out of the box.
Stars: ✭ 85 (-93.5%)
Mutual labels:  functional-programming
Test Each
🤖 Repeat tests. Repeat tests. Repeat tests.
Stars: ✭ 89 (-93.19%)
Mutual labels:  functional-programming
Imtools
Fast and memory-efficient immutable collections and helper data structures
Stars: ✭ 85 (-93.5%)
Mutual labels:  functional-programming
Cl Algebraic Data Type
Algebraic data types in Common Lisp
Stars: ✭ 86 (-93.42%)
Mutual labels:  functional-programming
Kotlintutorial
Learn Kotlin programming from scratch
Stars: ✭ 88 (-93.27%)
Mutual labels:  functional-programming
Dash
Functional programming library for PHP. Inspired by Underscore, Lodash, and Ramda.
Stars: ✭ 84 (-93.57%)
Mutual labels:  functional-programming
Functionalplus
Functional Programming Library for C++. Write concise and readable C++ code.
Stars: ✭ 1,286 (-1.61%)
Mutual labels:  functional-programming
Zio Query
Add efficient pipelining, batching, and caching to any data source
Stars: ✭ 84 (-93.57%)
Mutual labels:  functional-programming
Theseus
theseus, functional programming language with fully reversible computation
Stars: ✭ 87 (-93.34%)
Mutual labels:  functional-programming
Lda Topic Modeling
A PureScript, browser-based implementation of LDA topic modeling.
Stars: ✭ 91 (-93.04%)
Mutual labels:  functional-programming
Spotted Leopards
Proof of concept for a cats-like library built using Dotty features
Stars: ✭ 91 (-93.04%)
Mutual labels:  functional-programming
Fundamental Haskell
Fundamental Haskell book, to the point terse statements on Haskell, Category theory, and related fields. Encyclopedic pocketbook of meaning. Zen kōan-like meditations of understanding. For quick or memory curve spaced repetition learning.
Stars: ✭ 88 (-93.27%)
Mutual labels:  functional-programming

FunGameRefreshView

Android Arsenal

有趣好玩的下拉刷新库, 你还记得小时候打的黑白掌上游戏机么?

Preview

FunGame

更新内容
2016-07-28

  • 当后台线程没有执行完毕的时候,松开手指,下拉刷新控件会回滚到游戏区域高度的位置,用户任然可以继续玩游戏。
  • 重新整理了游戏区域中央的字符显示逻辑,不会再出现字符闪改的问题。

2016-08-01

  • 修复当后台线程执行时间太短导致动画执行错误并无法操作游戏的问题。

2016-08-17

  • 扩展自定义属性,添加下拉头部控件中文字自定义。

2016-12-02

  • FunGameRefreshView 支持 GridView, ListView, RecycleView 等一些控件
  • FunGameRefreshView 中只能放入一个子控件
  • 修复游戏结束提示语未设置时,报错的问题
  • 修复下拉刷新头部手动控制不能完全滑动回去的问题



目前支持两种游戏:打砖块和打坦克 打砖块规则简单,没有接住小球即GameOver; 打坦克规则为:漏掉敌方坦克超过十辆或者与敌方坦克相撞即GameOver,看看你能不能坚持三分钟吧。嘿嘿~;

Usage

布局文件中:
<com.hitomi.refresh.view.FunGameRefreshView
    android:id="@+id/refresh_hit_block"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:game_type="hit_block">
            
    <ListView
        android:id="@+id/list_view"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:scrollbars="none">
    </ListView>
    
</com.hitomi.refresh.view.FunGameRefreshView>

Activity中:
    refreshView = (FunGameRefreshView) findViewById(R.id.refresh_fun_game);
    listView = (ListView) findViewById(R.id.list_view);

    arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_expandable_list_item_1, createDate());
    listView.setAdapter(arrayAdapter);
    
    refreshView.setOnRefreshListener(new FunGameRefreshView.FunGameRefreshListener() {
        @Override
        public void onPullRefreshing() {
            // 模拟后台耗时任务
            SystemClock.sleep(2000);
        }

        @Override
        public void onRefreshComplete() {
            updateDataList();
            arrayAdapter.notifyDataSetChanged();
        }
    });

具体示例代码,请查看 fungamerefreshdemo 包中的代码

Attributes

支持下拉头部控件中游戏切换:
    <attr name="game_type" format="enum">
        <enum name="hit_block" value="0" />
        <enum name="battle_city" value="1" />
    </attr>

支持游戏中各部分模型颜色自定义:
    <attr name="left_model_color" format="color" />
    <attr name="middle_model_color" format="color" />
    <attr name="right_model_color" format="color" />

支持下拉头部控件中文字自定义:
    <attr name="mask_top_text" format="string" />
    <attr name="mask_bottom_text" format="string" />
    <attr name="text_loading" format="string" />
    <attr name="text_loading_finished" format="string" />
    <attr name="text_game_over" format="string" />

    <attr name="top_text_size" format="integer" />
    <attr name="bottom_text_size" format="integer" />

支持HitBlock游戏中砖块列数和小球速度自定义:        
    <attr name="block_horizontal_num" format="integer" />
    <attr name="ball_speed" format="integer">
        <enum name="low" value="3" />
        <enum name="medium" value="6" />
        <enum name="fast" value="9" />
    </attr>

#Thanks

UI设计来自于:https://github.com/dasdom/BreakOutToRefresh

#Licence

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].