promo_Compliance_spinner_new
This commit is contained in:
+6
-10
@@ -213,7 +213,6 @@ public class T2PComplianceActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
@@ -270,7 +269,8 @@ public class T2PComplianceActivity extends AppCompatActivity {
|
||||
|
||||
/* Typeface iconFont = FontManager.getTypeface(getApplicationContext(), FontManager.FONTAWESOME);
|
||||
FontManager.markAsIconContainer(findViewById(R.id.icons_container), iconFont);
|
||||
*/ holder.spinner.setOnTouchListener(new View.OnTouchListener() {
|
||||
*/
|
||||
holder.spinner.setOnTouchListener(new View.OnTouchListener() {
|
||||
@Override
|
||||
public boolean onTouch(View view, MotionEvent motionEvent) {
|
||||
userSelect[0] = true;
|
||||
@@ -292,8 +292,7 @@ public class T2PComplianceActivity extends AppCompatActivity {
|
||||
case 0:
|
||||
if (mItem.getPresent() == 1) {
|
||||
flag_clear = true;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
mItem.setPresent(-1);
|
||||
t2PAdapter.notifyDataSetChanged();
|
||||
}
|
||||
@@ -309,8 +308,7 @@ public class T2PComplianceActivity extends AppCompatActivity {
|
||||
if (mItem.getPresent() == 1) {
|
||||
flag_clear = true;
|
||||
present = 0;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
mItem.setPresent(0);
|
||||
t2PAdapter.notifyDataSetChanged();
|
||||
}
|
||||
@@ -633,8 +631,7 @@ public class T2PComplianceActivity extends AppCompatActivity {
|
||||
//if (mItem.isPresent()) {
|
||||
if (mItem.getPresent() == 1) {
|
||||
is_enabled = true;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
is_enabled = false;
|
||||
}
|
||||
|
||||
@@ -1129,8 +1126,7 @@ public class T2PComplianceActivity extends AppCompatActivity {
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
else if(t2PGetterSetters.get(i).getPresent()==-1){
|
||||
} else if (t2PGetterSetters.get(i).getPresent() == -1) {
|
||||
flag = false;
|
||||
error_msg = getResources().getString(R.string.msg_select_present);
|
||||
break;
|
||||
|
||||
@@ -133,12 +133,11 @@
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:weightSum="5">
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="2"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
@@ -151,16 +150,14 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="3"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/toggle_add_InStock"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
android:layout_height="match_parent" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -169,13 +166,11 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:weightSum="5">
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="2"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
@@ -188,16 +183,14 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="3"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/toggle_add_promoAnnouncer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -92,12 +92,11 @@
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:weightSum="5">
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="2"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
@@ -110,28 +109,26 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="3"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner_inStock"
|
||||
android:background="@drawable/spinner_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
/>
|
||||
android:background="@drawable/spinner_bg" />
|
||||
|
||||
|
||||
<ToggleButton
|
||||
android:visibility="gone"
|
||||
android:id="@+id/toggle_inStock"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/toggle_selector_background"
|
||||
android:textOff="@string/no"
|
||||
android:textOn="@string/yes" />
|
||||
android:textOn="@string/yes"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -141,12 +138,11 @@
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:weightSum="5">
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="2"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
@@ -159,27 +155,25 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="3"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner_promoAnnouncer"
|
||||
android:background="@drawable/spinner_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
/>
|
||||
android:background="@drawable/spinner_bg" />
|
||||
|
||||
<ToggleButton
|
||||
android:visibility="gone"
|
||||
android:id="@+id/toggle_promoAnnouncer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/toggle_selector_background"
|
||||
android:textOff="@string/no"
|
||||
android:textOn="@string/yes" />
|
||||
android:textOn="@string/yes"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user