Переделал цвет статус бара и нав бара. Дизаен экрана профиля
This commit is contained in:
parent
b7306b371a
commit
60d04a520b
@ -12,6 +12,17 @@
|
|||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
app:constraint_referenced_ids="logout,fullname,photo,position,lastEntry,scan" />
|
app:constraint_referenced_ids="logout,fullname,photo,position,lastEntry,scan" />
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView"
|
||||||
|
style="@style/Theme.UiTemplate.TextH1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/profile_main_textview"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/logout"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
android:id="@+id/loading"
|
android:id="@+id/loading"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -80,15 +91,6 @@
|
|||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:text="Something wrong. Try later" />
|
tools:text="Something wrong. Try later" />
|
||||||
|
|
||||||
<androidx.constraintlayout.helper.widget.Flow
|
|
||||||
android:id="@+id/buttons"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
app:constraint_referenced_ids="logout,refresh"
|
|
||||||
app:flow_horizontalGap="4dp"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
android:id="@+id/refresh"
|
android:id="@+id/refresh"
|
||||||
@ -98,8 +100,8 @@
|
|||||||
android:contentDescription="@string/profile_refresh_button"
|
android:contentDescription="@string/profile_refresh_button"
|
||||||
android:src="@drawable/ic_refresh"
|
android:src="@drawable/ic_refresh"
|
||||||
app:elevation="0dp"
|
app:elevation="0dp"
|
||||||
tools:layout_editor_absoluteX="323dp"
|
tools:layout_editor_absoluteX="167dp"
|
||||||
tools:layout_editor_absoluteY="170dp" />
|
tools:layout_editor_absoluteY="521dp" />
|
||||||
|
|
||||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
android:id="@+id/logout"
|
android:id="@+id/logout"
|
||||||
@ -109,8 +111,8 @@
|
|||||||
android:contentDescription="@string/profile_refresh_button"
|
android:contentDescription="@string/profile_refresh_button"
|
||||||
android:src="@drawable/ic_logout"
|
android:src="@drawable/ic_logout"
|
||||||
app:elevation="0dp"
|
app:elevation="0dp"
|
||||||
tools:layout_editor_absoluteX="166dp"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
tools:layout_editor_absoluteY="567dp" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
android:id="@+id/scan"
|
android:id="@+id/scan"
|
||||||
@ -121,4 +123,6 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:useCompatPadding="true" />
|
app:useCompatPadding="true" />
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -28,7 +28,7 @@
|
|||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
style="@style/Theme.UiTemplate.TextH1"
|
style="@style/Theme.UiTemplate.TextH2"
|
||||||
tools:text="This is test text with result scanning"
|
tools:text="This is test text with result scanning"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
|
@ -2,4 +2,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="profile_refresh_button">Refresh</string>
|
<string name="profile_refresh_button">Refresh</string>
|
||||||
<string name="profile_scan_button">Scan QR</string>
|
<string name="profile_scan_button">Scan QR</string>
|
||||||
|
<string name="profile_main_textview">Home</string>
|
||||||
</resources>
|
</resources>
|
@ -3,6 +3,8 @@
|
|||||||
<style name="Base.Theme.UiTemplate" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
<style name="Base.Theme.UiTemplate" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
||||||
<!-- Customize your light theme here. -->
|
<!-- Customize your light theme here. -->
|
||||||
<item name="colorPrimary">@color/AccentBlue</item>
|
<item name="colorPrimary">@color/AccentBlue</item>
|
||||||
|
<item name="colorPrimaryDark">@color/white</item>
|
||||||
|
<item name="android:navigationBarColor">@color/white</item>
|
||||||
<item name="android:colorBackground">@color/white</item>
|
<item name="android:colorBackground">@color/white</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user