address some warnings, remove "state_has_morekeys" drawabled from holo key popup

This commit is contained in:
Helium314 2023-09-04 16:28:18 +02:00
parent e6d4c4f604
commit 7eaba95f01
3 changed files with 4 additions and 8 deletions

View file

@ -24,7 +24,8 @@ import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.Gravity;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatTextView;
import org.dslul.openboard.inputmethod.keyboard.Key;
import org.dslul.openboard.inputmethod.latin.R;
@ -34,7 +35,7 @@ import java.util.HashSet;
/**
* The pop up key preview view.
*/
public class KeyPreviewView extends TextView {
public class KeyPreviewView extends AppCompatTextView {
public static final int POSITION_MIDDLE = 0;
public static final int POSITION_LEFT = 1;
public static final int POSITION_RIGHT = 2;

View file

@ -41,6 +41,7 @@ public final class InputView extends FrameLayout {
@Override
protected void onFinishInflate() {
super.onFinishInflate();
final SuggestionStripView suggestionStripView =
findViewById(R.id.suggestion_strip_view);
mMainKeyboardView = findViewById(R.id.keyboard_view);

View file

@ -19,18 +19,12 @@
xmlns:latin="http://schemas.android.com/apk/res-auto"
>
<!-- Left edge -->
<item latin:state_left_edge="true" latin:state_has_morekeys="true"
android:drawable="@drawable/keyboard_key_feedback_left_more_background_klp" />
<item latin:state_left_edge="true"
android:drawable="@drawable/keyboard_key_feedback_left_background_klp" />
<!-- Right edge -->
<item latin:state_right_edge="true" latin:state_has_morekeys="true"
android:drawable="@drawable/keyboard_key_feedback_right_more_background_klp" />
<item latin:state_right_edge="true"
android:drawable="@drawable/keyboard_key_feedback_right_background_klp" />
<item latin:state_has_morekeys="true"
android:drawable="@drawable/keyboard_key_feedback_more_background_klp" />
<item android:drawable="@drawable/keyboard_key_feedback_background_klp" />
</selector>