Zmiana layoutu - górny toolbar i wyszkuwanie - bez wyświetlania notatki
This commit is contained in:
parent
68ec12a94e
commit
21892827f4
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<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"
|
||||
@ -7,6 +7,7 @@
|
||||
android:background="#f7f7f7"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<!-- stary layout z górnym toolbarem
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -24,9 +25,68 @@
|
||||
app:popupTheme="@style/Theme.Notatkon.PopupOverlay" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
<!--
|
||||
|
||||
<include layout="@layout/content_main" />
|
||||
-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/AppName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/_12sdp"
|
||||
android:layout_marginTop="@dimen/_20sdp"
|
||||
android:layout_marginEnd="@dimen/_12sdp"
|
||||
android:fontFamily="@font/bold"
|
||||
android:includeFontPadding="false"
|
||||
android:text="@string/my_notes"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_20ssp"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSearch"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginStart="@dimen/_12sdp"
|
||||
android:layout_marginEnd="@dimen/_12sdp"
|
||||
android:background="@drawable/background_search"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="@dimen/_10sdp"
|
||||
android:paddingEnd="@dimen/_10sdp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/AppName">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/_20sdp"
|
||||
android:layout_height="@dimen/_20sdp"
|
||||
android:contentDescription="@string/app_name"
|
||||
android:src="@drawable/ic_baseline_search_24"
|
||||
app:tint="@color/colorIcon" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/inputSearch"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/_35sdp"
|
||||
android:layout_marginStart="@dimen/_12sdp"
|
||||
android:background="@null"
|
||||
android:fontFamily="@font/regular"
|
||||
android:hint="@string/search"
|
||||
|
||||
android:imeOptions="actionDone"
|
||||
|
||||
android:importantForAutofill="no"
|
||||
android:includeFontPadding="false"
|
||||
android:inputType="text"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/colorTextHint"
|
||||
android:textSize="@dimen/_13ssp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- stary recyclerview
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/notes"
|
||||
android:layout_width="match_parent"
|
||||
@ -41,5 +101,6 @@
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
app:backgroundTint="?attr/colorPrimary"
|
||||
app:srcCompat="@drawable/ic_baseline_add_24" />
|
||||
-->
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue
Block a user