Skip to content

Commit

Permalink
The FrameLayout of a PreferenceFragment can now be accessed using the…
Browse files Browse the repository at this point in the history
… ID R.id.preference_fragment_frame_layout.
  • Loading branch information
michael-rapp committed Apr 19, 2015
1 parent 2109b0e commit 0603d3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions res/values/ids.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ License along with this program. If not, see
<item name="restore_defaults_button" type="id"/>
<item name="restore_defaults_button_bar" type="id"/>
<item name="restore_defaults_button_bar_shadow_view" type="id"/>
<item name="preference_fragment_frame_layout" type="id"/>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ private void initializeListView() {
listView = (ListView) parentView.findViewById(android.R.id.list);
parentView.removeView(listView);
frameLayout = new FrameLayout(getActivity());
frameLayout.setId(R.id.preference_fragment_frame_layout);
parentView.addView(frameLayout, listView.getLayoutParams());
frameLayout.addView(listView, FrameLayout.LayoutParams.MATCH_PARENT,
FrameLayout.LayoutParams.MATCH_PARENT);
Expand Down

0 comments on commit 0603d3c

Please sign in to comment.