【发布时间】:2018-04-05 15:05:37
【问题描述】:
<RelativeLayout>
<AppBarLayout>
...
</AppBarLayout>
<LinearLayout
android:id="@+id/tool_list"
android:layout_width="match_parent"
android:layout_height="@dimen/editor_item_size"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
...
</LinearLayout>
<ScrollView
android:id="@+id/custom_setting_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/tool_list"
android:layout_below="@id/appBarLayout">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/category_area"
android:layout_width="match_parent"
android:layout_height="56dp">
...
</LinearLayout>
<LinearLayout
android:id="@+id/title_area"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_below="@id/category_area"
android:orientation="horizontal">
<TextView
android:layout_width="@dimen/editor_item_size"
android:layout_height="match_parent"/>
<EditText
android:id="@+id/title_edit"
android:layout_width="match_parent"
android:layout_height="40dp"/>
</LinearLayout>
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/title_area"
android:background="@color/colorDivider" />
<jp.wasabeef.richeditor.RichEditor
android:id="@+id/editor"
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_below="@id/divider"/>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
这是我的 writeActivity.xml
当我像这样点击title_edit时。
我想要下图这样的流程。
但它并没有按照我想要的方式工作。
它是这样工作的。
我认为我以前可以这样做,但我认为我错了。
我添加了一个滚动视图,但它似乎没有任何区别。
我该怎么做图2?
【问题讨论】:
-
呃...是richeditor造成的吗?它继承了 webview。
标签: android android-softkeyboard android-scrollview android-relativelayout