Dodanie dolnych szybkich akcji i aktualizacja floating button
This commit is contained in:
parent
21892827f4
commit
93eee75704
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||||
|
android:viewportHeight="24" android:viewportWidth="24"
|
||||||
|
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M13,7h-2v4L7,11v2h4v4h2v-4h4v-2h-4L13,7zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8z"/>
|
||||||
|
</vector>
|
5
app/src/main/res/drawable/ic_baseline_image_24.xml
Normal file
5
app/src/main/res/drawable/ic_baseline_image_24.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||||
|
android:viewportHeight="24" android:viewportWidth="24"
|
||||||
|
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z"/>
|
||||||
|
</vector>
|
5
app/src/main/res/drawable/ic_baseline_language_24.xml
Normal file
5
app/src/main/res/drawable/ic_baseline_language_24.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||||
|
android:viewportHeight="24" android:viewportWidth="24"
|
||||||
|
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM18.92,8h-2.95c-0.32,-1.25 -0.78,-2.45 -1.38,-3.56 1.84,0.63 3.37,1.91 4.33,3.56zM12,4.04c0.83,1.2 1.48,2.53 1.91,3.96h-3.82c0.43,-1.43 1.08,-2.76 1.91,-3.96zM4.26,14C4.1,13.36 4,12.69 4,12s0.1,-1.36 0.26,-2h3.38c-0.08,0.66 -0.14,1.32 -0.14,2 0,0.68 0.06,1.34 0.14,2L4.26,14zM5.08,16h2.95c0.32,1.25 0.78,2.45 1.38,3.56 -1.84,-0.63 -3.37,-1.9 -4.33,-3.56zM8.03,8L5.08,8c0.96,-1.66 2.49,-2.93 4.33,-3.56C8.81,5.55 8.35,6.75 8.03,8zM12,19.96c-0.83,-1.2 -1.48,-2.53 -1.91,-3.96h3.82c-0.43,1.43 -1.08,2.76 -1.91,3.96zM14.34,14L9.66,14c-0.09,-0.66 -0.16,-1.32 -0.16,-2 0,-0.68 0.07,-1.35 0.16,-2h4.68c0.09,0.65 0.16,1.32 0.16,2 0,0.68 -0.07,1.34 -0.16,2zM14.59,19.56c0.6,-1.11 1.06,-2.31 1.38,-3.56h2.95c-0.96,1.65 -2.49,2.93 -4.33,3.56zM16.36,14c0.08,-0.66 0.14,-1.32 0.14,-2 0,-0.68 -0.06,-1.34 -0.14,-2h3.38c0.16,0.64 0.26,1.31 0.26,2s-0.1,1.36 -0.26,2h-3.38z"/>
|
||||||
|
</vector>
|
@ -93,14 +93,72 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/notes"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginStart="@dimen/_2sdp"
|
||||||
|
android:layout_marginEnd="@dimen/_2sdp"
|
||||||
|
android:clipToPadding="false"
|
||||||
|
android:paddingStart="0dp"
|
||||||
|
android:paddingEnd="@dimen/_12sdp"
|
||||||
|
android:paddingBottom="@dimen/_12sdp"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/QuickActions"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/layoutSearch" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/QuickActions"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@color/colorQuickActionsBackground"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:padding="@dimen/_15sdp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent" >
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageAddNote"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:layout_width="@dimen/_10sdp"
|
||||||
|
android:layout_height="@dimen/_23sdp"
|
||||||
|
android:contentDescription="@string/app_name"
|
||||||
|
android:src="@drawable/ic_baseline_add_circle_outline_24"
|
||||||
|
app:tint="@color/colorIcon" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageAddImage"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:layout_width="@dimen/_10sdp"
|
||||||
|
android:layout_height="@dimen/_23sdp"
|
||||||
|
android:layout_marginStart="@dimen/_5sdp"
|
||||||
|
android:layout_marginEnd="@dimen/_5sdp"
|
||||||
|
android:contentDescription="@string/app_name"
|
||||||
|
android:src="@drawable/ic_baseline_image_24"
|
||||||
|
app:tint="@color/colorIcon" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageAddWebLink"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:layout_width="@dimen/_20sdp"
|
||||||
|
android:layout_height="@dimen/_23sdp"
|
||||||
|
android:contentDescription="@string/app_name"
|
||||||
|
android:src="@drawable/ic_baseline_language_24"
|
||||||
|
app:tint="@color/colorIcon" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<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/fab_margin"
|
android:layout_margin="@dimen/_20sdp"
|
||||||
app:backgroundTint="?attr/colorPrimary"
|
app:backgroundTint="@color/colorAccent"
|
||||||
app:srcCompat="@drawable/ic_baseline_add_24" />
|
app:srcCompat="@drawable/ic_baseline_add_24"
|
||||||
-->
|
app:layout_constraintTop_toTopOf="@+id/QuickActions"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/QuickActions"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"/>
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue
Block a user