Skip to content

Commit b23af8a

Browse files
committed
10" improvement
1 parent 608b906 commit b23af8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/src/main/java/info/mathphys/schatztruhe/ProductActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ProductActivity : AppCompatActivity() {
7070
* Calculate count of columns
7171
*/
7272
var columns: Int = 3
73-
if (words.size > 9){
73+
if (words.size > 12){
7474
columns = 4
7575
}
7676
recyclerView.layoutManager = GridLayoutManager(self, columns)

app/src/main/java/info/mathphys/schatztruhe/data/ProductsListAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ProductsListAdapter internal constructor(
3838
var is_red : Boolean = true
3939

4040
holder.wordItemView.text = current.name
41-
if (products.size < 10){
41+
if (products.size < 13){
4242
is_red = (position%2 == 0)
4343
} else {
4444
is_red = ((position+(position/4)%2)%2 == 0)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<RelativeLayout
1313
android:id="@+id/textViewBox"
1414
android:layout_width="fill_parent"
15-
android:layout_height="128dp"
15+
android:layout_height="160dp"
1616
android:padding="16dp"
1717
android:orientation="horizontal"
1818
android:layout_gravity="center"

0 commit comments

Comments
 (0)