MSL Availability Stock Facing Changes upload

This commit is contained in:
gagangoel290
2017-04-27 10:57:04 +05:30
parent 780a136904
commit e30f6dc189
5 changed files with 32 additions and 21 deletions
+1 -1
View File
@@ -41,7 +41,7 @@
<ConfirmationsSetting value="0" id="Add" /> <ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" /> <ConfirmationsSetting value="0" id="Remove" />
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">
@@ -1037,6 +1037,7 @@ public class MSL_Availability_StockFacingActivity extends AppCompatActivity {
boolean tempflag = false; boolean tempflag = false;
if (childData.getCompany_id().equals("1")) { if (childData.getCompany_id().equals("1")) {
if (childData.getToggleValue().equals("0")) { if (childData.getToggleValue().equals("0")) {
if (holder.stock.getText().toString().equals("")) { if (holder.stock.getText().toString().equals("")) {
holder.stock.setBackgroundColor(getResources().getColor(R.color.white)); holder.stock.setBackgroundColor(getResources().getColor(R.color.white));
@@ -1052,11 +1053,13 @@ public class MSL_Availability_StockFacingActivity extends AppCompatActivity {
tempflag = true; tempflag = true;
} }
} else { } else {
if (holder.facing.getText().toString().equals("")) { if (childData.getMust_have().equals("1")) {
holder.facing.setBackgroundColor(getResources().getColor(R.color.white)); if (holder.facing.getText().toString().equals("")) {
holder.facing.setHintTextColor(getResources().getColor(android.R.color.holo_red_dark)); holder.facing.setBackgroundColor(getResources().getColor(R.color.white));
holder.facing.setHint(getString(R.string.empty)); holder.facing.setHintTextColor(getResources().getColor(android.R.color.holo_red_dark));
tempflag = true; holder.facing.setHint(getString(R.string.empty));
tempflag = true;
}
} }
} }
@@ -13,10 +13,10 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"> android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/txt_promoComplianceName" android:id="@+id/txt_promoComplianceName"
@@ -125,7 +125,7 @@
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="3"> android:weightSum="2">
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
@@ -162,7 +162,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/toggle_selector_background" android:background="@drawable/toggle_selector_background"
android:textOff="@string/no" android:textOff="@string/no"
android:textOn="@string/yes"/> android:textOn="@string/yes" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
@@ -211,6 +211,7 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:orientation="vertical" android:orientation="vertical"
android:visibility="gone"
android:weightSum="5"> android:weightSum="5">
<LinearLayout <LinearLayout
@@ -278,7 +279,8 @@
android:id="@+id/lin_addtional_promo" android:id="@+id/lin_addtional_promo"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" /> android:orientation="vertical"
android:paddingBottom="10dp" />
</LinearLayout> </LinearLayout>
@@ -9,6 +9,7 @@
android:id="@+id/card_view" android:id="@+id/card_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="5dp" android:layout_marginLeft="5dp"
android:layout_marginRight="5dp" android:layout_marginRight="5dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
@@ -53,9 +54,10 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="3"> android:weightSum="2">
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
@@ -153,6 +155,7 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:orientation="vertical" android:orientation="vertical"
android:visibility="gone"
android:weightSum="5"> android:weightSum="5">
<LinearLayout <LinearLayout
@@ -192,9 +195,10 @@
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
</android.support.v7.widget.CardView> </android.support.v7.widget.CardView>
</LinearLayout> </LinearLayout>
@@ -53,7 +53,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="3"> android:weightSum="2">
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
@@ -88,9 +88,9 @@
android:id="@+id/toggle_inStock" android:id="@+id/toggle_inStock"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/toggle_selector_background"
android:textOff="@string/no" android:textOff="@string/no"
android:textOn="@string/yes" android:textOn="@string/yes" />
android:background="@drawable/toggle_selector_background" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
@@ -127,18 +127,20 @@
android:id="@+id/toggle_promoAnnouncer" android:id="@+id/toggle_promoAnnouncer"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/toggle_selector_background"
android:textOff="@string/no" android:textOff="@string/no"
android:textOn="@string/yes" android:textOn="@string/yes" />
android:background="@drawable/toggle_selector_background"/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<!--Running on Pos-->
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:orientation="vertical" android:orientation="vertical"
android:visibility="gone"
android:weightSum="5"> android:weightSum="5">
<LinearLayout <LinearLayout
@@ -166,9 +168,9 @@
android:id="@+id/toggle_runningPos" android:id="@+id/toggle_runningPos"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/toggle_selector_background"
android:textOff="@string/no" android:textOff="@string/no"
android:textOn="@string/yes" android:textOn="@string/yes" />
android:background="@drawable/toggle_selector_background"/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>