小编and*_*ava的帖子

如何保存ListView的滚动位置

当我在ListView中选择一个项目时,如何保存ListView的滚动位置,并且我想在同一个ListView中返回.

假设我们有两个片段 - ListFragment和SomeOtherFragment.我们用SomeOtherFragment替换ListFragment.

    FragmentManager manager = getFragmentManager();
    FragmentTransaction transaction = manager.beginTransaction();

    transaction.replace(R.id.content_frame, fragment);
    transaction.addToBackStack(null);
    transaction.commit();
Run Code Online (Sandbox Code Playgroud)

android

6
推荐指数
2
解决办法
2883
查看次数

如何在 AutoCompleteTextView 中创建干净的按钮

如何在 AutoCompleteTextView 中创建干净的按钮

如何在 AutoCompleteTextView 中创建干净的按钮,当我单击清除按钮时,我想清除 AutoCompleteTextView 中的所有文本,见图

android

5
推荐指数
1
解决办法
8921
查看次数

How can I move button with keyboard when keyboard is opened

How can I move button like below image : 在此处输入图片说明tton when keyboard is show display.

android android-keypad

-1
推荐指数
1
解决办法
1411
查看次数

标签 统计

android ×3

android-keypad ×1