mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-07 19:26:02 +00:00
fix minor graphical issues
This commit is contained in:
parent
4c65e79356
commit
0c44813a0e
6 changed files with 34 additions and 8 deletions
8
Habitica/res/drawable/checklist_checkbox.xml
Normal file
8
Habitica/res/drawable/checklist_checkbox.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_checked="true" android:drawable="@drawable/checklist_checked" />
|
||||
<item android:state_checked="false" android:drawable="@drawable/checklist_unchecked" />
|
||||
|
||||
</selector>
|
||||
15
Habitica/res/drawable/checklist_checked.xml
Normal file
15
Habitica/res/drawable/checklist_checked.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<corners android:radius="@dimen/daily_checkbox_corner_radius"/>
|
||||
<solid android:color="@color/checkbox_checklist_fill" />
|
||||
<size android:height="@dimen/checkbox_size" android:width="@dimen/checkbox_size" />
|
||||
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<bitmap android:src="@drawable/ic_check" android:gravity="center" />
|
||||
</item>
|
||||
</layer-list>
|
||||
8
Habitica/res/drawable/checklist_unchecked.xml
Normal file
8
Habitica/res/drawable/checklist_unchecked.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<corners android:radius="@dimen/daily_checkbox_corner_radius"/>
|
||||
<solid android:color="@color/checkbox_checklist_fill" />
|
||||
<size android:height="@dimen/checkbox_size" android:width="@dimen/checkbox_size" />
|
||||
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
|
||||
</shape>
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
android:layout_height="@dimen/checkbox_size"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:button="@drawable/daily_checkbox"
|
||||
android:button="@drawable/checklist_checkbox"
|
||||
android:layout_gravity="center_horizontal" />
|
||||
</RelativeLayout>
|
||||
<net.pherth.android.emoji_library.EmojiTextView
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@
|
|||
<color name="task_gray">#b7b7b7</color>
|
||||
<color name="checkbox_fill">#50ffffff</color>
|
||||
<color name="checkbox_checked_fill">#c8ffffff</color>
|
||||
<color name="checkbox_stroke">#32000000</color>
|
||||
<color name="checkbox_checklist_fill">#23000000</color>
|
||||
|
||||
<color name="habit_inactive_gray">#F9F9F9</color>
|
||||
|
||||
|
|
|
|||
|
|
@ -157,12 +157,7 @@ public class ChallengesListViewAdapter extends RecyclerView.Adapter<ChallengesLi
|
|||
arrowImage.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (challenge.prize == 0) {
|
||||
//gem_prize_layout.setVisibility(View.GONE);
|
||||
} else {
|
||||
//gem_prize_layout.setVisibility(View.VISIBLE);
|
||||
gemPrizeTextView.setText(String.valueOf(challenge.prize));
|
||||
}
|
||||
gemPrizeTextView.setText(String.valueOf(challenge.prize));
|
||||
}
|
||||
|
||||
public static String getLabelByTypeAndCount(Context context, String type, int count) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue