GithubHelp home page GithubHelp logo

按下返回键页面空白 about citypicker HOT 1 CLOSED

zaaach avatar zaaach commented on July 17, 2024
按下返回键页面空白

from citypicker.

Comments (1)

SoulOH avatar SoulOH commented on July 17, 2024

本人也遇到了这个问题,至今原因不明。
我当初用这个库的时侯new了一个CItyPickerActivity专门显示这个界面,结果别的什么都正常,就是点返回键后一片空白。
参照demo发现没有必要专门去new Activity,像这个界面一般是要点击一个“按钮”(打引号仅表示按钮不一定是Button,可以是任何能点的东西)才出现,如果直接在用那个“按钮”的Activity改主题,然后在那个“按钮”的setOnClickListener那里写

CityPicker.getInstance()
 .setFragmentManager(getSupportFragmentManager())	//此方法必须调用
 /*一大堆,见文档*/
 .show();

然后按返回键就没有问题了。

from citypicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.