1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

Feature | Styling toolbar | Colors menu | Design + Visibility control (#1459)

This commit is contained in:
Evgenii Kozlov 2021-05-12 16:05:36 +03:00 committed by GitHub
parent 94231266f2
commit 2a004fe2ce
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 204 additions and 142 deletions

View file

@ -21,7 +21,7 @@ class LongClickActivity: AppCompatActivity() {
setContentView(R.layout.activity_long_clicked)
findViewById<ImageView>(R.id.close).setOnClickListener {
styleToolbar.hideWithAnimation()
//styleToolbar.hideWithAnimation()
}
textInputWidget.enableEditMode()

View file

@ -16,7 +16,7 @@ class StyleActivity: AppCompatActivity() {
setContentView(R.layout.activity_style)
findViewById<ImageView>(R.id.close).setOnClickListener {
styleToolbar.hideWithAnimation()
//styleToolbar.hideWithAnimation()
}
button.setOnClickListener {
@ -50,7 +50,7 @@ class StyleActivity: AppCompatActivity() {
alignment = null
)
)
styleToolbar.showWithAnimation()
//styleToolbar.showWithAnimation()
}
}

View file

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
@ -15,7 +14,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.anytypeio.anytype.core_ui.widgets.toolbar.style.StyleToolbarWidget
<com.anytypeio.anytype.core_ui.widgets.toolbar.style.StyleColorToolbarWidget
android:id="@+id/styleToolbar"
android:layout_width="0dp"
android:layout_height="@dimen/dp_203"

View file

@ -14,7 +14,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.anytypeio.anytype.core_ui.widgets.toolbar.style.StyleToolbarWidget
<com.anytypeio.anytype.core_ui.widgets.toolbar.style.StyleColorToolbarWidget
android:id="@+id/styleToolbar"
android:layout_width="0dp"
android:layout_height="@dimen/dp_203"