Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19435] Android: Change Preference Activity to Preference Fragment

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-09-21T22:25:26.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.1.0
ComponentsAndroid
Labelsn/a
ReporterAshraf Abu
AssigneeAshraf Abu
Created2015-08-31T02:03:21.000+0000
Updated2015-11-13T08:45:01.000+0000

Description

Comments

  1. Ashraf Abu 2015-09-08

    Test Code: Add file at platform/android/res/xml/preferences.xml
       <?xml version="1.0" encoding="utf-8"?>
       <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:title="TITLE">
           <CheckBoxPreference
               android:key="key1"
               android:title="this is key 1"
               android:summary="key 1 summary"
               android:defaultValue="false" />
           <CheckBoxPreference
               android:key="key2"
               android:title="this is key 2"
               android:summary="key 2 summary"
               android:defaultValue="false" />
       </PreferenceScreen>
       
    Add code to class app.js
       Ti.UI.Android.openPreferences();
       
    Test this code on Android 4.x, 5.x and 6.0 and ensure there is a Toolbar at the top. PR: https://github.com/appcelerator/titanium_mobile/pull/7134
  2. Lokesh Choudhary 2015-10-20

    Verified the implementation. The preference fragment looks same on android 6.0, android 5.1.1 & android 4.4.4. Closing. Environment: Appc Studio : 4.3.3.201510172433 Ti SDK : 5.1.0.v20151016172827 Ti CLI : 5.0.5 Alloy : 1.7.16 MAC Yosemite : 10.10.5 Appc NPM : 4.2.1-5 Appc CLI : 5.1.0-38 Node: v0.10.37 Nexus 6 - Android 6.0 Samsung Galaxy S4 - Android 4.4.4 Nexus 5 - Android 4.1.1
  3. Fokke Zandbergen 2015-11-13

    [~msamah] PR for the broken link in the API reference https://github.com/appcelerator/titanium_mobile/pull/7439
  4. Fokke Zandbergen 2015-11-13

    Backport for 5_1_X: https://github.com/appcelerator/titanium_mobile/pull/7440
  5. Ashraf Abu 2015-11-13

    Merged Documentation PRs by [~fokkezb] master: https://github.com/appcelerator/titanium_mobile/pull/7439 5_1_X:https://github.com/appcelerator/titanium_mobile/pull/7440

JSON Source