お買い物補助、支援アプリ
「簡単!商品単価比較 くん」です。
商品の容量(個数)と価格を入力するだけ。
項目移動は入力中のカーソルでOK。
毎日のお買い物に便利。容量(個数)と価格から単価を表示、
2つの商品の単価比較をしてどちらが安いかを表示します。
簡単単価比較、価格比較します。
<View
android:layout_width="match_parent"
android:layout_height="2px"
android:background="#FF000000"
android:layout_marginTop="50dp"
android:layout_marginBottom="50dp"
/>
int MP= LinearLayout.LayoutParams.MATCH_PARENT;
int WC= LinearLayout.LayoutParams.WRAP_CONTENT;//未使用
LinearLayout main_ll;
main_ll= (LinearLayout) findViewById(R.id.main_ll);
View line_view;
LinearLayout.LayoutParams ll_lp2;
ViewGroup.MarginLayoutParams vg_mlp;
line_view=new View(getApplicationContext());
ll_lp2=new LinearLayout.LayoutParams(MP,1);
vg_mlp= ll_lp2;
vg_mlp.setMargins(0,50,0,50);//(left,top,right,bottom)
line_view.setLayoutParams(vg_mlp);
//line_view.setLayoutParams(ll_lp2);
line_view.setBackgroundColor(Color.argb(255,0,0,255));
main_ll.addView(line_view);
日 | 月 | 火 | 水 | 木 | 金 | 土 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |