Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2022-03-23 18:34:38 +0200
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
c6de15b70bae49a9abb3e4413c04626b17863497
c6de15b7
2 parents
9fdd1184
ed011068
Merge remote-tracking branch 'origin/cosmote' into cosmote
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
88 deletions
app/src/main/java/warp/ly/android_sdk/activities/MainActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/BillPaymentActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/fragments/BillPaymentFragment.java
warply_android_sdk/src/main/res/drawable/round_border_green.xml
warply_android_sdk/src/main/res/layout/fragment_bill_payment.xml → warply_android_sdk/src/main/res/layout/activity_bill_payment.xml
app/src/main/java/warp/ly/android_sdk/activities/MainActivity.java
View file @
c6de15b
...
...
@@ -5,12 +5,10 @@ import android.view.MenuItem;
import
androidx.annotation.NonNull
;
import
androidx.fragment.app.Fragment
;
import
androidx.fragment.app.FragmentTransaction
;
import
com.google.android.material.bottomnavigation.BottomNavigationView
;
import
com.google.android.material.navigation.NavigationBarView
;
import
ly.warp.sdk.fragments.BillPaymentFragment
;
import
ly.warp.sdk.fragments.HomeFragment
;
import
ly.warp.sdk.fragments.LoyaltyFragment
;
import
warp.ly.android_sdk.R
;
...
...
@@ -63,13 +61,6 @@ public class MainActivity extends BaseActivity implements NavigationBarView.OnIt
.
addToBackStack
(
null
)
.
commit
();
return
true
;
case
R
.
id
.
menu_shop
:
mFragmentToSet
=
BillPaymentFragment
.
newInstance
();
getSupportFragmentManager
().
beginTransaction
()
.
replace
(
R
.
id
.
fl_fragment
,
mFragmentToSet
)
.
addToBackStack
(
null
)
.
commit
();
return
true
;
}
return
false
;
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/BillPaymentActivity.java
View file @
c6de15b
...
...
@@ -27,7 +27,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
fragment
_bill_payment
);
setContentView
(
R
.
layout
.
activity
_bill_payment
);
// mIvBack = findViewById(R.id.iv_back);
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/fragments/BillPaymentFragment.java
deleted
100644 → 0
View file @
9fdd118
package
ly
.
warp
.
sdk
.
fragments
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
androidx.annotation.NonNull
;
import
androidx.fragment.app.Fragment
;
import
ly.warp.sdk.R
;
import
ly.warp.sdk.activities.BillPaymentActivity
;
import
ly.warp.sdk.activities.LoyaltyActivity
;
public
class
BillPaymentFragment
extends
Fragment
{
@Override
public
View
onCreateView
(
LayoutInflater
inflater
,
ViewGroup
container
,
Bundle
savedInstanceState
)
{
return
inflater
.
inflate
(
R
.
layout
.
fragment_bill_payment
,
container
,
false
);
}
public
void
onViewCreated
(
@NonNull
View
view
,
Bundle
savedInstanceState
)
{
super
.
onViewCreated
(
view
,
savedInstanceState
);
}
@Override
public
void
onDestroyView
()
{
super
.
onDestroyView
();
}
public
void
onClick
(
View
view
)
{
// if (view.getId() == R.id.cl_rewards_wallet) {
Intent
intent
=
new
Intent
(
getContext
(),
BillPaymentActivity
.
class
);
getContext
().
startActivity
(
intent
);
// }
}
public
static
Fragment
newInstance
()
{
BillPaymentFragment
billPaymentFragment
=
new
BillPaymentFragment
();
return
billPaymentFragment
;
}
}
\ No newline at end of file
warply_android_sdk/src/main/res/drawable/round_border_green.xml
0 → 100644
View file @
c6de15b
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<stroke
android:width=
"1.5dp"
android:color=
"#AFD767"
/>
<corners
android:radius=
"10dp"
/>
<solid
android:color=
"#AFD767"
/>
</shape>
\ No newline at end of file
warply_android_sdk/src/main/res/layout/
fragment
_bill_payment.xml
→
warply_android_sdk/src/main/res/layout/
activity
_bill_payment.xml
View file @
c6de15b
<?xml version="1.0" encoding="utf-8"?>
<
androidx.constraintlayout.widget.Constraint
Layout
xmlns:app=
"http://schemas.android.com/apk/res-auto"
<
Relative
Layout
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/cl_bill_payment"
android:layout_width=
"match_parent"
...
...
@@ -7,7 +7,7 @@
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/c
onstraintLayout
"
android:id=
"@+id/c
l_bill_header
"
android:layout_width=
"match_parent"
android:layout_height=
"80dp"
app:layout_constraintTop_toTopOf=
"parent"
>
...
...
@@ -36,36 +36,38 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"415dp"
android:layout_height=
"794dp"
android:layout_marginTop=
"4dp"
android:layout_width=
"match_parent"
android:layout_height=
"807dp"
android:layout_below=
"@+id/cl_bill_header"
android:layout_marginTop=
"1dp"
android:background=
"@drawable/shape_cos_profile"
android:orientation=
"vertical"
android:paddingBottom=
"24dp"
app:layout_constraintTop_toBottomOf=
"@+id/constraintLayout"
tools:layout_editor_absoluteX=
"0dp"
>
tools:layout_editor_absoluteX=
"-2dp"
>
<ImageView
android:id=
"@+id/imageView4"
android:layout_width=
"357dp"
android:layout_height=
"191dp"
android:layout_width=
"310dp"
android:layout_height=
"176dp"
android:layout_marginTop=
"16dp"
android:src=
"@drawable/payment_icon"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.495"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.06"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<View
android:id=
"@+id/view"
android:layout_width=
"3
51
dp"
android:layout_height=
"2
97
dp"
android:background=
"@
color/white
"
android:layout_width=
"3
28
dp"
android:layout_height=
"2
65
dp"
android:background=
"@
drawable/banner_border
"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.493"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/imageView4"
app:layout_constraintVertical_bias=
"0.
245
"
/>
app:layout_constraintVertical_bias=
"0.
142
"
/>
<EditText
android:id=
"@+id/editTextTextPersonName"
...
...
@@ -86,37 +88,29 @@
android:id=
"@+id/editTextTextPersonName2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:ems=
"10"
android:inputType=
"textPersonName"
android:text=
"Name"
app:layout_constraintBottom_toBottomOf=
"@+id/view"
app:layout_constraintEnd_toEndOf=
"@+id/view"
app:layout_constraintHorizontal_bias=
"0.4
75
"
app:layout_constraintHorizontal_bias=
"0.4
82
"
app:layout_constraintStart_toStartOf=
"@+id/view"
app:layout_constraintTop_toBottomOf=
"@+id/editTextTextPersonName"
app:layout_constraintVertical_bias=
"0.
408
"
/>
app:layout_constraintVertical_bias=
"0.
277
"
/>
<Button
android:id=
"@+id/button2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"28dp"
android:background=
"@drawable/round_border_green"
android:text=
"Πληρωμή"
android:textAllCaps=
"false"
android:textColor=
"@color/white"
app:layout_constraintBottom_toBottomOf=
"@+id/view"
app:layout_constraintEnd_toEndOf=
"@+id/view"
app:layout_constraintHorizontal_bias=
"0.498"
app:layout_constraintStart_toStartOf=
"@+id/view"
app:layout_constraintTop_toBottomOf=
"@+id/editTextTextPersonName2"
app:layout_constraintVertical_bias=
"0.916"
/>
<ImageView
android:id=
"@+id/imageView5"
android:layout_width=
"341dp"
android:layout_height=
"144dp"
app:layout_constraintEnd_toEndOf=
"@+id/view"
app:layout_constraintStart_toStartOf=
"@+id/view"
app:srcCompat=
"@drawable/ellipse"
tools:layout_editor_absoluteY=
"314dp"
/>
app:layout_constraintVertical_bias=
"1.0"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
</RelativeLayout>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment