Skip to content

Commit

Permalink
2.0.11: black background, compact Date and time UI, and faster row se…
Browse files Browse the repository at this point in the history
…lection in lists.
  • Loading branch information
Mikhail Barashkov committed Jun 24, 2020
1 parent 4eaa23d commit 8d5d3bc
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 37 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ android {
applicationId "com.handydev.financier"
minSdkVersion 21
targetSdkVersion 29
versionCode 210
versionName "2.0.10"
versionCode 211
versionName "2.0.11"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
javaCompileOptions {
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/assets/whatsnew.htm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
</head>
<body>

<p><b>2.0.11</b></p>
<p>
[*] Background is black again!<br/>
[*] Date and time selection UI is more compact now.<br/>
[*] Faster selection of rows in Accounts and Blotters.<br/>
</p>

<p><b>2.0.10</b></p>
<p>
[*] Fixed parent category selection.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,10 @@ public void bindView(View view, Context context, Cursor cursor) {
}

protected void alternateColorIfNeeded(AccountListItemHolder v, Context context, Cursor cursor) {
if(MyPreferences.isAccountAlternateColors(context)) {
if(cursor.getPosition() % 2 == 1) {
v.layout.setBackgroundColor(Color.argb(255, 31, 31, 31));
} else {
v.layout.setBackgroundColor(Color.TRANSPARENT);
}
if(MyPreferences.isAccountAlternateColors(context) && cursor.getPosition() % 2 == 1) {
v.layout.setBackgroundColor(context.getResources().getColor(R.color.alternate_row));
} else {
v.layout.setBackgroundColor(Color.TRANSPARENT);
v.layout.setBackgroundColor(context.getResources().getColor(R.color.global_background));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,10 @@ public void onClick(View arg0) {
}

protected void alternateColorIfNeeded(BlotterViewHolder v, Context context, Cursor cursor) {
if(MyPreferences.isBlotterAlternateColors(context)) {
if(cursor.getPosition() %2 == 1) {
v.layout.setBackgroundColor(Color.argb(255, 31, 31, 31));
} else {
v.layout.setBackgroundColor(Color.TRANSPARENT);
}
if(MyPreferences.isAccountAlternateColors(context) && cursor.getPosition() % 2 == 1) {
v.layout.setBackgroundColor(context.getResources().getColor(R.color.alternate_row));
} else {
v.layout.setBackgroundColor(Color.TRANSPARENT);
v.layout.setBackgroundColor(context.getResources().getColor(R.color.global_background));
}
}

Expand Down
11 changes: 1 addition & 10 deletions app/src/main/res/layout/account_list_item.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!--
Copyright (c) 2010 Denis Solonenko.
All rights reserved. This program and the accompanying materials
are made available under the terms of the GNU Public License v2.0
which accompanies this distribution, and is available at
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Contributors:
Denis Solonenko - initial API and implementation
-->
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/layout/filter_period_select.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
android:orientation="vertical" android:layout_width="wrap_content"
android:layout_height="wrap_content">
<DatePicker android:layout_width="wrap_content"
android:datePickerMode="spinner"
android:spinnersShown="false"
android:layout_height="wrap_content" android:id="@+id/date"/>
<TimePicker android:layout_width="wrap_content"
android:timePickerMode="spinner"
android:layout_height="wrap_content" android:layout_gravity="center"
android:id="@+id/time" />
<include layout="@layout/ok_cancel_buttons" />
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@
<color name="material_cyan">#00BCD4</color>
<color name="material_brown">#795548</color>
<color name="calculator_background">#424242</color>
<color name="global_background">#000000</color>
<color name="alternate_row">#1F1F1F</color>
</resources>
15 changes: 4 additions & 11 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
<?xml version="1.0" encoding="utf-8"?><!--
Copyright (c) 2010 Denis Solonenko.
All rights reserved. This program and the accompanying materials
are made available under the terms of the GNU Public License v2.0
which accompanies this distribution, and is available at
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Contributors:
Denis Solonenko - initial API and implementation
-->
<?xml version="1.0" encoding="utf-8"?>
<resources>

<style name="AppTheme" parent="Theme.AppCompat.NoActionBar" />
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar" >
<item name="android:windowBackground">@color/global_background</item>
</style>

<style name="TextAppearance" parent="android:TextAppearance.Small">
<item name="android:textStyle">normal</item>
Expand Down

0 comments on commit 8d5d3bc

Please sign in to comment.