File tree Expand file tree Collapse file tree 6 files changed +16
-2
lines changed
java/com/kenumir/materialsettings Expand file tree Collapse file tree 6 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ public class Settings1Activity extends MaterialSettings {
2525}
2626```
2727
28+ #### Important
29+ If in your app has layout named "activity_material_settings.xml"
30+ will occur error "NoSuchFieldError: No static field" - [ issue #2 ] ( https://github.com/kenumir/MaterialSettings/issues/2 )
31+
2832### Style attrs
2933* msToolbarTheme
3034* msToolbarThemePopup
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public int getValue() {
4545 @ Override
4646 public void onCreate (Bundle savedInstanceState ) {
4747 super .onCreate (savedInstanceState );
48- setContentView (R .layout .activity_settings );
48+ setContentView (R .layout .activity_material_settings );
4949
5050 items = new HashMap <>();
5151
File renamed without changes.
Original file line number Diff line number Diff line change 3939 <activity
4040 android : name =" .InflatingViewsActivity"
4141 android : label =" @string/title_activity_inflating_views"
42- android : theme =" @style/MaterialSettingsTheme" >
42+ android : theme =" @style/MaterialSettingsTheme" >
4343 </activity >
4444 </application >
4545
Original file line number Diff line number Diff line change 1+ <menu xmlns : android =" http://schemas.android.com/apk/res/android"
2+ xmlns : app =" http://schemas.android.com/apk/res-auto"
3+ xmlns : tools =" http://schemas.android.com/tools"
4+ tools : context =" com.wt.sampleapp.SettingsActivity" >
5+ <item android : id =" @+id/action_settings"
6+ android : title =" @string/action_settings"
7+ android : orderInCategory =" 100"
8+ app : showAsAction =" never" />
9+ </menu >
Original file line number Diff line number Diff line change 66 <string name =" title_activity_settings1" >Settings1Activity</string >
77 <string name =" title_activity_test" >TestActivity</string >
88 <string name =" title_activity_inflating_views" >InflatingViewsActivity</string >
9+ <string name =" title_activity_settings" >SettingsActivity</string >
910</resources >
You can’t perform that action at this time.
0 commit comments