dodanie komponentu przycisku (zamiast fab)

This commit is contained in:
Naiki00 2021-02-15 18:36:15 +01:00
parent 0fa75c7cb3
commit 3229ab7f69

View File

@ -81,7 +81,7 @@
android:includeFontPadding="false" android:includeFontPadding="false"
android:inputType="text" android:inputType="text"
android:textColor="@color/white" android:textColor="@color/white"
android:textColorHint="@color/colorTextHint" android:textColorHint="@color/colorHint"
android:textSize="@dimen/_13ssp" /> android:textSize="@dimen/_13ssp" />
</LinearLayout> </LinearLayout>
@ -115,13 +115,13 @@
android:background="@color/colorQuickActionsBackground" android:background="@color/colorQuickActionsBackground"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal" android:orientation="horizontal"
android:padding="@dimen/_15sdp" android:padding="@dimen/_10sdp"
app:layout_constraintBottom_toBottomOf="parent" > app:layout_constraintBottom_toBottomOf="parent" >
<ImageView <ImageView
android:id="@+id/imageAddNote" android:id="@+id/imageAddNote"
android:layout_weight="0.5" android:layout_weight="0.5"
android:layout_width="@dimen/_10sdp" android:layout_width="@dimen/_23sdp"
android:layout_height="@dimen/_23sdp" android:layout_height="@dimen/_23sdp"
android:contentDescription="@string/app_name" android:contentDescription="@string/app_name"
android:src="@drawable/ic_baseline_add_circle_outline_24" android:src="@drawable/ic_baseline_add_circle_outline_24"
@ -149,16 +149,32 @@
</LinearLayout> </LinearLayout>
<ImageView
android:id="@+id/imgAddNote"
android:layout_width="@dimen/_40sdp"
android:layout_height="@dimen/_40sdp"
android:layout_marginEnd="@dimen/_30sdp"
android:background="@drawable/add_button"
android:src="@drawable/ic_baseline_add_24"
android:contentDescription="@string/app_name"
android:padding="@dimen/_5sdp"
app:layout_constraintBottom_toTopOf="@id/QuickActions"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/QuickActions"
app:tint="@color/colorPrimary" />
<!--
<com.google.android.material.floatingactionbutton.FloatingActionButton <com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab" android:id="@+id/fab"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|end" android:layout_gravity="bottom|end"
android:layout_margin="@dimen/_20sdp" android:layout_marginEnd="28dp"
android:layout_marginBottom="20dp"
app:backgroundTint="@color/colorAccent" app:backgroundTint="@color/colorAccent"
app:srcCompat="@drawable/ic_baseline_add_24"
app:layout_constraintTop_toTopOf="@+id/QuickActions"
app:layout_constraintBottom_toTopOf="@id/QuickActions" app:layout_constraintBottom_toTopOf="@id/QuickActions"
app:layout_constraintEnd_toEndOf="parent"/> app:layout_constraintEnd_toEndOf="parent"
app:srcCompat="@drawable/ic_baseline_add_24" />
app:layout_constraintTop_toTopOf="@+id/QuickActions" -->
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>