Commit c8f68a2 1 parent 81523e2 commit c8f68a2 Copy full SHA for c8f68a2
File tree 2 files changed +6
-13
lines changed
java/ekylibre/zero/reception
2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 17
17
import ekylibre .database .ZeroContract ;
18
18
import ekylibre .zero .R ;
19
19
20
- /**
21
- * Created by NUMAG 1-NB on 19/12/2017.
22
- */
23
20
24
21
public class ArticleNewActivity extends AppCompatActivity implements View .OnClickListener {
25
22
26
- String [] natureList = {"fertilizer " , "seed " , "chemical " };
23
+ String [] natureList = {"Fertilizer " , "Seed " , "Chemical " };
27
24
String [] unityList = {"kg" , "L" , "t" };
28
25
29
26
@ Override
@@ -59,8 +56,6 @@ public void add_article(Context context) {
59
56
mNewValues .put (ZeroContract .Articles .NATURE , SpinnerArticleNature .getSelectedItem ().toString ());
60
57
mNewValues .put (ZeroContract .Articles .UNITY , SpinnerArticleUnity .getSelectedItem ().toString ());
61
58
contentResolver .insert (ZeroContract .Articles .CONTENT_URI , mNewValues );
62
-
63
-
64
59
}
65
60
66
61
@ Override
Original file line number Diff line number Diff line change 15
15
android : hint =" Article name"
16
16
/>
17
17
18
- <Button
19
- android : id =" @+id/buttonSaveArticleId"
20
- android : layout_width =" wrap_content"
21
- android : layout_height =" wrap_content"
22
- android : text =" Save" />
23
-
24
18
<Spinner
25
19
android : id =" @+id/spinnerNatureArticleId"
26
20
android : layout_width =" fill_parent"
41
35
android : textAppearance =" ?android:attr/textAppearanceLarge"
42
36
/>
43
37
44
-
38
+ <Button
39
+ android : id =" @+id/buttonSaveArticleId"
40
+ android : layout_width =" wrap_content"
41
+ android : layout_height =" wrap_content"
42
+ android : text =" Save" />
45
43
46
44
</LinearLayout >
You can’t perform that action at this time.
0 commit comments