mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-08 07:37:41 +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.AttributeSet;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
import android.view.Gravity;
|
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.keyboard.Key;
|
||||||
import org.dslul.openboard.inputmethod.latin.R;
|
import org.dslul.openboard.inputmethod.latin.R;
|
||||||
|
@ -34,7 +35,7 @@ import java.util.HashSet;
|
||||||
/**
|
/**
|
||||||
* The pop up key preview view.
|
* 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_MIDDLE = 0;
|
||||||
public static final int POSITION_LEFT = 1;
|
public static final int POSITION_LEFT = 1;
|
||||||
public static final int POSITION_RIGHT = 2;
|
public static final int POSITION_RIGHT = 2;
|
||||||
|
|
|
@ -41,6 +41,7 @@ public final class InputView extends FrameLayout {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onFinishInflate() {
|
protected void onFinishInflate() {
|
||||||
|
super.onFinishInflate();
|
||||||
final SuggestionStripView suggestionStripView =
|
final SuggestionStripView suggestionStripView =
|
||||||
findViewById(R.id.suggestion_strip_view);
|
findViewById(R.id.suggestion_strip_view);
|
||||||
mMainKeyboardView = findViewById(R.id.keyboard_view);
|
mMainKeyboardView = findViewById(R.id.keyboard_view);
|
||||||
|
|
|
@ -19,18 +19,12 @@
|
||||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||||
>
|
>
|
||||||
<!-- Left edge -->
|
<!-- 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"
|
<item latin:state_left_edge="true"
|
||||||
android:drawable="@drawable/keyboard_key_feedback_left_background_klp" />
|
android:drawable="@drawable/keyboard_key_feedback_left_background_klp" />
|
||||||
|
|
||||||
<!-- Right edge -->
|
<!-- 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"
|
<item latin:state_right_edge="true"
|
||||||
android:drawable="@drawable/keyboard_key_feedback_right_background_klp" />
|
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" />
|
<item android:drawable="@drawable/keyboard_key_feedback_background_klp" />
|
||||||
</selector>
|
</selector>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue