8000 GitHub - kam520c/KeyBoardView: 使用BaseRecyclerViewAdapterHelper的自定义数字和字母键盘
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kam520c/KeyBoardView

Repository files navigation

KeyBoardView

自定义键盘 image

image

Gradle example

allprojects {
        repositories {
            jcenter()
            maven { url "https://jitpack.io" }
        }
   }
   dependencies {
        compile 'com.github.kam520c:KeyBoardView:1.0'
   }

Sample (更多用法详见示例项目)

public class MainActivity extends AppCompatActivity {
    MyKeyBoardView keyboardView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        keyboardView = (MyKeyBoardView) findViewById(R.id.keyboardView);
        EventBus.getDefault().register(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        EventBus.getDefault().unregister(this);
    }

    @Subscribe(threadMode = ThreadMode.MAIN)
    public void getEditText(final KamEditText myEditText) {
        keyboardView.setEditText(myEditText);
    }

}

xml中:

        <com.example.kamkeyboard.custom.MyKeyBoardView
            android:id="@+id/keyboardView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

edittext:

        <com.example.kamkeyboard.custom.KamEditText
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@null"/>

About

使用BaseRecyclerViewAdapterHelper的自定义数字和字母键盘

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0