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
|
||||
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)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue