Skip to content

Commit e64da8e

Browse files
authored
suggestions: Reduce text size and add padding (#1296)
1 parent 8532acf commit e64da8e

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

res/values/styles.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@
1111
<item name="android:layout_width">match_parent</item>
1212
<item name="android:layout_height">match_parent</item>
1313
<item name="android:layout_weight">1</item>
14+
<item name="android:paddingHorizontal">@dimen/candidates_padding</item>
1415
<item name="android:gravity">center</item>
1516
<item name="android:textColor">?attr/colorLabel</item>
16-
<item name="android:layout_width">match_parent</item>
17-
<item name="android:layout_height">match_parent</item>
18-
<item name="android:layout_weight">1</item>
19-
<item name="android:textColor">?attr/colorLabel</item>
2017
<item name="android:maxLines">1</item>
2118
</style>
2219
<style name="candidates_emoji">

srcs/juloo.keyboard2/suggestions/CandidatesView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ void set_sizes(Config config)
9797
{
9898
// Make the candidates view about as high as a keyboard row.
9999
int height = (int)(config.keyboard_rows_height_pixels * (1 - config.key_vertical_margin));
100-
// Match the size of labels on the keyboard, increased by 15%.
101-
float text_size = height * config.characterSize * config.labelTextSize * 1.15f;
100+
// Match the size of labels on the keyboard.
101+
float text_size = height * config.characterSize * config.labelTextSize;
102102
for (int i = 0; i < NUM_CANDIDATES; i++)
103103
{
104104
TextView v = _item_views[i];

0 commit comments

Comments
 (0)