Remove minimum width from clipboard item
This commit is contained in:
parent
891fe2e3c4
commit
920514554d
3 changed files with 1 additions and 4 deletions
|
@ -103,13 +103,12 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared
|
|||
|
||||
@RequiresApi(Build.VERSION_CODES.R)
|
||||
override fun onCreateInlineSuggestionsRequest(uiExtras: Bundle): InlineSuggestionsRequest {
|
||||
val minWidth = resources.getDimensionPixelSize(R.dimen.suggestion_min_width)
|
||||
val maxWidth = resources.getDimensionPixelSize(R.dimen.suggestion_max_width)
|
||||
|
||||
return InlineSuggestionsRequest.Builder(
|
||||
listOf(
|
||||
InlinePresentationSpec.Builder(
|
||||
Size(minWidth, ViewGroup.LayoutParams.WRAP_CONTENT),
|
||||
Size(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT),
|
||||
Size(maxWidth, ViewGroup.LayoutParams.WRAP_CONTENT)
|
||||
).setStyle(buildSuggestionTextStyle()).build()
|
||||
)
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
android:ellipsize="end"
|
||||
android:gravity="center"
|
||||
android:lines="1"
|
||||
android:minWidth="@dimen/suggestion_min_width"
|
||||
android:paddingStart="@dimen/activity_margin"
|
||||
android:paddingTop="@dimen/small_margin"
|
||||
android:paddingEnd="@dimen/activity_margin"
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
<dimen name="emoji_top_bar_elevation">4dp</dimen>
|
||||
<dimen name="emoji_palette_btn_size">42dp</dimen>
|
||||
<dimen name="suggestion_max_width">200dp</dimen>
|
||||
<dimen name="suggestion_min_width">100dp</dimen>
|
||||
|
||||
<dimen name="keyboard_text_size">22sp</dimen>
|
||||
<dimen name="preview_text_size">26sp</dimen>
|
||||
|
|
Loading…
Reference in a new issue