xujinyang / BiuEditText

biu,biu,一个有趣的EditText

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

文字没有飞入输入框

sabrechen opened this issue · comments

文字一直都是飞到最顶上,而不是依据输入框的位置飞入

能否看一下你的xml布局

我的也是,就在最上面的toolbar里面飞,附上布局
`

<android.support.v7.widget.Toolbar
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#99000099"
    android:theme="@style/Theme.ToolBar.ZhiHu"></android.support.v7.widget.Toolbar>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:padding="10dp">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="开启hook注入"/>

    <CheckBox
        android:id="@+id/cb_hooktest"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
</LinearLayout>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center_vertical"
    android:orientation="horizontal"
    android:padding="10dp">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="关键词"/>

    <me.james.biuedittext.BiuEditText
        android:id="@+id/et_keyword"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:textColor="#000000"
        app:biu_duration="800"
        app:biu_text_color="@android:color/white"
        app:biu_text_scale="1.5"
        app:biu_text_start_size="8sp"
        app:biu_type="flydown"/>

    <Button
        android:id="@+id/btn_add_keyword"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="添加"/>
</LinearLayout>

<ListView
    android:id="@+id/lv_hook_keyword_list"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

</ListView>
`