资源简介

安卓记账本/理财小助手app,可导入Android studio运行,功能完备。

资源截图

代码片段和文件信息

package com.matianyi.accountingapp;

import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;

public abstract class AbaseFragment extends Fragment {

    protected IActivityEnabledListener aeListener;

    protected interface IActivityEnabledListener{
        void onActivityEnabled(FragmentActivity activity);
    }

    protected void getAvailableActivity(IActivityEnabledListener listener){
        if (getActivity() == null){
            aeListener = listener;

        } else {
            listener.onActivityEnabled(getActivity());
        }
    }

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);

        if (aeListener != null){
            aeListener.onActivityEnabled((FragmentActivity) activity);
            aeListener = null;
        }
    }

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);

        if (aeListener != null){
            aeListener.onActivityEnabled((FragmentActivity) context);
            aeListener = null;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-06-13 11:45  AccountingApp-master\
     文件        1178  2019-06-13 11:45  AccountingApp-master\.gitignore
     文件        2428  2019-06-13 11:45  AccountingApp-master\README.MD
     目录           0  2019-06-13 11:45  AccountingApp-master\app\
     文件          15  2019-06-13 11:45  AccountingApp-master\app\.gitignore
     文件         591  2019-06-13 11:45  AccountingApp-master\app\.project
     文件        2288  2019-06-13 11:45  AccountingApp-master\app\build.gradle
     目录           0  2019-06-13 11:45  AccountingApp-master\app\libs\
     目录           0  2019-06-13 11:45  AccountingApp-master\app\libs\android\
     目录           0  2019-06-13 11:45  AccountingApp-master\app\libs\android\database\
     目录           0  2019-06-13 11:45  AccountingApp-master\app\libs\android\database\sqlite\
     文件         232  2019-06-13 11:45  AccountingApp-master\app\libs\android\database\sqlite\annotations.xml
     文件        1351  2019-06-13 11:45  AccountingApp-master\app\libs\annotations.jar
     文件       80666  2019-06-13 11:45  AccountingApp-master\app\libs\easyandroidanimationslibrary-v0.5.jar
     文件         772  2019-06-13 11:45  AccountingApp-master\app\proguard-rules.pro
     目录           0  2019-06-13 11:45  AccountingApp-master\app\src\
     目录           0  2019-06-13 11:45  AccountingApp-master\app\src\main\
     文件        1977  2019-06-13 11:45  AccountingApp-master\app\src\main\AndroidManifest.xml
     目录           0  2019-06-13 11:45  AccountingApp-master\app\src\main\java\
     目录           0  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\
     目录           0  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\
     目录           0  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\accountingapp\
     文件        1139  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\accountingapp\AbaseFragment.java
     目录           0  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\accountingapp\activity\
     文件        1996  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\accountingapp\activity\AboutPageActivity.java
     文件       10982  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\accountingapp\activity\AddCustomRecordActivity.java
     文件       10189  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\accountingapp\activity\AddRecordActivity.java
     文件        3026  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\accountingapp\activity\ExpenditureRecentMonthsActivity.java
     文件        7292  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\accountingapp\activity\GeneralStaticsActivity.java
     文件        3097  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\accountingapp\activity\IncomeRecentMonthsActivity.java
     文件       10735  2019-06-13 11:45  AccountingApp-master\app\src\main\java\com\matianyi\accountingapp\activity\MainActivity.java
............此处省略348个文件信息

评论

共有 条评论