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 13:00:40 +0200
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
3871e94f1477b475f7408b840e1b642190e6e320
3871e94f
2 parents
2c37a978
c538f429
Merge branch 'cosmote' of
https://git.warp.ly/open-source/warply_android_sdk_mav…
…en_plugin into cosmote
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
app/src/main/java/warp/ly/android_sdk/activities/MainActivity.java
warply_android_sdk/src/main/res/layout/fragment_loyalty.xml
app/src/main/java/warp/ly/android_sdk/activities/MainActivity.java
View file @
3871e94
...
...
@@ -5,6 +5,7 @@ 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
;
...
...
@@ -49,11 +50,17 @@ public class MainActivity extends BaseActivity implements NavigationBarView.OnIt
switch
(
item
.
getItemId
())
{
case
R
.
id
.
menu_loyalty
:
mFragmentToSet
=
LoyaltyFragment
.
newInstance
();
getSupportFragmentManager
().
beginTransaction
().
replace
(
R
.
id
.
fl_fragment
,
mFragmentToSet
).
commit
();
getSupportFragmentManager
().
beginTransaction
()
.
replace
(
R
.
id
.
fl_fragment
,
mFragmentToSet
)
.
addToBackStack
(
null
)
.
commit
();
return
true
;
case
R
.
id
.
menu_home
:
mFragmentToSet
=
HomeFragment
.
newInstance
();
getSupportFragmentManager
().
beginTransaction
().
replace
(
R
.
id
.
fl_fragment
,
mFragmentToSet
).
commit
();
getSupportFragmentManager
().
beginTransaction
()
.
replace
(
R
.
id
.
fl_fragment
,
mFragmentToSet
)
.
addToBackStack
(
null
)
.
commit
();
return
true
;
}
return
false
;
...
...
warply_android_sdk/src/main/res/layout/fragment_loyalty.xml
View file @
3871e94
...
...
@@ -101,7 +101,7 @@
android:id=
"@+id/cl_recycler_inner"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"3
2
dp"
android:layout_marginTop=
"3
6
dp"
android:background=
"@color/white_tr"
android:paddingBottom=
"4dp"
app:layout_constraintLeft_toLeftOf=
"parent"
...
...
Please
register
or
login
to post a comment