Showing
17 changed files
with
123 additions
and
80 deletions
| ... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' | ... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' |
| 2 | 2 | ||
| 3 | ext { | 3 | ext { |
| 4 | PUBLISH_GROUP_ID = 'ly.warp' | 4 | PUBLISH_GROUP_ID = 'ly.warp' |
| 5 | - PUBLISH_VERSION = '4.5.4-cosbeta76' | 5 | + PUBLISH_VERSION = '4.5.4-cosbeta77' |
| 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
| 7 | } | 7 | } |
| 8 | 8 | ... | ... |
| ... | @@ -24,6 +24,10 @@ import java.io.Serializable; | ... | @@ -24,6 +24,10 @@ import java.io.Serializable; |
| 24 | import java.util.ArrayList; | 24 | import java.util.ArrayList; |
| 25 | import java.util.HashMap; | 25 | import java.util.HashMap; |
| 26 | import java.util.HashSet; | 26 | import java.util.HashSet; |
| 27 | +import java.util.LinkedHashSet; | ||
| 28 | +import java.util.Map; | ||
| 29 | +import java.util.Set; | ||
| 30 | +import java.util.TreeMap; | ||
| 27 | 31 | ||
| 28 | import io.github.inflationx.viewpump.ViewPumpContextWrapper; | 32 | import io.github.inflationx.viewpump.ViewPumpContextWrapper; |
| 29 | import ly.warp.sdk.R; | 33 | import ly.warp.sdk.R; |
| ... | @@ -188,9 +192,24 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene | ... | @@ -188,9 +192,24 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene |
| 188 | mValuesList | 192 | mValuesList |
| 189 | ); | 193 | ); |
| 190 | 194 | ||
| 191 | - runOnUiThread(() -> { | 195 | + runOnUiThread(this::initViews2); |
| 196 | + } | ||
| 197 | + } | ||
| 198 | + | ||
| 199 | + // =========================================================== | ||
| 200 | + // Methods | ||
| 201 | + // =========================================================== | ||
| 202 | + | ||
| 203 | + private void initViews() { | ||
| 204 | + mIvBack.setOnClickListener(this); | ||
| 205 | + mIvPopupClose.setOnClickListener(this); | ||
| 206 | + | ||
| 207 | +// if (WarpUtils.getGiftsPopup(this)) | ||
| 208 | +// mLlGiftsPopup.setVisibility(View.VISIBLE); | ||
| 209 | + | ||
| 192 | if (mData != null && mData.size() > 0) { | 210 | if (mData != null && mData.size() > 0) { |
| 193 | - mAdapterMergedGifts = new MergedGiftsAdapter(GiftsForYouActivity.this, mData); | 211 | + mRecyclerMergedGifts.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)); |
| 212 | + mAdapterMergedGifts = new MergedGiftsAdapter(this, mData); | ||
| 194 | mRecyclerMergedGifts.setAdapter(mAdapterMergedGifts); | 213 | mRecyclerMergedGifts.setAdapter(mAdapterMergedGifts); |
| 195 | mAdapterMergedGifts.getPositionClicks() | 214 | mAdapterMergedGifts.getPositionClicks() |
| 196 | .doOnNext(dataItem -> { | 215 | .doOnNext(dataItem -> { |
| ... | @@ -282,7 +301,6 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene | ... | @@ -282,7 +301,6 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene |
| 282 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { | 301 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { |
| 283 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 302 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 284 | if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { | 303 | if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { |
| 285 | - WarpUtils.log("CCMS_CLICK " + ccms.toString()); | ||
| 286 | startActivityForResult(WarpViewActivity.createIntentFromURL(this, WarplyManagerHelper.constructCcmsUrl(dataItem.getCampaign(), ccms)), 1004); | 304 | startActivityForResult(WarpViewActivity.createIntentFromURL(this, WarplyManagerHelper.constructCcmsUrl(dataItem.getCampaign(), ccms)), 1004); |
| 287 | break; | 305 | break; |
| 288 | } | 306 | } |
| ... | @@ -312,24 +330,14 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene | ... | @@ -312,24 +330,14 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene |
| 312 | .subscribe(); | 330 | .subscribe(); |
| 313 | mAdapterMergedGifts.notifyDataSetChanged(); | 331 | mAdapterMergedGifts.notifyDataSetChanged(); |
| 314 | } | 332 | } |
| 315 | - }); | ||
| 316 | - } | ||
| 317 | } | 333 | } |
| 318 | 334 | ||
| 319 | - // =========================================================== | 335 | + private void initViews2() { |
| 320 | - // Methods | ||
| 321 | - // =========================================================== | ||
| 322 | - | ||
| 323 | - private void initViews() { | ||
| 324 | mIvBack.setOnClickListener(this); | 336 | mIvBack.setOnClickListener(this); |
| 325 | mIvPopupClose.setOnClickListener(this); | 337 | mIvPopupClose.setOnClickListener(this); |
| 326 | 338 | ||
| 327 | -// if (WarpUtils.getGiftsPopup(this)) | ||
| 328 | -// mLlGiftsPopup.setVisibility(View.VISIBLE); | ||
| 329 | - | ||
| 330 | if (mData != null && mData.size() > 0) { | 339 | if (mData != null && mData.size() > 0) { |
| 331 | - mRecyclerMergedGifts.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)); | 340 | + mAdapterMergedGifts = new MergedGiftsAdapter(GiftsForYouActivity.this, mData); |
| 332 | - mAdapterMergedGifts = new MergedGiftsAdapter(this, mData); | ||
| 333 | mRecyclerMergedGifts.setAdapter(mAdapterMergedGifts); | 341 | mRecyclerMergedGifts.setAdapter(mAdapterMergedGifts); |
| 334 | mAdapterMergedGifts.getPositionClicks() | 342 | mAdapterMergedGifts.getPositionClicks() |
| 335 | .doOnNext(dataItem -> { | 343 | .doOnNext(dataItem -> { |
| ... | @@ -421,6 +429,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene | ... | @@ -421,6 +429,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene |
| 421 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { | 429 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { |
| 422 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 430 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 423 | if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { | 431 | if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { |
| 432 | + WarpUtils.log("CCMS_CLICK " + ccms.toString()); | ||
| 424 | startActivityForResult(WarpViewActivity.createIntentFromURL(this, WarplyManagerHelper.constructCcmsUrl(dataItem.getCampaign(), ccms)), 1004); | 433 | startActivityForResult(WarpViewActivity.createIntentFromURL(this, WarplyManagerHelper.constructCcmsUrl(dataItem.getCampaign(), ccms)), 1004); |
| 425 | break; | 434 | break; |
| 426 | } | 435 | } |
| ... | @@ -448,6 +457,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene | ... | @@ -448,6 +457,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene |
| 448 | .doOnError(error -> { | 457 | .doOnError(error -> { |
| 449 | }) | 458 | }) |
| 450 | .subscribe(); | 459 | .subscribe(); |
| 460 | + mAdapterMergedGifts.notifyDataSetChanged(); | ||
| 451 | } | 461 | } |
| 452 | } | 462 | } |
| 453 | 463 | ||
| ... | @@ -488,6 +498,10 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene | ... | @@ -488,6 +498,10 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene |
| 488 | mData.add(data); | 498 | mData.add(data); |
| 489 | } | 499 | } |
| 490 | } | 500 | } |
| 501 | + | ||
| 502 | + Set<MergedGifts> set = new LinkedHashSet<>(mData); | ||
| 503 | + mData.clear(); | ||
| 504 | + mData.addAll(set); | ||
| 491 | } | 505 | } |
| 492 | 506 | ||
| 493 | private void filterItems() { | 507 | private void filterItems() { | ... | ... |
| ... | @@ -38,6 +38,7 @@ import ly.warp.sdk.utils.WarpJSONParser; | ... | @@ -38,6 +38,7 @@ import ly.warp.sdk.utils.WarpJSONParser; |
| 38 | import ly.warp.sdk.utils.WarpUtils; | 38 | import ly.warp.sdk.utils.WarpUtils; |
| 39 | import ly.warp.sdk.utils.WarplyManagerHelper; | 39 | import ly.warp.sdk.utils.WarplyManagerHelper; |
| 40 | import ly.warp.sdk.utils.managers.WarplyEventBusManager; | 40 | import ly.warp.sdk.utils.managers.WarplyEventBusManager; |
| 41 | +import ly.warp.sdk.utils.managers.WarplyManager; | ||
| 41 | import ly.warp.sdk.views.adapters.MergedMoreAdapter; | 42 | import ly.warp.sdk.views.adapters.MergedMoreAdapter; |
| 42 | import ly.warp.sdk.views.adapters.MoreCampaignAdapter; | 43 | import ly.warp.sdk.views.adapters.MoreCampaignAdapter; |
| 43 | import ly.warp.sdk.views.adapters.MoreContextualAdapter; | 44 | import ly.warp.sdk.views.adapters.MoreContextualAdapter; |
| ... | @@ -211,7 +212,7 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener | ... | @@ -211,7 +212,7 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener |
| 211 | // initViews2(); | 212 | // initViews2(); |
| 212 | 213 | ||
| 213 | /** New Implementation */ | 214 | /** New Implementation */ |
| 214 | - initViewsNew2(); | 215 | + runOnUiThread(this::initViewsNew2); |
| 215 | /** New Implementation */ | 216 | /** New Implementation */ |
| 216 | } | 217 | } |
| 217 | } | 218 | } |
| ... | @@ -518,10 +519,11 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener | ... | @@ -518,10 +519,11 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener |
| 518 | if (extraFields.has("type") && extraFields.optString("type").equals("telco")) { | 519 | if (extraFields.has("type") && extraFields.optString("type").equals("telco")) { |
| 519 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 520 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 520 | if (ccms.getLoyaltyCampaignId().equals(moreItem.getSessionUUID())) { | 521 | if (ccms.getLoyaltyCampaignId().equals(moreItem.getSessionUUID())) { |
| 522 | + WarplyManager.getSingleCampaign(moreItem.getSessionUUID()); | ||
| 521 | Intent intent = new Intent(MoreForYouActivity.this, TelcoActivity.class); | 523 | Intent intent = new Intent(MoreForYouActivity.this, TelcoActivity.class); |
| 522 | intent.putExtra("ccms", ccms); | 524 | intent.putExtra("ccms", ccms); |
| 523 | intent.putExtra("loyalty", (Serializable) moreItem); | 525 | intent.putExtra("loyalty", (Serializable) moreItem); |
| 524 | - startActivity(intent); | 526 | + startActivityForResult(intent, 1003); |
| 525 | break; | 527 | break; |
| 526 | } | 528 | } |
| 527 | } | 529 | } | ... | ... |
| ... | @@ -25,6 +25,7 @@ | ... | @@ -25,6 +25,7 @@ |
| 25 | 25 | ||
| 26 | package ly.warp.sdk.utils; | 26 | package ly.warp.sdk.utils; |
| 27 | 27 | ||
| 28 | +import android.app.ActivityManager; | ||
| 28 | import android.content.Context; | 29 | import android.content.Context; |
| 29 | import android.content.Intent; | 30 | import android.content.Intent; |
| 30 | import android.content.pm.PackageManager; | 31 | import android.content.pm.PackageManager; |
| ... | @@ -79,6 +80,7 @@ import ly.warp.sdk.io.request.WarplyIntegrationRequest; | ... | @@ -79,6 +80,7 @@ import ly.warp.sdk.io.request.WarplyIntegrationRequest; |
| 79 | import ly.warp.sdk.io.request.WarplyUserCouponsRequest; | 80 | import ly.warp.sdk.io.request.WarplyUserCouponsRequest; |
| 80 | import ly.warp.sdk.services.EventService; | 81 | import ly.warp.sdk.services.EventService; |
| 81 | import ly.warp.sdk.services.FCMBaseMessagingService; | 82 | import ly.warp.sdk.services.FCMBaseMessagingService; |
| 83 | +import ly.warp.sdk.services.WarplyHealthService; | ||
| 82 | import ly.warp.sdk.utils.managers.WarplyEventBusManager; | 84 | import ly.warp.sdk.utils.managers.WarplyEventBusManager; |
| 83 | import ly.warp.sdk.utils.managers.WarplyManager; | 85 | import ly.warp.sdk.utils.managers.WarplyManager; |
| 84 | 86 | ||
| ... | @@ -1230,6 +1232,23 @@ public class WarplyManagerHelper { | ... | @@ -1230,6 +1232,23 @@ public class WarplyManagerHelper { |
| 1230 | 1232 | ||
| 1231 | } | 1233 | } |
| 1232 | 1234 | ||
| 1235 | + public static void logoutUser() { | ||
| 1236 | + if (isMyServiceRunning(WarplyHealthService.class)) { | ||
| 1237 | + Intent stepsServiceIntent = new Intent(Warply.getWarplyContext(), WarplyHealthService.class); | ||
| 1238 | + Warply.getWarplyContext().stopService(stepsServiceIntent); | ||
| 1239 | + } | ||
| 1240 | + } | ||
| 1241 | + | ||
| 1242 | + private static boolean isMyServiceRunning(Class<?> serviceClass) { | ||
| 1243 | + ActivityManager manager = (ActivityManager) Warply.getWarplyContext().getSystemService(Context.ACTIVITY_SERVICE); | ||
| 1244 | + for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) { | ||
| 1245 | + if (serviceClass.getName().equals(service.service.getClassName())) { | ||
| 1246 | + return true; | ||
| 1247 | + } | ||
| 1248 | + } | ||
| 1249 | + return false; | ||
| 1250 | + } | ||
| 1251 | + | ||
| 1233 | // =========================================================== | 1252 | // =========================================================== |
| 1234 | // Inner and Anonymous Classes | 1253 | // Inner and Anonymous Classes |
| 1235 | // =========================================================== | 1254 | // =========================================================== | ... | ... |
| ... | @@ -532,7 +532,7 @@ public class WarpView extends WebView { | ... | @@ -532,7 +532,7 @@ public class WarpView extends WebView { |
| 532 | WarplyManagerHelper.mMetersWebview = 0.0d; | 532 | WarplyManagerHelper.mMetersWebview = 0.0d; |
| 533 | WarpViewActivity.getMetersHandler().postDelayed(this, 300); | 533 | WarpViewActivity.getMetersHandler().postDelayed(this, 300); |
| 534 | } | 534 | } |
| 535 | - }, 1000); | 535 | + }, 3000); //TODO: change it back to 1000 |
| 536 | 536 | ||
| 537 | if (url.contains("about:blank")) { | 537 | if (url.contains("about:blank")) { |
| 538 | WarpView.this.clearHistory(); | 538 | WarpView.this.clearHistory(); | ... | ... |
| ... | @@ -10,24 +10,24 @@ | ... | @@ -10,24 +10,24 @@ |
| 10 | <androidx.constraintlayout.widget.ConstraintLayout | 10 | <androidx.constraintlayout.widget.ConstraintLayout |
| 11 | android:id="@+id/cl_bill_header" | 11 | android:id="@+id/cl_bill_header" |
| 12 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" |
| 13 | - android:layout_height="50dp" | 13 | + android:layout_height="48dp" |
| 14 | android:background="@android:color/white"> | 14 | android:background="@android:color/white"> |
| 15 | 15 | ||
| 16 | <ImageView | 16 | <ImageView |
| 17 | android:id="@+id/iv_coupons_close" | 17 | android:id="@+id/iv_coupons_close" |
| 18 | - android:layout_width="26dp" | 18 | + android:layout_width="48dp" |
| 19 | - android:layout_height="25dp" | 19 | + android:layout_height="48dp" |
| 20 | - android:layout_marginStart="24dp" | 20 | + android:layout_marginStart="16dp" |
| 21 | - android:layout_marginTop="4dp" | ||
| 22 | android:src="@drawable/ic_back" | 21 | android:src="@drawable/ic_back" |
| 22 | + android:scaleType="centerInside" | ||
| 23 | app:layout_constraintBottom_toBottomOf="parent" | 23 | app:layout_constraintBottom_toBottomOf="parent" |
| 24 | app:layout_constraintStart_toStartOf="parent" | 24 | app:layout_constraintStart_toStartOf="parent" |
| 25 | app:layout_constraintTop_toTopOf="parent" /> | 25 | app:layout_constraintTop_toTopOf="parent" /> |
| 26 | 26 | ||
| 27 | <TextView | 27 | <TextView |
| 28 | android:id="@+id/textView3" | 28 | android:id="@+id/textView3" |
| 29 | - android:layout_width="206dp" | 29 | + android:layout_width="wrap_content" |
| 30 | - android:layout_height="32dp" | 30 | + android:layout_height="wrap_content" |
| 31 | android:gravity="center" | 31 | android:gravity="center" |
| 32 | android:text="@string/cos_active_all_coupons" | 32 | android:text="@string/cos_active_all_coupons" |
| 33 | android:textColor="@color/grey" | 33 | android:textColor="@color/grey" | ... | ... |
| ... | @@ -10,23 +10,24 @@ | ... | @@ -10,23 +10,24 @@ |
| 10 | <androidx.constraintlayout.widget.ConstraintLayout | 10 | <androidx.constraintlayout.widget.ConstraintLayout |
| 11 | android:id="@+id/cl_bill_header" | 11 | android:id="@+id/cl_bill_header" |
| 12 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" |
| 13 | - android:layout_height="80dp" | 13 | + android:layout_height="48dp" |
| 14 | android:background="@android:color/white"> | 14 | android:background="@android:color/white"> |
| 15 | 15 | ||
| 16 | <ImageView | 16 | <ImageView |
| 17 | android:id="@+id/iv_list_close" | 17 | android:id="@+id/iv_list_close" |
| 18 | - android:layout_width="26dp" | 18 | + android:layout_width="48dp" |
| 19 | - android:layout_height="25dp" | 19 | + android:layout_height="48dp" |
| 20 | - android:layout_marginStart="24dp" | 20 | + android:layout_marginStart="16dp" |
| 21 | - android:layout_marginTop="4dp" | 21 | + android:scaleType="centerInside" |
| 22 | android:src="@drawable/ic_back" | 22 | android:src="@drawable/ic_back" |
| 23 | + app:layout_constraintBottom_toBottomOf="parent" | ||
| 23 | app:layout_constraintStart_toStartOf="parent" | 24 | app:layout_constraintStart_toStartOf="parent" |
| 24 | - app:layout_constraintTop_toTopOf="@+id/textView3" /> | 25 | + app:layout_constraintTop_toTopOf="parent" /> |
| 25 | 26 | ||
| 26 | <TextView | 27 | <TextView |
| 27 | android:id="@+id/textView3" | 28 | android:id="@+id/textView3" |
| 28 | - android:layout_width="206dp" | 29 | + android:layout_width="wrap_content" |
| 29 | - android:layout_height="32dp" | 30 | + android:layout_height="wrap_content" |
| 30 | android:gravity="center" | 31 | android:gravity="center" |
| 31 | android:textColor="@color/grey" | 32 | android:textColor="@color/grey" |
| 32 | android:textSize="17sp" | 33 | android:textSize="17sp" |
| ... | @@ -34,8 +35,7 @@ | ... | @@ -34,8 +35,7 @@ |
| 34 | android:text="@string/cos_active_gifts_title" | 35 | android:text="@string/cos_active_gifts_title" |
| 35 | app:layout_constraintBottom_toBottomOf="parent" | 36 | app:layout_constraintBottom_toBottomOf="parent" |
| 36 | app:layout_constraintEnd_toEndOf="parent" | 37 | app:layout_constraintEnd_toEndOf="parent" |
| 37 | - app:layout_constraintHorizontal_bias="0.356" | 38 | + app:layout_constraintStart_toStartOf="parent" |
| 38 | - app:layout_constraintStart_toEndOf="@+id/iv_list_close" | ||
| 39 | app:layout_constraintTop_toTopOf="parent" /> | 39 | app:layout_constraintTop_toTopOf="parent" /> |
| 40 | </androidx.constraintlayout.widget.ConstraintLayout> | 40 | </androidx.constraintlayout.widget.ConstraintLayout> |
| 41 | 41 | ... | ... |
| ... | @@ -8,15 +8,16 @@ | ... | @@ -8,15 +8,16 @@ |
| 8 | <androidx.constraintlayout.widget.ConstraintLayout | 8 | <androidx.constraintlayout.widget.ConstraintLayout |
| 9 | android:id="@+id/cl_loyalty_wallet_header" | 9 | android:id="@+id/cl_loyalty_wallet_header" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | - android:layout_height="50dp" | 11 | + android:layout_height="48dp" |
| 12 | android:background="@android:color/white"> | 12 | android:background="@android:color/white"> |
| 13 | 13 | ||
| 14 | <ImageView | 14 | <ImageView |
| 15 | android:id="@+id/iv_contextual_back" | 15 | android:id="@+id/iv_contextual_back" |
| 16 | - android:layout_width="26dp" | 16 | + android:layout_width="48dp" |
| 17 | - android:layout_height="25dp" | 17 | + android:layout_height="48dp" |
| 18 | android:layout_marginStart="16dp" | 18 | android:layout_marginStart="16dp" |
| 19 | android:src="@drawable/ic_back" | 19 | android:src="@drawable/ic_back" |
| 20 | + android:scaleType="centerInside" | ||
| 20 | app:layout_constraintBottom_toBottomOf="parent" | 21 | app:layout_constraintBottom_toBottomOf="parent" |
| 21 | app:layout_constraintStart_toStartOf="parent" | 22 | app:layout_constraintStart_toStartOf="parent" |
| 22 | app:layout_constraintTop_toTopOf="parent" /> | 23 | app:layout_constraintTop_toTopOf="parent" /> | ... | ... |
| ... | @@ -8,15 +8,16 @@ | ... | @@ -8,15 +8,16 @@ |
| 8 | <androidx.constraintlayout.widget.ConstraintLayout | 8 | <androidx.constraintlayout.widget.ConstraintLayout |
| 9 | android:id="@+id/cl_loyalty_wallet_header" | 9 | android:id="@+id/cl_loyalty_wallet_header" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | - android:layout_height="50dp" | 11 | + android:layout_height="48dp" |
| 12 | android:background="@android:color/white"> | 12 | android:background="@android:color/white"> |
| 13 | 13 | ||
| 14 | <ImageView | 14 | <ImageView |
| 15 | android:id="@+id/iv_coupon_info_back" | 15 | android:id="@+id/iv_coupon_info_back" |
| 16 | - android:layout_width="26dp" | 16 | + android:layout_width="48dp" |
| 17 | - android:layout_height="25dp" | 17 | + android:layout_height="48dp" |
| 18 | android:layout_marginStart="16dp" | 18 | android:layout_marginStart="16dp" |
| 19 | android:src="@drawable/ic_back" | 19 | android:src="@drawable/ic_back" |
| 20 | + android:scaleType="centerInside" | ||
| 20 | app:layout_constraintBottom_toBottomOf="parent" | 21 | app:layout_constraintBottom_toBottomOf="parent" |
| 21 | app:layout_constraintStart_toStartOf="parent" | 22 | app:layout_constraintStart_toStartOf="parent" |
| 22 | app:layout_constraintTop_toTopOf="parent" /> | 23 | app:layout_constraintTop_toTopOf="parent" /> | ... | ... |
| ... | @@ -8,15 +8,16 @@ | ... | @@ -8,15 +8,16 @@ |
| 8 | <androidx.constraintlayout.widget.ConstraintLayout | 8 | <androidx.constraintlayout.widget.ConstraintLayout |
| 9 | android:id="@+id/cl_loyalty_wallet_header" | 9 | android:id="@+id/cl_loyalty_wallet_header" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | - android:layout_height="50dp" | 11 | + android:layout_height="48dp" |
| 12 | android:background="@android:color/white"> | 12 | android:background="@android:color/white"> |
| 13 | 13 | ||
| 14 | <ImageView | 14 | <ImageView |
| 15 | android:id="@+id/iv_coupon_share_back" | 15 | android:id="@+id/iv_coupon_share_back" |
| 16 | - android:layout_width="26dp" | 16 | + android:layout_width="48dp" |
| 17 | - android:layout_height="25dp" | 17 | + android:layout_height="48dp" |
| 18 | android:layout_marginStart="16dp" | 18 | android:layout_marginStart="16dp" |
| 19 | android:src="@drawable/ic_back" | 19 | android:src="@drawable/ic_back" |
| 20 | + android:scaleType="centerInside" | ||
| 20 | app:layout_constraintBottom_toBottomOf="parent" | 21 | app:layout_constraintBottom_toBottomOf="parent" |
| 21 | app:layout_constraintStart_toStartOf="parent" | 22 | app:layout_constraintStart_toStartOf="parent" |
| 22 | app:layout_constraintTop_toTopOf="parent" /> | 23 | app:layout_constraintTop_toTopOf="parent" /> | ... | ... |
| ... | @@ -8,15 +8,16 @@ | ... | @@ -8,15 +8,16 @@ |
| 8 | <androidx.constraintlayout.widget.ConstraintLayout | 8 | <androidx.constraintlayout.widget.ConstraintLayout |
| 9 | android:id="@+id/cl_loyalty_wallet_header" | 9 | android:id="@+id/cl_loyalty_wallet_header" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | - android:layout_height="50dp" | 11 | + android:layout_height="48dp" |
| 12 | android:background="@android:color/white"> | 12 | android:background="@android:color/white"> |
| 13 | 13 | ||
| 14 | <ImageView | 14 | <ImageView |
| 15 | android:id="@+id/iv_couponset_info_back" | 15 | android:id="@+id/iv_couponset_info_back" |
| 16 | - android:layout_width="26dp" | 16 | + android:layout_width="48dp" |
| 17 | - android:layout_height="25dp" | 17 | + android:layout_height="48dp" |
| 18 | android:layout_marginStart="16dp" | 18 | android:layout_marginStart="16dp" |
| 19 | android:src="@drawable/ic_back" | 19 | android:src="@drawable/ic_back" |
| 20 | + android:scaleType="centerInside" | ||
| 20 | app:layout_constraintBottom_toBottomOf="parent" | 21 | app:layout_constraintBottom_toBottomOf="parent" |
| 21 | app:layout_constraintStart_toStartOf="parent" | 22 | app:layout_constraintStart_toStartOf="parent" |
| 22 | app:layout_constraintTop_toTopOf="parent" /> | 23 | app:layout_constraintTop_toTopOf="parent" /> | ... | ... |
| ... | @@ -11,23 +11,24 @@ | ... | @@ -11,23 +11,24 @@ |
| 11 | <androidx.constraintlayout.widget.ConstraintLayout | 11 | <androidx.constraintlayout.widget.ConstraintLayout |
| 12 | android:id="@+id/cl_bill_header" | 12 | android:id="@+id/cl_bill_header" |
| 13 | android:layout_width="match_parent" | 13 | android:layout_width="match_parent" |
| 14 | - android:layout_height="80dp" | 14 | + android:layout_height="48dp" |
| 15 | android:background="@android:color/white"> | 15 | android:background="@android:color/white"> |
| 16 | 16 | ||
| 17 | <ImageView | 17 | <ImageView |
| 18 | android:id="@+id/iv_list_close" | 18 | android:id="@+id/iv_list_close" |
| 19 | - android:layout_width="26dp" | 19 | + android:layout_width="48dp" |
| 20 | - android:layout_height="25dp" | 20 | + android:layout_height="48dp" |
| 21 | - android:layout_marginStart="24dp" | 21 | + android:layout_marginStart="16dp" |
| 22 | - android:layout_marginTop="4dp" | 22 | + android:scaleType="centerInside" |
| 23 | android:src="@drawable/ic_back" | 23 | android:src="@drawable/ic_back" |
| 24 | + app:layout_constraintBottom_toBottomOf="parent" | ||
| 24 | app:layout_constraintStart_toStartOf="parent" | 25 | app:layout_constraintStart_toStartOf="parent" |
| 25 | - app:layout_constraintTop_toTopOf="@+id/textView3" /> | 26 | + app:layout_constraintTop_toTopOf="parent" /> |
| 26 | 27 | ||
| 27 | <TextView | 28 | <TextView |
| 28 | android:id="@+id/textView3" | 29 | android:id="@+id/textView3" |
| 29 | - android:layout_width="206dp" | 30 | + android:layout_width="wrap_content" |
| 30 | - android:layout_height="32dp" | 31 | + android:layout_height="wrap_content" |
| 31 | android:gravity="center" | 32 | android:gravity="center" |
| 32 | android:textColor="@color/grey" | 33 | android:textColor="@color/grey" |
| 33 | android:textSize="17sp" | 34 | android:textSize="17sp" |
| ... | @@ -35,8 +36,7 @@ | ... | @@ -35,8 +36,7 @@ |
| 35 | android:text="@string/cos_gifts_title" | 36 | android:text="@string/cos_gifts_title" |
| 36 | app:layout_constraintBottom_toBottomOf="parent" | 37 | app:layout_constraintBottom_toBottomOf="parent" |
| 37 | app:layout_constraintEnd_toEndOf="parent" | 38 | app:layout_constraintEnd_toEndOf="parent" |
| 38 | - app:layout_constraintHorizontal_bias="0.356" | 39 | + app:layout_constraintStart_toStartOf="parent" |
| 39 | - app:layout_constraintStart_toEndOf="@+id/iv_list_close" | ||
| 40 | app:layout_constraintTop_toTopOf="parent" /> | 40 | app:layout_constraintTop_toTopOf="parent" /> |
| 41 | </androidx.constraintlayout.widget.ConstraintLayout> | 41 | </androidx.constraintlayout.widget.ConstraintLayout> |
| 42 | 42 | ... | ... |
| ... | @@ -10,15 +10,16 @@ | ... | @@ -10,15 +10,16 @@ |
| 10 | <androidx.constraintlayout.widget.ConstraintLayout | 10 | <androidx.constraintlayout.widget.ConstraintLayout |
| 11 | android:id="@+id/cl_loyalty_analysis_header" | 11 | android:id="@+id/cl_loyalty_analysis_header" |
| 12 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" |
| 13 | - android:layout_height="50dp" | 13 | + android:layout_height="48dp" |
| 14 | android:background="@android:color/white"> | 14 | android:background="@android:color/white"> |
| 15 | 15 | ||
| 16 | <ImageView | 16 | <ImageView |
| 17 | android:id="@+id/iv_loyalty_analysis_close" | 17 | android:id="@+id/iv_loyalty_analysis_close" |
| 18 | - android:layout_width="26dp" | 18 | + android:layout_width="48dp" |
| 19 | - android:layout_height="25dp" | 19 | + android:layout_height="48dp" |
| 20 | android:layout_marginStart="16dp" | 20 | android:layout_marginStart="16dp" |
| 21 | android:src="@drawable/ic_back" | 21 | android:src="@drawable/ic_back" |
| 22 | + android:scaleType="centerInside" | ||
| 22 | app:layout_constraintBottom_toBottomOf="parent" | 23 | app:layout_constraintBottom_toBottomOf="parent" |
| 23 | app:layout_constraintStart_toStartOf="parent" | 24 | app:layout_constraintStart_toStartOf="parent" |
| 24 | app:layout_constraintTop_toTopOf="parent" /> | 25 | app:layout_constraintTop_toTopOf="parent" /> | ... | ... |
| ... | @@ -8,15 +8,16 @@ | ... | @@ -8,15 +8,16 @@ |
| 8 | <androidx.constraintlayout.widget.ConstraintLayout | 8 | <androidx.constraintlayout.widget.ConstraintLayout |
| 9 | android:id="@+id/cl_loyalty_wallet_header" | 9 | android:id="@+id/cl_loyalty_wallet_header" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | - android:layout_height="50dp" | 11 | + android:layout_height="48dp" |
| 12 | android:background="@android:color/white"> | 12 | android:background="@android:color/white"> |
| 13 | 13 | ||
| 14 | <ImageView | 14 | <ImageView |
| 15 | android:id="@+id/iv_back" | 15 | android:id="@+id/iv_back" |
| 16 | - android:layout_width="26dp" | 16 | + android:layout_width="48dp" |
| 17 | - android:layout_height="25dp" | 17 | + android:layout_height="48dp" |
| 18 | android:layout_marginStart="16dp" | 18 | android:layout_marginStart="16dp" |
| 19 | android:src="@drawable/ic_back" | 19 | android:src="@drawable/ic_back" |
| 20 | + android:scaleType="centerInside" | ||
| 20 | app:layout_constraintBottom_toBottomOf="parent" | 21 | app:layout_constraintBottom_toBottomOf="parent" |
| 21 | app:layout_constraintStart_toStartOf="parent" | 22 | app:layout_constraintStart_toStartOf="parent" |
| 22 | app:layout_constraintTop_toTopOf="parent" /> | 23 | app:layout_constraintTop_toTopOf="parent" /> | ... | ... |
| ... | @@ -10,32 +10,32 @@ | ... | @@ -10,32 +10,32 @@ |
| 10 | <androidx.constraintlayout.widget.ConstraintLayout | 10 | <androidx.constraintlayout.widget.ConstraintLayout |
| 11 | android:id="@+id/cl_more_header" | 11 | android:id="@+id/cl_more_header" |
| 12 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" |
| 13 | - android:layout_height="80dp" | 13 | + android:layout_height="48dp" |
| 14 | app:layout_constraintTop_toTopOf="parent"> | 14 | app:layout_constraintTop_toTopOf="parent"> |
| 15 | 15 | ||
| 16 | <ImageView | 16 | <ImageView |
| 17 | android:id="@+id/iv_list_close" | 17 | android:id="@+id/iv_list_close" |
| 18 | - android:layout_width="26dp" | 18 | + android:layout_width="48dp" |
| 19 | - android:layout_height="25dp" | 19 | + android:layout_height="48dp" |
| 20 | - android:layout_marginStart="24dp" | 20 | + android:layout_marginStart="16dp" |
| 21 | - android:layout_marginTop="4dp" | 21 | + android:scaleType="centerInside" |
| 22 | android:src="@drawable/ic_back" | 22 | android:src="@drawable/ic_back" |
| 23 | + app:layout_constraintBottom_toBottomOf="parent" | ||
| 23 | app:layout_constraintStart_toStartOf="parent" | 24 | app:layout_constraintStart_toStartOf="parent" |
| 24 | - app:layout_constraintTop_toTopOf="@+id/textView3" /> | 25 | + app:layout_constraintTop_toTopOf="parent" /> |
| 25 | 26 | ||
| 26 | <TextView | 27 | <TextView |
| 27 | android:id="@+id/textView3" | 28 | android:id="@+id/textView3" |
| 28 | fontPath="fonts/pf_square_sans_pro_bold.ttf" | 29 | fontPath="fonts/pf_square_sans_pro_bold.ttf" |
| 29 | - android:layout_width="206dp" | 30 | + android:layout_width="wrap_content" |
| 30 | - android:layout_height="32dp" | 31 | + android:layout_height="wrap_content" |
| 31 | android:gravity="center" | 32 | android:gravity="center" |
| 32 | android:text="@string/cos_more_title" | 33 | android:text="@string/cos_more_title" |
| 33 | android:textColor="@color/grey" | 34 | android:textColor="@color/grey" |
| 34 | android:textSize="17sp" | 35 | android:textSize="17sp" |
| 35 | app:layout_constraintBottom_toBottomOf="parent" | 36 | app:layout_constraintBottom_toBottomOf="parent" |
| 36 | app:layout_constraintEnd_toEndOf="parent" | 37 | app:layout_constraintEnd_toEndOf="parent" |
| 37 | - app:layout_constraintHorizontal_bias="0.356" | 38 | + app:layout_constraintStart_toStartOf="parent" |
| 38 | - app:layout_constraintStart_toEndOf="@+id/iv_list_close" | ||
| 39 | app:layout_constraintTop_toTopOf="parent" /> | 39 | app:layout_constraintTop_toTopOf="parent" /> |
| 40 | </androidx.constraintlayout.widget.ConstraintLayout> | 40 | </androidx.constraintlayout.widget.ConstraintLayout> |
| 41 | 41 | ... | ... |
| ... | @@ -8,15 +8,16 @@ | ... | @@ -8,15 +8,16 @@ |
| 8 | <androidx.constraintlayout.widget.ConstraintLayout | 8 | <androidx.constraintlayout.widget.ConstraintLayout |
| 9 | android:id="@+id/cl_loyalty_wallet_header" | 9 | android:id="@+id/cl_loyalty_wallet_header" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | - android:layout_height="50dp" | 11 | + android:layout_height="48dp" |
| 12 | android:background="@android:color/white"> | 12 | android:background="@android:color/white"> |
| 13 | 13 | ||
| 14 | <ImageView | 14 | <ImageView |
| 15 | android:id="@+id/iv_shops_back" | 15 | android:id="@+id/iv_shops_back" |
| 16 | - android:layout_width="26dp" | 16 | + android:layout_width="48dp" |
| 17 | - android:layout_height="25dp" | 17 | + android:layout_height="48dp" |
| 18 | android:layout_marginStart="16dp" | 18 | android:layout_marginStart="16dp" |
| 19 | android:src="@drawable/ic_back" | 19 | android:src="@drawable/ic_back" |
| 20 | + android:scaleType="centerInside" | ||
| 20 | app:layout_constraintBottom_toBottomOf="parent" | 21 | app:layout_constraintBottom_toBottomOf="parent" |
| 21 | app:layout_constraintStart_toStartOf="parent" | 22 | app:layout_constraintStart_toStartOf="parent" |
| 22 | app:layout_constraintTop_toTopOf="parent" /> | 23 | app:layout_constraintTop_toTopOf="parent" /> | ... | ... |
| ... | @@ -8,15 +8,16 @@ | ... | @@ -8,15 +8,16 @@ |
| 8 | <androidx.constraintlayout.widget.ConstraintLayout | 8 | <androidx.constraintlayout.widget.ConstraintLayout |
| 9 | android:id="@+id/cl_loyalty_wallet_header" | 9 | android:id="@+id/cl_loyalty_wallet_header" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | - android:layout_height="50dp" | 11 | + android:layout_height="48dp" |
| 12 | android:background="@android:color/white"> | 12 | android:background="@android:color/white"> |
| 13 | 13 | ||
| 14 | <ImageView | 14 | <ImageView |
| 15 | android:id="@+id/iv_telco_back" | 15 | android:id="@+id/iv_telco_back" |
| 16 | - android:layout_width="22dp" | 16 | + android:layout_width="48dp" |
| 17 | - android:layout_height="22dp" | 17 | + android:layout_height="48dp" |
| 18 | android:layout_marginStart="16dp" | 18 | android:layout_marginStart="16dp" |
| 19 | android:src="@drawable/ic_close" | 19 | android:src="@drawable/ic_close" |
| 20 | + android:scaleType="centerInside" | ||
| 20 | app:layout_constraintBottom_toBottomOf="parent" | 21 | app:layout_constraintBottom_toBottomOf="parent" |
| 21 | app:layout_constraintStart_toStartOf="parent" | 22 | app:layout_constraintStart_toStartOf="parent" |
| 22 | app:layout_constraintTop_toTopOf="parent" /> | 23 | app:layout_constraintTop_toTopOf="parent" /> | ... | ... |
-
Please register or login to post a comment