qinci / markdowneditors Goto Github PK
View Code? Open in Web Editor NEWAndroid Markdown编辑器
License: Apache License 2.0
Android Markdown编辑器
License: Apache License 2.0
如题
非常不错。
谢谢啦
Thanks a lot for making such a great app as an open-source, I have forked and compiled this app it works great, want to know how can it be converted as a lib or it will be great thing if you make gradle dependency of this great work.
Kindly consider my suggestion.
Looking for reply
Arshad Ali Soomro
这样搜索的意义就不大了呀。可以用递归实现子目录搜索
files = currentFolder
.listFiles(file -> file.getName().contains(key) &&
(
file.getName().endsWith(".md") ||
file.getName().endsWith(".markdown") ||
file.getName().endsWith(".mdown")));//只显示md和文件夹
语法:
if (resultCode == Activity.RESULT_OK && requestCode == SYSTEM_GALLERY) {
Uri uri = data.getData();
String[] pojo = {MediaStore.Images.Media.DATA};
Cursor cursor = this.managedQuery(uri, pojo, null, null, null);
if (cursor != null) {
// ContentResolver cr = this.getContentResolver();
int colunm_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
cursor.moveToFirst();
String path = cursor.getString(colunm_index);
//以上代码获取图片路径
Uri.fromFile(new File(path));//Uri.decode(imageUri.toString())
mEditorFragment.getPerformEditable().perform(R.id.id_shortcut_insert_photo, Uri.fromFile(new File(path)));
} else {
Toast.showShort(this, "图片处理失败");
}
}
这段代码处理有问题!cursor很多时候为空。
坐等楼主上传
Activity退出导致View销毁,但ChromeClient未退出,当收到数据时调用了
@Override
public void onReceivedTitle(WebView view, String title) {
super.onReceivedTitle(view, title);
setTitle(title);
}
其中setTitle中的mTextSwitcher已经销毁
@Override
public void setTitle(CharSequence title) {
super.setTitle(title);
mTextSwitcher.setText(title);
}
MarkdownX
Yours apps are too similar lol.
是其他的库,能麻烦告诉我一下吗?
有些文档用外部软件保存,需要打开
目前打算用混合模式开发博客的内容管理系统,编辑器的选用打算采用“简书”那种,选了很久觉得MarkDownEditors很不错。特意请问一下能否嵌入?大体上应该如何去做呢?
如:
- [ ] 还有条件插值用`{ ... }`, 省略号部分是普通的插值
语句, 小括号里是条件, 当条件不成立时省略号部分直接
就为空字符串
作者大大你好,这么好的应用,请上架酷安网呗!
关于RxJava想知道你使用的时候有没有参考了什么文章或者教程,官方的文档(https://github.com/ReactiveX/RxJava/wiki)我实在弄不懂,不是英文看不懂,是弄不懂怎么用,感觉官方文档对新手很不友好
点击存在的文本我想进入预览状态会更好,因为,如果插入图片,在编辑状态下是无法查看图片的内容,一般点击文本先预览,然后应该有个编辑按钮可以点,
这个是我个人建议
下载链接貌似都失效了,暂时不方便下载编译,能不能发下安装包
该软件目前急需的应该是线上同步吧,希望大家想办法同步一下dropbox
或者onedrive
,用了很久感觉很不错,可惜能不不足无法贡献代码
最近在移植该项目代码,移植成功后(FileListAdapter代码我没改动)
,发现一个数组越界报错,当我列表中存在几个文件时,第一次点击文件可以进入编辑,然后快速退出再点击另一文件时就会报该错误
12-17 12:56:50.135 31831-31831/com.zhongzilu.bit100 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.zhongzilu.bit100, PID: 31831
java.lang.ArrayIndexOutOfBoundsException: length=14; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
at com.zhongzilu.bit100.view.fragment.FolderManagerFragment.onItemClick(FolderManagerFragment.java:629)
at com.zhongzilu.bit100.view.adapter.FileListAdapter.lambda$onBindViewHolder$0(FileListAdapter.java:144)
at com.zhongzilu.bit100.view.adapter.FileListAdapter.access$lambda$0(FileListAdapter.java:0)
at com.zhongzilu.bit100.view.adapter.FileListAdapter$$Lambda$1.onClick(Unknown Source)
什么原因导致的我还不清楚
将以下代码中的getAdapterPosition()
方法换成getLayoutPosition()
即可
if (mOnItemClickLitener != null) {
holder.itemView.setOnClickListener(v -> {
int pos = holder.getAdapterPosition();
mOnItemClickLitener.onItemClick(holder.name, pos);
});
holder.itemView.setOnLongClickListener(v -> {
int pos = holder.getAdapterPosition();
mOnItemClickLitener.onItemLongClick(holder.itemView, pos);
return !isEditMode;
});
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.