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
thkouk00
2022-03-23 17:50:56 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
16a8f47f6121c7761a5b515464d97e2c67855a88
16a8f47f
1 parent
1fe7189c
bill payment v1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
238 additions
and
0 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/layout/fragment_bill_payment.xml
app/src/main/java/warp/ly/android_sdk/activities/MainActivity.java
View file @
16a8f47
...
...
@@ -10,6 +10,7 @@ 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
;
...
...
@@ -62,6 +63,13 @@ 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
0 → 100644
View file @
16a8f47
package
ly
.
warp
.
sdk
.
activities
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.ImageView
;
import
ly.warp.sdk.R
;
public
class
BillPaymentActivity
extends
Activity
implements
View
.
OnClickListener
{
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
private
ImageView
mIvBack
;
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
fragment_bill_payment
);
mIvBack
=
findViewById
(
R
.
id
.
iv_back
);
initViews
();
}
@Override
public
void
onResume
()
{
super
.
onResume
();
}
@Override
public
void
onClick
(
View
view
)
{
if
(
view
.
getId
()
==
R
.
id
.
iv_back
)
{
finish
();
}
}
// ===========================================================
// Methods
// ===========================================================
private
void
initViews
()
{
mIvBack
.
setOnClickListener
(
this
);
}
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
}
warply_android_sdk/src/main/java/ly/warp/sdk/fragments/BillPaymentFragment.java
0 → 100644
View file @
16a8f47
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/layout/fragment_bill_payment.xml
0 → 100644
View file @
16a8f47
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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"
android:layout_height=
"match_parent"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/constraintLayout"
android:layout_width=
"match_parent"
android:layout_height=
"80dp"
app:layout_constraintTop_toTopOf=
"parent"
>
<ImageView
android:id=
"@+id/imageView6"
android:layout_width=
"21dp"
android:layout_height=
"20dp"
android:layout_marginStart=
"24dp"
android:layout_marginTop=
"4dp"
android:src=
"@drawable/ic_close"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"@+id/textView3"
/>
<TextView
android:id=
"@+id/textView3"
android:layout_width=
"206dp"
android:layout_height=
"32dp"
android:gravity=
"center"
android:text=
"Πληρωμή Λογαριασμού"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.348"
app:layout_constraintStart_toEndOf=
"@+id/imageView6"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"415dp"
android:layout_height=
"794dp"
android:layout_marginTop=
"4dp"
android:background=
"@drawable/shape_cos_profile"
android:orientation=
"vertical"
android:paddingBottom=
"24dp"
app:layout_constraintTop_toBottomOf=
"@+id/constraintLayout"
tools:layout_editor_absoluteX=
"0dp"
>
<ImageView
android:id=
"@+id/imageView4"
android:layout_width=
"357dp"
android:layout_height=
"191dp"
android:src=
"@drawable/payment_icon"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.06"
/>
<View
android:id=
"@+id/view"
android:layout_width=
"351dp"
android:layout_height=
"297dp"
android:background=
"@color/white"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/imageView4"
app:layout_constraintVertical_bias=
"0.245"
/>
<EditText
android:id=
"@+id/editTextTextPersonName"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:ems=
"10"
android:gravity=
"center_horizontal"
android:inputType=
"textPersonName"
android:text=
"Name"
app:layout_constraintBottom_toBottomOf=
"@+id/view"
app:layout_constraintEnd_toEndOf=
"@+id/view"
app:layout_constraintHorizontal_bias=
"0.475"
app:layout_constraintStart_toStartOf=
"@+id/view"
app:layout_constraintTop_toTopOf=
"@+id/view"
app:layout_constraintVertical_bias=
"0.15"
/>
<EditText
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.475"
app:layout_constraintStart_toStartOf=
"@+id/view"
app:layout_constraintTop_toBottomOf=
"@+id/editTextTextPersonName"
app:layout_constraintVertical_bias=
"0.408"
/>
<Button
android:id=
"@+id/button2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"28dp"
android:text=
"Πληρωμή"
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"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Please
register
or
login
to post a comment