Skip to content
Snippets Groups Projects
Commit e7ebfbb4 authored by Putinabillaa's avatar Putinabillaa
Browse files

chore: minor improvement layout

parent 6c445a87
Branches
Tags
No related merge requests found
Pipeline #61506 canceled with stages
package com.example.myapplication.ui.chart package com.example.myapplication.ui.chart
import android.os.Bundle import android.os.Bundle
import android.util.TypedValue
import androidx.fragment.app.Fragment import androidx.fragment.app.Fragment
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View import android.view.View
...@@ -79,8 +80,9 @@ class ChartFragment : Fragment() { ...@@ -79,8 +80,9 @@ class ChartFragment : Fragment() {
dataSet.valueTextColor = ContextCompat.getColor(requireContext(), R.color.white) dataSet.valueTextColor = ContextCompat.getColor(requireContext(), R.color.white)
setEntryLabelColor(ContextCompat.getColor(requireContext(), R.color.white)) setEntryLabelColor(ContextCompat.getColor(requireContext(), R.color.white))
setEntryLabelTextSize(16f) setEntryLabelTextSize(16f)
setBackgroundColor(ContextCompat.getColor(requireContext(), R.color.black)) setHoleColor(TypedValue().apply {
setHoleColor(ContextCompat.getColor(requireContext(), R.color.black)) requireContext().theme.resolveAttribute(androidx.appcompat.R.attr.colorPrimary, this, true)
}.data)
setUsePercentValues(true) setUsePercentValues(true)
animateXY(1000, 1000) animateXY(1000, 1000)
invalidate() invalidate()
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
android:id="@+id/header" android:id="@+id/header"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/black" android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
tools:ignore="MissingConstraints"> tools:ignore="MissingConstraints">
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" app:layout_constraintTop_toBottomOf="@+id/textView"
android:textColor="@color/white" /> android:textColor="?attr/colorAccent" />
<TextView <TextView
android:id="@+id/tvPriceLabel" android:id="@+id/tvPriceLabel"
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" app:layout_constraintTop_toBottomOf="@+id/textView"
android:textColor="@color/white" android:textColor="?attr/colorAccent"
android:hint="@string/hint_tiPrice" android:hint="@string/hint_tiPrice"
android:textColorHint="@color/gray"/> android:textColorHint="@color/gray"/>
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
android:id="@+id/tiTitleEdit" android:id="@+id/tiTitleEdit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/white" /> android:textColor="?attr/colorAccent" />
<TextView <TextView
android:id="@+id/tvPriceLabel" android:id="@+id/tvPriceLabel"
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
android:id="@+id/tiPriceEdit" android:id="@+id/tiPriceEdit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/white" android:textColor="?attr/colorAccent"
android:hint="@string/hint_tiPrice" android:hint="@string/hint_tiPrice"
android:textColorHint="@color/gray"/> android:textColorHint="@color/gray"/>
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
android:maxLines="2" android:maxLines="2"
android:ellipsize="end" android:ellipsize="end"
android:textSize="16sp" android:textSize="16sp"
android:textColor="@color/white"/> android:textColor="?attr/colorAccent"/>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment