Purrty checkboxes also fuck android
This commit is contained in:
@@ -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());
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user