lid*_*ida 3 android android-layout
我正在尝试将EditText添加到我的应用中的操作栏,但该项目不可见 - 只有其标题.我知道它发生在动作栏上没有足够的空间,但我不知道它为什么 - 屏幕肯定不是太小,没有更多的项目,我也尝试改变布局高度和宽度的值,但没有作品.这是menu.xml中的项目:
 <item
    android:id="@+id/Title"
    android:title="Title"
    android:actionLayout="@layout/action_bar"
    app:showAsAction="ifRoom" />
这是action_bar.xml布局文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/editTitle
    android:hint="Title"
    android:background="#ffffff"
    android:textColor="#000000"
    android:gravity="right"
    />
| 归档时间: | 
 | 
| 查看次数: | 541 次 | 
| 最近记录: |