Archived
Improved the look of cards, removed redundant code
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorBackground"
|
||||
app:layout_scrollFlags="scroll|enterAlwaysCollapsed"
|
||||
app:popupTheme="@style/AppThemeLight.PopupOverlay"
|
||||
app:titleTextColor="?attr/colorAccent"
|
||||
app:contentInsetStart="0dp">
|
||||
app:contentInsetStart="0dp"
|
||||
app:layout_scrollFlags="scroll|enterAlwaysCollapsed">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -89,7 +89,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:layout_marginBottom="0dp"
|
||||
app:elevation="0px"
|
||||
app:elevation="0dp"
|
||||
app:itemIconTint="@color/bottom_nav_color_avhblue"
|
||||
app:itemTextColor="@color/bottom_nav_color_avhblue"
|
||||
app:layout_anchor="@+id/bottom_sheet"
|
||||
|
||||
@@ -15,25 +15,29 @@
|
||||
android:id="@+id/colourRed"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/red"/>
|
||||
android:backgroundTint="@color/red"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourPink"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/pink"/>
|
||||
android:backgroundTint="@color/pink"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourPurple"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/purple"/>
|
||||
android:backgroundTint="@color/purple"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourDeepPurple"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/deeppurple"/>
|
||||
android:backgroundTint="@color/deeppurple"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
</TableRow>
|
||||
|
||||
@@ -45,25 +49,29 @@
|
||||
android:id="@+id/colourLavender"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/lavender"/>
|
||||
android:backgroundTint="@color/lavender"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourIndigo"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/indigo"/>
|
||||
android:backgroundTint="@color/indigo"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourBlue"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/blue"/>
|
||||
android:backgroundTint="@color/blue"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourLightBlue"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/lightblue"/>
|
||||
android:backgroundTint="@color/lightblue"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
</TableRow>
|
||||
|
||||
@@ -75,25 +83,29 @@
|
||||
android:id="@+id/colourTeal"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/teal"/>
|
||||
android:backgroundTint="@color/teal"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourGreen"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/green"/>
|
||||
android:backgroundTint="@color/green"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourYellow"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/yellow"/>
|
||||
android:backgroundTint="@color/yellow"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourOrange"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/orange"/>
|
||||
android:backgroundTint="@color/orange"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
</TableRow>
|
||||
|
||||
@@ -112,25 +124,29 @@
|
||||
android:id="@+id/colourNeonRed"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/neonred"/>
|
||||
android:backgroundTint="@color/neonred"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourNeonPink"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/neonpink"/>
|
||||
android:backgroundTint="@color/neonpink"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourNeonPurple"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/neonpurple"/>
|
||||
android:backgroundTint="@color/neonpurple"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourNeonDeepPurple"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/neondeeppurple"/>
|
||||
android:backgroundTint="@color/neondeeppurple"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
</TableRow>
|
||||
|
||||
@@ -142,25 +158,29 @@
|
||||
android:id="@+id/colourNeonBlue"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/neonblue"/>
|
||||
android:backgroundTint="@color/neonblue"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourNeonGreen"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/neongreen"/>
|
||||
android:backgroundTint="@color/neongreen"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourNeonYellow"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/neonyellow"/>
|
||||
android:backgroundTint="@color/neonyellow"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/colourNeonOrange"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/neonorange"/>
|
||||
android:backgroundTint="@color/neonorange"
|
||||
app:cornerRadius="16dp"/>
|
||||
|
||||
</TableRow>
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
android:background="?attr/colorBackground">
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/nsvsettings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true">
|
||||
@@ -129,6 +130,40 @@
|
||||
app:layout_constraintStart_toStartOf="@+id/txtDark"
|
||||
app:layout_constraintTop_toTopOf="@+id/txtDark" />
|
||||
|
||||
<!-- a-->
|
||||
<TextView
|
||||
android:id="@+id/txtHideInfo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="@string/showinfo"
|
||||
android:textColor="?attr/colorText"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintStart_toStartOf="@+id/txtRestart"
|
||||
app:layout_constraintTop_toBottomOf="@+id/txtRestart" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtHideInfo2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/swipeindependent"
|
||||
android:textColor="?attr/colorHint"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintStart_toStartOf="@+id/txtHideInfo"
|
||||
app:layout_constraintTop_toBottomOf="@+id/txtHideInfo" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/switchHideInfo"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:gravity="end|center"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/txtHideInfo2"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="@+id/txtHideInfo"
|
||||
app:layout_constraintTop_toTopOf="@+id/txtHideInfo" />
|
||||
<!-- a-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtCustomiseColours1"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -137,8 +172,8 @@
|
||||
android:text="@string/customisecolor1"
|
||||
android:textColor="?attr/colorText"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintStart_toStartOf="@+id/txtRestart"
|
||||
app:layout_constraintTop_toBottomOf="@+id/txtRestart" />
|
||||
app:layout_constraintStart_toStartOf="@+id/txtHideInfo2"
|
||||
app:layout_constraintTop_toBottomOf="@+id/txtHideInfo2" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtCustomiseColours2"
|
||||
@@ -164,7 +199,7 @@
|
||||
app:layout_constraintBottom_toTopOf="@+id/txtFilter"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/txtRestart" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/txtHideInfo2" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtFilter"
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:backgroundTint="?attr/colorBackgroundCard"
|
||||
app:cardCornerRadius="4dp"
|
||||
app:cardCornerRadius="8dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:layout_marginBottom="1dp"
|
||||
app:cardElevation="1dp">
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_marginBottom="3dp"
|
||||
app:cardElevation="2dp">
|
||||
|
||||
<!--app:cardUseCompatPadding="true"-->
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
app:cardCornerRadius="4dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:layout_marginBottom="1dp"
|
||||
app:cardElevation="1dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_marginBottom="3dp"
|
||||
app:cardElevation="2dp"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout
|
||||
|
||||
Reference in New Issue
Block a user