Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
meser
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Suryono
meser
Commits
2dfa5897
Commit
2dfa5897
authored
Aug 31, 2020
by
Alfansyah Fadlian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard fixed layout
parent
73509f20
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
MainActivity.java
app/src/main/java/com/yono/messeripos/MainActivity.java
+0
-2
activity_main.xml
app/src/main/res/layout/activity_main.xml
+5
-13
No files found.
app/src/main/java/com/yono/messeripos/MainActivity.java
View file @
2dfa5897
...
@@ -96,7 +96,6 @@ public class MainActivity extends AppCompatActivity {
...
@@ -96,7 +96,6 @@ public class MainActivity extends AppCompatActivity {
showLoading
(
true
);
showLoading
(
true
);
btnAddCart
=
findViewById
(
R
.
id
.
materialBtnAddCart
);
btnAddCart
=
findViewById
(
R
.
id
.
materialBtnAddCart
);
binding
.
tvCategory
.
setVisibility
(
View
.
GONE
);
binding
.
tvProduct
.
setVisibility
(
View
.
GONE
);
binding
.
tvProduct
.
setVisibility
(
View
.
GONE
);
categoryAdapter
=
new
CategoryAdapter
();
categoryAdapter
=
new
CategoryAdapter
();
...
@@ -188,7 +187,6 @@ public class MainActivity extends AppCompatActivity {
...
@@ -188,7 +187,6 @@ public class MainActivity extends AppCompatActivity {
categoryModels
.
add
(
0
,
caModels
);
categoryModels
.
add
(
0
,
caModels
);
categoryModelsArrayList
.
addAll
(
categoryModels
);
categoryModelsArrayList
.
addAll
(
categoryModels
);
binding
.
tvCategory
.
setVisibility
(
View
.
VISIBLE
);
binding
.
tvProduct
.
setVisibility
(
View
.
VISIBLE
);
binding
.
tvProduct
.
setVisibility
(
View
.
VISIBLE
);
categoryAdapter
.
setCategoriAdapter
(
MainActivity
.
this
,
categoryModelsArrayList
);
categoryAdapter
.
setCategoriAdapter
(
MainActivity
.
this
,
categoryModelsArrayList
);
binding
.
rvCategory
.
setLayoutManager
(
new
LinearLayoutManager
(
binding
.
rvCategory
.
setLayoutManager
(
new
LinearLayoutManager
(
...
...
app/src/main/res/layout/activity_main.xml
View file @
2dfa5897
...
@@ -50,22 +50,15 @@
...
@@ -50,22 +50,15 @@
</com.google.android.material.appbar.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>
<TextView
android:id=
"@+id/tvCategory"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/topBar"
android:textColor=
"@android:color/black"
android:textSize=
"18sp"
android:textAllCaps=
"true"
android:layout_margin=
"5dp"
android:text=
"Category"
/>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rvCategory"
android:id=
"@+id/rvCategory"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tvCategory"
/>
android:layout_below=
"@+id/topBar"
android:layout_alignParentEnd=
"true"
android:paddingTop=
"10dp"
android:layout_marginEnd=
"0dp"
/>
<ImageView
<ImageView
android:id=
"@+id/imgEmpty"
android:id=
"@+id/imgEmpty"
...
@@ -95,8 +88,7 @@
...
@@ -95,8 +88,7 @@
android:textColor=
"@android:color/black"
android:textColor=
"@android:color/black"
android:textSize=
"18sp"
android:textSize=
"18sp"
android:textAllCaps=
"true"
android:textAllCaps=
"true"
android:layout_margin=
"5dp"
android:layout_margin=
"5dp"
/>
android:text=
"Product"
/>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rvProduct"
android:id=
"@+id/rvProduct"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment