• 大小: 23.62MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-28
  • 语言: Java
  • 标签:

资源简介

学习Android开发,模仿了几个开源完整的项目之后,就自己也做一个新闻聚合的App,包含主界面,侧滑页,侧滑页包含两个功能“看博客”和“去看图”,各个部分都写成Fragment。

资源截图

代码片段和文件信息

#!/usr/bin/python
# -*- coding:utf-8 -*-
import sys
from argparse import ArgumentParser

from freeline_core.dispatcher import Dispatcher
from freeline_core.init import init


class Freeline(object):
    def __init__(self):
        self.dispatcher = Dispatcher()

    def call(self args=None):
        if ‘init‘ in args and args.init:
            print(‘init freeline project...‘)
            init()
            exit()

        self.dispatcher.call_command(args)


def get_parser():
    parser = ArgumentParser()
    parser.add_argument(‘-v‘ ‘--version‘ action=‘store_true‘ help=‘show version‘)
    parser.add_argument(‘-f‘ ‘--cleanBuild‘ action=‘store_true‘ help=‘force to execute a clean build‘)
    parser.add_argument(‘-w‘ ‘--wait‘ action=‘store_true‘ help=‘make application wait for debugger‘)
    parser.add_argument(‘-a‘ ‘--all‘ action=‘store_true‘
                        help=“together with ‘-f‘ freeline will force to clean build all projects.“)
    parser.add_argument(‘-c‘ ‘--clean‘ action=‘store_true‘ help=‘clean cache directory and workspace‘)
    parser.add_argument(‘-d‘ ‘--debug‘ action=‘store_true‘ help=‘enable debug mode‘)
    parser.add_argument(‘-i‘ ‘--init‘ action=‘store_true‘ help=‘init freeline project‘)
    parser.parse_args()
    return parser


def main():
    if sys.version_info > (3 0):
        print ‘Freeline only support Python 2.7+ now. Please use the correct version of Python for freeline.‘
        exit()

    parser = get_parser()
    args = parser.parse_args()
    freeline = Freeline()
    freeline.call(args=args)


if __name__ == ‘__main__‘:
    main()

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-03-06 02:46  NewsGetTogether-master\
     文件         118  2017-03-06 02:46  NewsGetTogether-master\.gitignore
     目录           0  2017-03-06 02:46  NewsGetTogether-master\.idea\
     文件         805  2017-03-06 02:46  NewsGetTogether-master\.idea\compiler.xml
     目录           0  2017-03-06 02:46  NewsGetTogether-master\.idea\copyright\
     文件          74  2017-03-06 02:46  NewsGetTogether-master\.idea\copyright\profiles_settings.xml
     目录           0  2017-03-06 02:46  NewsGetTogether-master\.idea\dictionaries\
     文件          84  2017-03-06 02:46  NewsGetTogether-master\.idea\dictionaries\Mr_Ye.xml
     文件         159  2017-03-06 02:46  NewsGetTogether-master\.idea\encodings.xml
     文件         626  2017-03-06 02:46  NewsGetTogether-master\.idea\gradle.xml
     目录           0  2017-03-06 02:46  NewsGetTogether-master\.idea\markdown-navigator\
     文件          90  2017-03-06 02:46  NewsGetTogether-master\.idea\markdown-navigator\profiles_settings.xml
     文件       19006  2017-03-06 02:46  NewsGetTogether-master\.idea\misc.xml
     文件         367  2017-03-06 02:46  NewsGetTogether-master\.idea\modules.xml
     文件         236  2017-03-06 02:46  NewsGetTogether-master\.idea\projectCodestyle.xml
     文件         564  2017-03-06 02:46  NewsGetTogether-master\.idea\runConfigurations.xml
     文件        1107  2017-03-06 02:46  NewsGetTogether-master\README.md
     目录           0  2017-03-06 02:46  NewsGetTogether-master\app\
     文件           7  2017-03-06 02:46  NewsGetTogether-master\app\.gitignore
     文件        2157  2017-03-06 02:46  NewsGetTogether-master\app\build.gradle
     文件         672  2017-03-06 02:46  NewsGetTogether-master\app\proguard-rules.pro
     目录           0  2017-03-06 02:46  NewsGetTogether-master\app\src\
     目录           0  2017-03-06 02:46  NewsGetTogether-master\app\src\androidTest\
     目录           0  2017-03-06 02:46  NewsGetTogether-master\app\src\androidTest\java\
     目录           0  2017-03-06 02:46  NewsGetTogether-master\app\src\androidTest\java\com\
     目录           0  2017-03-06 02:46  NewsGetTogether-master\app\src\androidTest\java\com\example\
     目录           0  2017-03-06 02:46  NewsGetTogether-master\app\src\androidTest\java\com\example\mrye\
     目录           0  2017-03-06 02:46  NewsGetTogether-master\app\src\androidTest\java\com\example\mrye\newsgettogether\
     文件         768  2017-03-06 02:46  NewsGetTogether-master\app\src\androidTest\java\com\example\mrye\newsgettogether\ExampleInstrumentedTest.java
     目录           0  2017-03-06 02:46  NewsGetTogether-master\app\src\main\
     文件        1376  2017-03-06 02:46  NewsGetTogether-master\app\src\main\AndroidManifest.xml
............此处省略181个文件信息

评论

共有 条评论