This repository was archived by the owner on Jun 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed
java/com/jjewuz/justnotes/Activities Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ android {
1414 applicationId " com.jjewuz.justnotes"
1515 minSdk 30
1616 targetSdk 35
17- versionCode 202
18- versionName " 5.7.2 "
17+ versionCode 203
18+ versionName " 5.8.0 "
1919
2020 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
2121
Original file line number Diff line number Diff line change 1111 "type" : " SINGLE" ,
1212 "filters" : [],
1313 "attributes" : [],
14- "versionCode" : 200 ,
15- "versionName" : " 5.7.0 " ,
14+ "versionCode" : 202 ,
15+ "versionName" : " 5.7.2 " ,
1616 "outputFile" : " app-release.apk"
1717 }
1818 ],
Original file line number Diff line number Diff line change @@ -3,8 +3,11 @@ package com.jjewuz.justnotes.Activities
33import android.content.Context
44import android.content.SharedPreferences
55import android.os.Bundle
6+ import android.view.ViewGroup
67import androidx.activity.enableEdgeToEdge
78import androidx.appcompat.app.AppCompatActivity
9+ import androidx.core.view.ViewCompat
10+ import androidx.core.view.WindowInsetsCompat
811import androidx.recyclerview.widget.LinearLayoutManager
912import com.google.android.material.dialog.MaterialAlertDialogBuilder
1013import com.google.android.material.textfield.TextInputEditText
@@ -66,6 +69,15 @@ class AddCategory : AppCompatActivity() {
6669 binding.addCategory.setOnClickListener {
6770 addDialog()
6871 }
72+
73+ ViewCompat .setOnApplyWindowInsetsListener(binding.addCategory) { vi, windowInsets ->
74+ val insets = windowInsets.getInsets(WindowInsetsCompat .Type .systemBars())
75+ val params = vi.layoutParams as ViewGroup .MarginLayoutParams
76+ params.bottomMargin = insets.bottom + 20
77+ params.rightMargin = insets.right + 40
78+ vi.layoutParams = params
79+ WindowInsetsCompat .CONSUMED
80+ }
6981 }
7082
7183 override fun onSupportNavigateUp (): Boolean {
Original file line number Diff line number Diff line change 3838 android : layout_height =" wrap_content"
3939 android : layout_marginStart =" 5dp"
4040 android : layout_marginTop =" 5dp"
41- android : maxLines =" 8"
4241 android : ellipsize =" end"
4342 android : text =" @string/choose_note" />
4443
You can’t perform that action at this time.
0 commit comments