1
0
Fork 0

fixed the button separators changing width or missing when the main layout is set to 'Functional Keys'

This commit is contained in:
sspanak 2024-05-30 16:09:22 +03:00 committed by Dimo Karaivanov
parent 29814793c8
commit cecb8aca3b
2 changed files with 12 additions and 4 deletions

View file

@ -70,10 +70,9 @@ class MainLayoutTray extends BaseMainLayout {
}
// separators
Drawable separatorColor = getSeparatorColor(view, dark);
for (View separator : getSeparators()) {
if (separator != null) {
separator.setBackground(separatorColor);
separator.setBackground(getSeparatorColor(separator, dark));
}
}
}
@ -100,10 +99,11 @@ class MainLayoutTray extends BaseMainLayout {
@Override
protected ArrayList<View> getSeparators() {
return new ArrayList<>(Arrays.asList(
view.findViewById(R.id.separator_top),
view.findViewById(R.id.separator_candidates_bottom),
view.findViewById(R.id.separator_2_1),
view.findViewById(R.id.separator_2_2),
view.findViewById(R.id.separator_3_1),
view.findViewById(R.id.separator_3_2)
view.findViewById(R.id.separator_3_1)
));
}
}

View file

@ -5,6 +5,10 @@
android:layout_height="wrap_content"
android:orientation="vertical">
<View
android:id="@+id/separator_top"
style="@style/numRowSeparator" />
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="@dimen/candidate_height">
@ -27,6 +31,10 @@
</FrameLayout>
<View
android:id="@+id/separator_candidates_bottom"
style="@style/numRowSeparator" />
<LinearLayout
android:id="@+id/main_soft_keys"
android:layout_width="match_parent"