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 12:05:26 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c538f429b97cac2445f9560a3a87be5b30b2098d
c538f429
1 parent
957579aa
minor addition
Hide 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 @
c538f42
...
...
@@ -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 @
c538f42
...
...
@@ -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