Giter Site home page Giter Site logo

preferencefragment's Introduction

PreferenceFragment实验

打开app,显示主界面如图:

主界面1

点击程序设置选项,进入设置页面,共有四组设置,In-line preferences,Dialog-based preferences,Launch preferences,Preference attributes:

主界面2

勾选In-line preferences中的CheckBoxPreference:

CheckBoxPreference

点击Dialog-based preferences中的EditTextPreference,弹出编辑框:

EditTextPreference

可进行文字编辑:

EditText

重新点击进入,编辑内容仍在:

EditText

点击Dialog-based preferences中的ListPreference,弹出列表框:

ListPreference

可进行单选:

Choose One

点击Launch preferences中的Screen preference,跳转到另一个PreferenceScreen:

Screen preference

可勾选:

NewPreferenceScreen

点击Launch preferences中的Intent preference,自动调用手机默认浏览器,访问设定网址http://www.csdn.net:

Intent preference

最后一组设置,可以看见,上面选项呈现(未勾选时),下面选项不呈现:

PhCn

勾选父选项,子选项呈现:

Parent

可勾选子选项:

Child

preferencefragment's People

Contributors

douerza avatar

Watchers

James Cloos avatar

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.