Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 8854d40

Browse files
author
Evgenii Kanivets
committed
#138[30m]. Fix a bug with 'add buttons'.
1 parent 1ca4cb9 commit 8854d40

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/src/main/res/drawable/selector_add_income.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<selector xmlns:android="http://schemas.android.com/apk/res/android">
33
<item android:state_pressed="false" android:drawable="@color/green_light"/>
44
<item android:state_pressed="true" android:drawable="@color/green_dark"/>
5-
</selector>
5+
</selector>

app/src/main/res/layout/content_main.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,16 @@
2424

2525
<Button
2626
android:id="@+id/btn_add_income"
27-
android:layout_width="match_parent"
27+
android:layout_width="0dp"
2828
android:layout_height="wrap_content"
29-
android:layout_gravity="end"
3029
android:layout_weight="1"
3130
android:background="@drawable/selector_add_income"
3231
android:padding="@dimen/normal_margin"
3332
android:text="@string/add_income" />
3433

3534
<Button
3635
android:id="@+id/btn_add_expense"
37-
android:layout_width="match_parent"
36+
android:layout_width="0dp"
3837
android:layout_height="wrap_content"
3938
android:layout_weight="1"
4039
android:background="@drawable/selector_add_expense"

0 commit comments

Comments
 (0)