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
144f63e4
Commit
144f63e4
authored
Aug 26, 2020
by
iman Fauzi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix logo
parent
1649ce58
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
6 deletions
+12
-6
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+2
-2
ProductModels.java
...c/main/java/com/yono/messeripos/models/ProductModels.java
+2
-2
ic_meser_create.xml
app/src/main/res/drawable/ic_meser_create.xml
+6
-0
form_product.xml
app/src/main/res/layout/form_product.xml
+1
-1
item_list.xml
app/src/main/res/layout/item_list.xml
+1
-1
No files found.
app/src/main/AndroidManifest.xml
View file @
144f63e4
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
<application
<application
android:allowBackup=
"true"
android:allowBackup=
"true"
android:icon=
"@mipmap/ic_launcher"
android:icon=
"@mipmap/ic_launcher
_new_icon
"
android:label=
"@string/app_name"
android:label=
"@string/app_name"
android:roundIcon=
"@mipmap/ic_launcher"
android:roundIcon=
"@mipmap/ic_launcher
_new_icon
"
android:supportsRtl=
"true"
android:supportsRtl=
"true"
android:theme=
"@style/AppTheme.appbar"
>
android:theme=
"@style/AppTheme.appbar"
>
<activity
android:name=
".InvoiceActivity"
></activity>
<activity
android:name=
".InvoiceActivity"
></activity>
...
...
app/src/main/java/com/yono/messeripos/models/ProductModels.java
View file @
144f63e4
...
@@ -94,12 +94,12 @@ public class ProductModels<T> {
...
@@ -94,12 +94,12 @@ public class ProductModels<T> {
@BindingAdapter
(
"path"
)
@BindingAdapter
(
"path"
)
public
static
void
setPathImage
(
ImageView
view
,
String
path
)
{
public
static
void
setPathImage
(
ImageView
view
,
String
path
)
{
if
(
TextUtils
.
isEmpty
(
path
))
view
.
setImageResource
(
R
.
mipmap
.
ic_launcher_round
);
if
(
TextUtils
.
isEmpty
(
path
))
view
.
setImageResource
(
R
.
drawable
.
ic_meser_create
);
else
{
else
{
File
file
=
new
File
(
path
);
File
file
=
new
File
(
path
);
if
(
file
.
exists
())
Glide
.
with
(
view
).
load
(
file
).
into
(
view
);
if
(
file
.
exists
())
Glide
.
with
(
view
).
load
(
file
).
into
(
view
);
else
view
.
setImageResource
(
R
.
mipmap
.
ic_launcher_round
);
else
view
.
setImageResource
(
R
.
drawable
.
ic_meser_create
);
}
}
}
}
}
}
app/src/main/res/drawable/ic_meser_create.xml
0 → 100644
View file @
144f63e4
<vector
android:height=
"167.33978dp"
android:viewportHeight=
"42.76"
android:viewportWidth=
"63.882"
android:width=
"250dp"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<path
android:fillColor=
"@color/colorPrimary"
android:pathData=
"M8.5,28.182m-8.5,0a8.5,8.5 0,1 1,17 0a8.5,8.5 0,1 1,-17 0"
/>
<path
android:fillColor=
"@color/colorPrimary"
android:pathData=
"M40.9464,5.0349L59.6642,27.3332A6.5737,6.5737 94.989,0 1,58.8557 36.5945L58.8557,36.5945A6.5737,6.5737 94.989,0 1,49.5943 35.7861L30.8766,13.4878A6.5737,6.5737 94.989,0 1,31.6851 4.2264L31.6851,4.2264A6.5737,6.5737 94.989,0 1,40.9464 5.0349z"
/>
<path
android:fillColor=
"@color/colorPrimary"
android:pathData=
"M21.5654,6.9739L40.2832,29.2722A6.5737,6.5737 94.989,0 1,39.4747 38.5335L39.4747,38.5335A6.5737,6.5737 94.989,0 1,30.2133 37.7251L11.4956,15.4268A6.5737,6.5737 94.989,0 1,12.3041 6.1654L12.3041,6.1654A6.5737,6.5737 94.989,0 1,21.5654 6.9739z"
/>
</vector>
app/src/main/res/layout/form_product.xml
View file @
144f63e4
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
android:layout_height=
"160dp"
android:layout_height=
"160dp"
android:scaleType=
"centerCrop"
android:scaleType=
"centerCrop"
app:path=
"@{photo}"
app:path=
"@{photo}"
android:src=
"@
mipmap/ic_launcher_round
"
/>
android:src=
"@
drawable/ic_meser_create
"
/>
</com.google.android.material.card.MaterialCardView>
</com.google.android.material.card.MaterialCardView>
...
...
app/src/main/res/layout/item_list.xml
View file @
144f63e4
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
android:id=
"@+id/image_product"
android:id=
"@+id/image_product"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"200dp"
android:layout_height=
"200dp"
android:src=
"@mipmap/ic_
launcher_round
"
android:src=
"@mipmap/ic_
meser_icon
"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:url=
"@{image}"
app:url=
"@{image}"
android:scaleType=
"fitXY"
/>
android:scaleType=
"fitXY"
/>
...
...
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