CodeView

CodeView library for android

Лицензия

Лицензия

Группа

Группа

me.jackdevey
Идентификатор

Идентификатор

codeview
Последняя версия

Последняя версия

1.0.5
Дата

Дата

Тип

Тип

aar
Описание

Описание

CodeView
CodeView library for android
Ссылка на сайт

Ссылка на сайт

https://github.com/jackdevey/codeview
Система контроля версий

Система контроля версий

https://github.com/jackdevey/codeview

Скачать codeview

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/me.jackdevey/codeview/ -->
<dependency>
    <groupId>me.jackdevey</groupId>
    <artifactId>codeview</artifactId>
    <version>1.0.5</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/me.jackdevey/codeview/
implementation 'me.jackdevey:codeview:1.0.5'
// https://jarcasting.com/artifacts/me.jackdevey/codeview/
implementation ("me.jackdevey:codeview:1.0.5")
'me.jackdevey:codeview:aar:1.0.5'
<dependency org="me.jackdevey" name="codeview" rev="1.0.5">
  <artifact name="codeview" type="aar" />
</dependency>
@Grapes(
@Grab(group='me.jackdevey', module='codeview', version='1.0.5')
)
libraryDependencies += "me.jackdevey" % "codeview" % "1.0.5"
[me.jackdevey/codeview "1.0.5"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
androidx.databinding » viewbinding jar 7.0.0-alpha12
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.31

runtime (1)

Идентификатор библиотеки Тип Версия
androidx.recyclerview » recyclerview jar 1.1.0

Модули Проекта

Данный проект не имеет модулей.

CodeView

A code viewing library for displaying code in Android apps, built entirely in Kotlin.

Usage

Step 1. Make sure mavenCentral() is added as a dependency in your root gradle file:

allprojects {
    repositories {
        mavenCentral()
    }
}

Step 2. Add the dependency to your app's project gradle file:

dependencies {
    implementation 'me.jackdevey:codeview:1.0.5'
}

Step 3. Add the CodeView to your layout

<me.jackdevey.codeview.CodeView
    android:id="@+id/code_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

Step 4. Customise the CodeView

binding.codeView.with{
 fontSize = 14f
 code = "Code"
 show()
}

Customisation

You can customise the CodeView to make sure that it fits with the theme of your app using the variables below:

After any change is made, make sure that you use show() to re-draw the changes onto the view.

Variable Data type Description Default Working
code String The code to display on the view "No code provided"
fontSize Float The font size of the text 14f
numberLines Boolean Number each line true
backgroundColour Color The colour of the background GREY

License

This library is licensed under the Apache Software License, Version 2.0.

See LICENSE for full of the license text.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

Версии библиотеки

Версия
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0