• Stars
    star
    204
  • Rank 190,976 (Top 4 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 10 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Bitocle is a simple android app which allows you to view your source code in GitHub.

Bitocle是什么?

Bitocle是一款简单的用来查看自己托管在GitHub上的代码的安卓应用。

版本号:2.2 Release

下载链接:https://play.google.com/store/apps/details?id=io.github.mthli.Bitocle

支持安卓4.0及其以上版本设备。

特别说明:

  • Bitocle使用OAuth登陆GitHub,不会记录您登陆时输入的GitHub密码。

  • 在Bitocle中完成的操作不会影响您托管在GitHub上面的内容,可以理解为,它是只读的。

如何使用它呢?

首先来看应用截图:

all_in_one.png

我们规定打开应用看到的第一个列表为“主列表”。

  • 搜索框会自动补全当前输入内容,筛选出主列表中符合输入的项目,点击列表项即可快速跳转至项目。

  • 在搜索框中按照“用户名/项目名”的格式输入字符,并点击输入法上的“发送(回车)”键,即可将输入的项目添加到主列表。

  • 在“近期加星”列表中,点击列表项右侧的菜单按钮,可以选择将加星项目添加到主列表。

  • 在项目的目录树下长按列表项可以选择添加书签。

  • 在书签界面长按列表项可以选择删除书签。

  • 点击Overflow菜单中的“代码高亮”,可以选择5种不同的高亮模式,方便阅读代码。

  • 点击Overflow菜单中的“代码横屏”,可以在阅读代码的时候自动横屏。

  • 点击Overflow菜单中的“夜间模式”,可以降低屏幕亮度,方便夜间阅读。

  • Overflow菜单中的“刷新选项可以在数据加载失败的时候重载数据,但是不建议频繁的刷新。

  • 左上角的返回键无论何时都会返回主列表。

  • 屏幕下方的返回键用于返回当前位置的上一层;在点击书签项之后原有的目录树将会被新的目录树覆盖。

目前存在哪些问题?

  • 不能优雅的退出应用。涉及网络操作的线程在快速退出时可能导致下次启动时白屏,因此使用了System.exit(0)直接将应用kill掉,所有就没有退出动画了。

  • 代码逻辑不够完美,导致应用的流畅性可能受到影响。

  • 缺少缓存。目前我并没有找到比较好的可以实现缓存的方式,由此导致每次查看代码的时候都需要进行网络操作,效率不高。如果你有什么比较好的想法,可以联系我,联系方式见下文。

  • 应用程序的启动图标。有意向的同学可以考虑帮我绘制一个漂亮的图标,联系方式见下文。

  • 在代码高亮时WebView加载及渲染效率较低的问题。

  • 当一行代码太长,在暗色系主题下WebView会显示白边。这属于代码风格问题,通常不推荐写太长不折行的代码。有兴趣的同学可以参阅google-styleguide

  • Webview加载Markdown文件有时候无法显示图片,这取决于图片的大小和网络问题。

  • 中文乱码。使用UTF-8编码格式能有效防止中文乱码的出现。

  • 部分机型的适配问题,以及其他未知Bug(边界问题)。

下一阶段打算做什么?

  • 尝试解决以上提到的Bug。

  • 优化代码。

  • 美化UI。

关于项目:

Thanks:

Bitocle在开发过程中使用了以下开源项目:

同时也要感谢支持这个项目的所有人,我会继续努力哒!


What is Bitocle?

Bitocle is a simple app that allows you to view your code on GitHub.

Version: 2.2 Release

For Android 4.0+.

Download link: https://play.google.com/store/apps/details?id=io.github.mthli.Bitocle

Some explains:

  • Bitocle use OAuth so you don't worry about your GitHub Password, we don't use/save it.

  • Bitocle is Read Only, we don't change any thing on your GitHub.

  • Sorry for my poor English :)

How to use it?

Screenshot:

all_in_one.png

We call the first list you see main list.

  • You can use Search to quick skip on main list.

  • Type User/Repo style on Search, you can add the repo(User/Repo) to main list.

  • On Star interface, you can click the right button on a(n) item and Add means you can add this item to main list.

  • On catalog, long click, add bookmark.

  • On Bookmark interface, long click, remove bookmark.

  • Use the menu item Highlight of Overflow on ActionBar to select awesome source highlight effect.

  • Use the menu item Horizontal of Overflow on ActionBar, Bitocle will auto landscape when you view your code.

  • Use the menu item Night of Overflow on ActionBar for night.

  • The Back button on the left of ActionBar will back to main list whenever/wherever.

  • The Back button on the button of screen will back to the previous interface you ever seen; but when you click Bookmark menu, it will be reset.

Does Bitocle has some matters?

  • We use System.exit(0) to quit, for killing some unknown threads. So it is not very grace.

  • No cache. I have no idea to make it come true.

  • The icon of Bitocle looks no very good, I hope someone could help us make a(n) awesome icon.

  • jQuery on WebView looks not very efficent.

  • When a line is too long, WebView will show whiht edge when you use some dark themes. We don't suggest you to write too long, see google-styleguide.

  • When WebView load Markdown, the image may loaded failed, for network state or other reasons.

  • We suggest you use UTF-8 encoding for no messy code.

  • Failed to adapt some phone.

What we will do next?

  • Try to fix some bugs.

  • Optimize Bitcole source code.

  • Optimize UI.

About Project:

Thanks:

When we develop Bitcole, those open source projects we use:

And thanks all supporter :)

More Repositories

1

Knife

Knife is a rich text editor component for writing documents in Android.
Java
2,108
star
2

Ninja

Yet another web browser for Android.
Java
952
star
3

Slice

Android drawable that allows you custom round rect position.
Java
598
star
4

Mount

mount/umount apps that you don't like on Android, without root.
Java
306
star
5

lemonsqueepy

Lemon Squeezy with Python 🐍
Python
228
star
6

better-youtube-summary-server

Literally Better YouTube Summary 🎯
Python
201
star
7

Tweetin

Yet another Twitter unofficial client for Lollipop.
Java
175
star
8

webrtc-tutorial

Learning WebRTC the Hard Way 👀
JavaScript
172
star
9

Java

《Core Java》学习笔记。
Java
133
star
10

SugarTask

Android lifecycle safety task with sugar code style.
Java
130
star
11

Cracker

Collect UncaughtException when your Android App crash.
Java
65
star
12

Type

Typing experiment on Android.
Java
55
star
13

blog

Yet another blog of myself 👀
Assembly
42
star
14

Nongfu

A IntelliJ IDEA plugin that help you move files or directories to target module quickly.
Java
36
star
15

RxCoroutineSchedulers

Kotlin Coroutines as RxJava Schedulers 😈
Kotlin
30
star
16

Mp3

Windows下一个简陋的MP3播放器。使用C语言调用Windows API实现。
C
15
star
17

Ninja2

Yet another web browser for Android, version 2.
14
star
18

AndroidPlayground

A sample playground for (re)learning Android.
Kotlin
12
star
19

mthli.github.io

Deploy my blog on GitHub.
HTML
10
star
20

PyRobot

一些自动抓取内容的Python脚本集合。
Python
8
star
21

Geeky

GeekPark Unofficial Android Client.
Java
8
star
22

better-youtube-summary-extension

Literally Better YouTube Summary 🎯
TypeScript
7
star
23

EatWhat

吃神马是一个永恒的话题。让我们摇起来!
Java
7
star
24

EasyRust

一份简单的Rust中文入门教程。
6
star
25

mthli

My GitHub profile repo 👀
6
star
26

Send2SN

班级信息推送小应用,可以将班级信息发送到班级成员邮箱、微信公众平台和人人网。采用GTK+2.24、C语言和Python2开发。
C
4
star
27

COIMS

COIMS是应西安某救助站需求,义务为其开发的简易流浪者病历管理软件,基于GTK+2.24版本、SQLite3并采用C语言开发。不以成败论英雄。
C
4
star
28

SwitcherPanel

Try to implement Firefox(for Android)'s switcher panel.
Java
2
star
29

Dribbble4J

Dribbble API for Java.
Java
2
star
30

react-helmet

A document head manager for React
JavaScript
1
star
31

gatsby-theme-apollo-docs

JavaScript
1
star
32

Bingw

抓取Bing每日图片并设置为桌面背景,目前支持Gnome桌面环境和Windows桌面环境。
C
1
star
33

Dara

Shielding notifications that you don't want to see.
Java
1
star
34

invest

Learning Invest the Hard Way 💸
JavaScript
1
star
35

jni_zero

Python
1
star
36

lemontree

A lemonsqueepy example 🍋
TypeScript
1
star