Purrty checkboxes also fuck android

This commit is contained in:
kdeschuy
2017-07-28 19:15:27 +02:00
parent f5962553f9
commit 2ec057f25b
6 changed files with 13 additions and 14 deletions

View File

@@ -7,9 +7,7 @@ import android.widget.CheckBox;
import android.widget.CompoundButton; import android.widget.CompoundButton;
import android.widget.EditText; import android.widget.EditText;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.Toast;
import be.mathsaey.stoofnogaan.R;
import be.mathsaey.stoofnogaan.data.Task; import be.mathsaey.stoofnogaan.data.Task;
public class TaskView extends LinearLayout { public class TaskView extends LinearLayout {
@@ -30,6 +28,7 @@ public class TaskView extends LinearLayout {
checkBox = findViewById(R.id.checkBox); checkBox = findViewById(R.id.checkBox);
textView = findViewById(R.id.textView); textView = findViewById(R.id.textView);
checkBox.setChecked(t.getStatus()); checkBox.setChecked(t.getStatus());
textView.setText(t.getText()); textView.setText(t.getText());

View File

@@ -7,7 +7,7 @@
<!-- set the shadow color here --> <!-- set the shadow color here -->
<stroke <stroke
android:width="2dp" android:width="2dp"
android:color="@color/colorDropShadow" /> android:color="@color/darklight" />
<padding <padding
android:bottom="2dp" android:bottom="2dp"
@@ -23,7 +23,7 @@
<item> <item>
<shape> <shape>
<solid android:color="@color/colorWhite" /> <solid android:color="@color/white" />
<corners android:radius="3dp" /> <corners android:radius="3dp" />
</shape> </shape>
</item> </item>

View File

@@ -7,7 +7,7 @@
<!-- set the shadow color here --> <!-- set the shadow color here -->
<stroke <stroke
android:width="2dp" android:width="2dp"
android:color="@color/colorDropShadow" /> android:color="@color/darklight" />
<padding <padding
android:bottom="2dp" android:bottom="2dp"
@@ -23,7 +23,7 @@
<item> <item>
<shape> <shape>
<solid android:color="@color/colorWhite" /> <solid android:color="@color/white" />
<corners android:radius="3dp" /> <corners android:radius="3dp" />
</shape> </shape>
</item> </item>

View File

@@ -5,7 +5,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/colorLight" android:background="@color/light"
android:paddingLeft="16dp" android:paddingLeft="16dp"
android:paddingRight="16dp" android:paddingRight="16dp"
app:flexDirection="column" app:flexDirection="column"

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<color name="colorWhite">#FFF</color> <color name="white">#FFF</color>
<color name="colorLight">#FFF8E1</color> <color name="light">#FFF8E1</color>
<color name="colorOrange">#FF7F2A</color> <color name="orange">#FF7F2A</color>
<color name="colorTeal">#5FD3BC</color> <color name="teal">#5FD3BC</color>
<color name="colorDropShadow">#E6DDBF</color> <color name="darklight">#E6DDBF</color>
<color name="colorBrown">#552200</color> <color name="brown">#552200</color>
</resources> </resources>

View File

@@ -1,7 +1,7 @@
<resources> <resources>
<!-- Base application theme. --> <!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Holo.NoActionBar"> <style name="AppTheme" parent="android:Theme.Material.Light.NoActionBar">
<!-- Customize your theme here. --> <!-- Customize your theme here. -->
</style> </style>