Browse Source

Add missing files

Guy Carmeli 8 years ago
parent
commit
ad428daf3f

+ 3
- 0
android/app/src/main/java/com/reactnativenavigation/core/objects/Button.java View File

22
     private static final String KEY_TITLE = "title";
22
     private static final String KEY_TITLE = "title";
23
     private static final String KEY_ICON = "icon";
23
     private static final String KEY_ICON = "icon";
24
     private static final String KEY_DISABLED = "disabled";
24
     private static final String KEY_DISABLED = "disabled";
25
+    private static final String KEY_SHOW_AS_ACTION = "showAsAction";
25
 
26
 
26
     public String id;
27
     public String id;
27
     public String title;
28
     public String title;
28
     private String mIconSource;
29
     private String mIconSource;
29
     public boolean disabled;
30
     public boolean disabled;
31
+    public String showAsAction;
30
 
32
 
31
     private static final AtomicInteger sAtomicIdGenerator = new AtomicInteger();
33
     private static final AtomicInteger sAtomicIdGenerator = new AtomicInteger();
32
     private static final Map<String, Integer> sStringToNumericId = new HashMap<>();
34
     private static final Map<String, Integer> sStringToNumericId = new HashMap<>();
36
         title = getString(button, KEY_TITLE, "");
38
         title = getString(button, KEY_TITLE, "");
37
         mIconSource = getString(button, KEY_ICON);
39
         mIconSource = getString(button, KEY_ICON);
38
         disabled = getBoolean(button, KEY_DISABLED);
40
         disabled = getBoolean(button, KEY_DISABLED);
41
+        showAsAction = getString(button, KEY_SHOW_AS_ACTION, "");
39
     }
42
     }
40
 
43
 
41
     public boolean hasIcon() {
44
     public boolean hasIcon() {