fixed the button separators changing width or missing when the main layout is set to 'Functional Keys'
This commit is contained in:
parent
29814793c8
commit
cecb8aca3b
2 changed files with 12 additions and 4 deletions
|
|
@ -70,10 +70,9 @@ class MainLayoutTray extends BaseMainLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
// separators
|
// separators
|
||||||
Drawable separatorColor = getSeparatorColor(view, dark);
|
|
||||||
for (View separator : getSeparators()) {
|
for (View separator : getSeparators()) {
|
||||||
if (separator != null) {
|
if (separator != null) {
|
||||||
separator.setBackground(separatorColor);
|
separator.setBackground(getSeparatorColor(separator, dark));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -100,10 +99,11 @@ class MainLayoutTray extends BaseMainLayout {
|
||||||
@Override
|
@Override
|
||||||
protected ArrayList<View> getSeparators() {
|
protected ArrayList<View> getSeparators() {
|
||||||
return new ArrayList<>(Arrays.asList(
|
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_1),
|
||||||
view.findViewById(R.id.separator_2_2),
|
view.findViewById(R.id.separator_2_2),
|
||||||
view.findViewById(R.id.separator_3_1),
|
view.findViewById(R.id.separator_3_1)
|
||||||
view.findViewById(R.id.separator_3_2)
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,10 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/separator_top"
|
||||||
|
style="@style/numRowSeparator" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="@dimen/candidate_height">
|
android:layout_height="@dimen/candidate_height">
|
||||||
|
|
@ -27,6 +31,10 @@
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/separator_candidates_bottom"
|
||||||
|
style="@style/numRowSeparator" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/main_soft_keys"
|
android:id="@+id/main_soft_keys"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue