mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-24 00:26:22 +00:00
address some warnings, remove "state_has_morekeys" drawabled from holo key popup
This commit is contained in:
parent
e6d4c4f604
commit
7eaba95f01
3 changed files with 4 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue