|
|
@@ -91,11 +91,9 @@ public class TitleBar extends Toolbar {
|
|
91
|
91
|
@Override
|
|
92
|
92
|
public void run() {
|
|
93
|
93
|
if (params.titleBarTitleTextCentered) {
|
|
94
|
|
- int[] location = new int[2];
|
|
95
|
|
- titleView.getLocationOnScreen(location);
|
|
96
|
|
- titleView.setTranslationX(titleView.getTranslationX() + (-location[0] + ViewUtils.getScreenWidth() / 2 - titleView.getWidth() / 2));
|
|
|
94
|
+ titleView.setX(ViewUtils.getScreenWidth() / 2 - titleView.getWidth() / 2);
|
|
97
|
95
|
}
|
|
98
|
|
-
|
|
|
96
|
+
|
|
99
|
97
|
}
|
|
100
|
98
|
});
|
|
101
|
99
|
}
|