mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
Tech | Polish sample app (#1808)
This commit is contained in:
parent
a014fe5866
commit
4065474b86
4 changed files with 63 additions and 19 deletions
|
@ -5,7 +5,7 @@ apply plugin: 'kotlin-kapt'
|
|||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
buildToolsVersion "29.0.2"
|
||||
buildToolsVersion "29.0.3"
|
||||
|
||||
|
||||
defaultConfig {
|
||||
|
@ -51,30 +51,31 @@ android {
|
|||
dependencies {
|
||||
|
||||
def applicationDependencies = rootProject.ext.mainApplication
|
||||
|
||||
implementation 'com.github.HBiSoft:PickiT:0.1.9'
|
||||
|
||||
implementation applicationDependencies.glide
|
||||
|
||||
implementation 'com.vdurmont:emoji-java:5.1.1'
|
||||
def unitTestDependencies = rootProject.ext.unitTesting
|
||||
|
||||
implementation project(':core-utils')
|
||||
implementation project(':core-ui')
|
||||
implementation project(':presentation')
|
||||
|
||||
implementation applicationDependencies.kotlin
|
||||
implementation applicationDependencies.appcompat
|
||||
implementation applicationDependencies.glide
|
||||
implementation applicationDependencies.coroutinesAndroid
|
||||
implementation applicationDependencies.constraintLayout
|
||||
implementation applicationDependencies.androidxCore
|
||||
implementation applicationDependencies.timber
|
||||
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation applicationDependencies.fragment
|
||||
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||||
implementation 'androidx.core:core-ktx:1.3.2'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
||||
implementation applicationDependencies.design
|
||||
|
||||
implementation applicationDependencies.permissionDisp
|
||||
implementation applicationDependencies.pickT
|
||||
|
||||
//implementation 'com.github.gregcockroft:AndroidMath:ALPHA'
|
||||
|
||||
kapt applicationDependencies.permissionDispCompiler
|
||||
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
||||
testImplementation unitTestDependencies.junit
|
||||
testImplementation unitTestDependencies.kotlinTest
|
||||
testImplementation unitTestDependencies.robolectricLatest
|
||||
testImplementation unitTestDependencies.androidXTestCore
|
||||
testImplementation unitTestDependencies.mockitoKotlin
|
||||
}
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
android:theme="@style/AppTheme"
|
||||
android:usesCleartextTraffic="true"
|
||||
tools:ignore="GoogleAppIndexingWarning">
|
||||
<activity android:name=".StyleToolbarActivity">
|
||||
<activity
|
||||
android:name=".LatexActivity"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
|
@ -28,12 +30,12 @@
|
|||
</activity>
|
||||
<activity
|
||||
android:name=".search.SearchOnPageActivity"
|
||||
android:windowSoftInputMode="stateHidden|adjustResize">
|
||||
</activity>
|
||||
android:windowSoftInputMode="stateHidden|adjustResize"/>
|
||||
<activity android:name=".DisabledAnimationActivity" />
|
||||
<activity android:name=".ScrollAndMove" />
|
||||
<activity android:name=".StyleActivity" />
|
||||
<activity android:name=".MainActivity" />
|
||||
<activity android:name=".StyleToolbarActivity"/>
|
||||
</application>
|
||||
|
||||
</manifest>
|
|
@ -0,0 +1,13 @@
|
|||
package com.anytypeio.anytype.sample
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
|
||||
class LatexActivity : AppCompatActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_latex)
|
||||
// mathview.fontSize = 40f
|
||||
// mathview.latex = "x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}"
|
||||
}
|
||||
}
|
28
sample/src/main/res/layout/activity_latex.xml
Normal file
28
sample/src/main/res/layout/activity_latex.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:context=".LatexActivity">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:background="@color/orange"
|
||||
android:padding="16dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:layout_editor_absoluteX="16dp">
|
||||
|
||||
<!-- <com.agog.mathdisplay.MTMathView-->
|
||||
<!-- android:id="@+id/mathview"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- app:layout_constraintLeft_toLeftOf="parent"-->
|
||||
<!-- app:layout_constraintRight_toRightOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Add table
Add a link
Reference in a new issue