0.0.1 alpha

This commit is contained in:
Öppen 2020-08-15 22:12:17 +01:00
parent 0ee7300da2
commit 6f0e208009
6 changed files with 40 additions and 3 deletions

View File

@ -11,7 +11,7 @@ android {
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
versionName "0.0.1 Alpha"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View File

@ -0,0 +1,20 @@
{
"version": 1,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "oppen.tva",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"properties": [],
"versionCode": 1,
"versionName": "0.0.1 Alpha",
"enabled": true,
"outputFile": "app-release.apk"
}
]
}

View File

@ -0,0 +1,11 @@
package oppen
import android.app.AlertDialog
import android.content.Context
fun String.alert(context: Context){
AlertDialog.Builder(context)
.setMessage(this)
.setPositiveButton("OK"){_, _ ->}
.show()
}

View File

@ -8,6 +8,7 @@ import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.LinearLayoutManager
import oppen.alert
import oppen.tva.R
import oppen.tva.databinding.ActivityTvaBinding
import oppen.tva.io.TvaState
@ -51,6 +52,10 @@ class TvaActivity : AppCompatActivity() {
else -> return@setOnEditorActionListener false
}
}
binding.more.setOnClickListener { "Not implemented yet".alert(this) }
binding.home.setOnClickListener { "Not implemented yet".alert(this) }
binding.tabs.setOnClickListener { "Not implemented yet".alert(this) }
}
private fun externalProtocol(state: TvaState.NotGeminiRequest) {

View File

@ -27,6 +27,7 @@ class GemtextAdapter(val onLink: (link: URI) -> Unit): RecyclerView.Adapter<Gemt
class H3(itemView: View): ViewHolder(itemView)
class ListItem(itemView: View): ViewHolder(itemView)
class Link(itemView: View): ViewHolder(itemView)
class Code(itemView: View): ViewHolder(itemView)
}
fun render(lines: List<String>){

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#6200EE</color>
<color name="colorPrimaryDark">#3700B3</color>
<color name="colorPrimary">#FFFFFF</color>
<color name="colorPrimaryDark">#B8B8B8</color>
<color name="colorAccent">#03DAC5</color>
</resources>