Move label input to the top of the screen

Which groups the parsed and the raw content together.
This commit is contained in:
Markus Fisch
2026-06-04 19:30:23 +02:00
parent 6c2c7bef90
commit 52ca14c9ba
2 changed files with 17 additions and 17 deletions
@@ -81,6 +81,7 @@ import java.security.MessageDigest
import kotlin.math.roundToInt
class DecodeActivity : AbstractBaseActivity() {
private lateinit var labelHeadlineView: TextView
private lateinit var contentView: EditText
private lateinit var contentHeadlineView: TextView
private lateinit var characterCountView: TextView
@@ -92,7 +93,6 @@ class DecodeActivity : AbstractBaseActivity() {
private lateinit var hexHeadlineView: TextView
private lateinit var hexView: TextView
private lateinit var formatDescriptionView: TextView
private lateinit var labelHeadlineView: TextView
private lateinit var recreationView: ImageView
private lateinit var labelView: EditText
private lateinit var fab: FloatingActionButton
@@ -149,6 +149,7 @@ class DecodeActivity : AbstractBaseActivity() {
format = scan.format.name
recreationSize = (200f * dp).roundToInt()
labelHeadlineView = findViewById(R.id.label_headline)
contentView = findViewById(R.id.content)
contentHeadlineView = findViewById(R.id.content_headline)
characterCountView = findViewById(R.id.character_count)
@@ -160,7 +161,6 @@ class DecodeActivity : AbstractBaseActivity() {
hexHeadlineView = findViewById(R.id.hex_headline)
hexView = findViewById(R.id.hex)
formatDescriptionView = findViewById(R.id.format_description)
labelHeadlineView = findViewById(R.id.label_headline)
recreationView = findViewById(R.id.recreation)
labelView = findViewById(R.id.label)
fab = findViewById(R.id.open)
+15 -15
View File
@@ -11,21 +11,6 @@
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
style="@style/SecondaryText"
android:id="@+id/data_headline"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:textStyle="bold"
android:text="@string/section_parsed_data"
android:visibility="gone"/>
<LinearLayout
android:id="@+id/data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginBottom="16dp"/>
<TextView
style="@style/SecondaryText"
android:id="@+id/label_headline"
@@ -46,6 +31,21 @@
android:importantForAutofill="no"
android:inputType="text"
tools:ignore="UnusedAttribute"/>
<TextView
style="@style/SecondaryText"
android:id="@+id/data_headline"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:textStyle="bold"
android:text="@string/section_parsed_data"
android:visibility="gone"/>
<LinearLayout
android:id="@+id/data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginBottom="16dp"/>
<TextView
style="@style/SecondaryText"
android:id="@+id/content_headline"