在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):YahiaAngelo/MarkdownEditText开源软件地址(OpenSource Url):https://github.com/YahiaAngelo/MarkdownEditText开源编程语言(OpenSource Language):Kotlin 100.0%开源软件介绍(OpenSource Introduction):MarkdownEditTextA native Rich text editor for android based on Markwon library with export to Markdown option PreviewUsage:Adding the depencencyAdd the dependency to your app build.gradle file:
XML <com.yahiaangelo.markdownedittext.MarkdownEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintTop_toBottomOf="@id/appbar"
android:id="@+id/edittext"
android:gravity="top"/>
<com.yahiaangelo.markdownedittext.MarkdownStylesBar
android:layout_width="match_parent"
android:layout_height="48dp"
android:id="@+id/stylesbar"
app:buttonColor="@color/style_button_colors"
android:clipToPadding="false"
android:paddingStart="8dp"
android:paddingEnd="8dp"
app:layout_constraintBottom_toBottomOf="parent"/> Code val markdownEditText = findViewById<MarkdownEditText>(R.id.edittext)
val stylesBar = findViewById<MarkdownStylesBar>(R.id.stylesbar)
markdownEditText.setStylesBar(stylesBar) Customize default Styles bar : //Select specific Styles to show
stylesbar.stylesList = arrayOf(MarkdownEditText.TextStyle.BOLD, MarkdownEditText.TextStyle.ITALIC) Available styles:
Libraries:License:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论