Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
Your Cashier
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
Ahmad Abi Mulya
Your Cashier
Commits
1e8bac19
Commit
1e8bac19
authored
Aug 24, 2020
by
Trio Saputra
Browse files
Options
Browse Files
Download
Plain Diff
merging master
parents
073b1428
2ff2a6c1
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
1053 additions
and
118 deletions
+1053
-118
build.gradle
app/build.gradle
+0
-1
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+14
-4
CartActivity.java
.../com/example/yourcashiertest/activities/CartActivity.java
+16
-0
MainActivity.java
.../com/example/yourcashiertest/activities/MainActivity.java
+3
-1
PaymentActivity.java
...m/example/yourcashiertest/activities/PaymentActivity.java
+16
-0
SplashActivity.java
...om/example/yourcashiertest/activities/SplashActivity.java
+21
-0
drawable_image.xml
app/src/main/res/drawable/drawable_image.xml
+19
-0
elips.xml
app/src/main/res/drawable/elips.xml
+14
-0
ic_baseline_add_24.xml
app/src/main/res/drawable/ic_baseline_add_24.xml
+5
-0
ic_baseline_arrow_back_ios_24.xml
app/src/main/res/drawable/ic_baseline_arrow_back_ios_24.xml
+10
-0
ic_baseline_more_vert_24.xml
app/src/main/res/drawable/ic_baseline_more_vert_24.xml
+5
-0
ic_baseline_shopping_cart_24.xml
app/src/main/res/drawable/ic_baseline_shopping_cart_24.xml
+5
-0
minus.png
app/src/main/res/drawable/minus.png
+0
-0
plus.png
app/src/main/res/drawable/plus.png
+0
-0
rec_qty.xml
app/src/main/res/drawable/rec_qty.xml
+25
-0
rectangle_1.xml
app/src/main/res/drawable/rectangle_1.xml
+26
-0
rectangle_2.xml
app/src/main/res/drawable/rectangle_2.xml
+24
-0
rectangle_4.xml
app/src/main/res/drawable/rectangle_4.xml
+67
-0
rounded_shape.xml
app/src/main/res/drawable/rounded_shape.xml
+11
-0
splash_scre.xml
app/src/main/res/drawable/splash_scre.xml
+67
-0
roboto_bold.xml
app/src/main/res/font/roboto_bold.xml
+7
-0
activity_cart.xml
app/src/main/res/layout/activity_cart.xml
+92
-0
activity_main.xml
app/src/main/res/layout/activity_main.xml
+97
-5
activity_payment.xml
app/src/main/res/layout/activity_payment.xml
+114
-0
activity_splash.xml
app/src/main/res/layout/activity_splash.xml
+28
-0
cart_item.xml
app/src/main/res/layout/cart_item.xml
+117
-0
item_list.xml
app/src/main/res/layout/item_list.xml
+39
-0
item_product.xml
app/src/main/res/layout/item_product.xml
+62
-104
colors.xml
app/src/main/res/values/colors.xml
+2
-0
font_certs.xml
app/src/main/res/values/font_certs.xml
+17
-0
preloaded_fonts.xml
app/src/main/res/values/preloaded_fonts.xml
+6
-0
strings.xml
app/src/main/res/values/strings.xml
+9
-0
styles.xml
app/src/main/res/values/styles.xml
+114
-2
build.gradle
build.gradle
+1
-1
No files found.
app/build.gradle
View file @
1e8bac19
...
@@ -24,7 +24,6 @@ android {
...
@@ -24,7 +24,6 @@ android {
}
}
}
}
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
...
...
app/src/main/AndroidManifest.xml
View file @
1e8bac19
...
@@ -8,15 +8,25 @@
...
@@ -8,15 +8,25 @@
android:label=
"@string/app_name"
android:label=
"@string/app_name"
android:roundIcon=
"@mipmap/ic_launcher_round"
android:roundIcon=
"@mipmap/ic_launcher_round"
android:supportsRtl=
"true"
android:supportsRtl=
"true"
android:theme=
"@style/AppTheme.NoActionBar"
>
android:theme=
"@style/AppTheme2"
>
<activity
android:name=
".ProductActivity"
>
<activity
android:name=
".activities.SplashActivity"
android:theme=
"@style/AppTheme2"
>
<intent-filter>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</intent-filter>
</activity>
</activity>
<activity
android:name=
".MainActivity"
>
<activity
</activity>
android:name=
".activities.PaymentActivity"
android:theme=
"@style/AppTheme2"
/>
<activity
android:name=
".activities.CartActivity"
android:theme=
"@style/AppTheme2"
/>
<activity
android:name=
".activities.MainActivity"
android:theme=
"@style/AppTheme2"
/>
<meta-data
android:name=
"preloaded_fonts"
android:resource=
"@array/preloaded_fonts"
/>
</application>
</application>
</manifest>
</manifest>
\ No newline at end of file
app/src/main/java/com/example/yourcashiertest/activities/CartActivity.java
0 → 100644
View file @
1e8bac19
package
com
.
example
.
yourcashiertest
.
activities
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.os.Bundle
;
import
com.example.yourcashiertest.R
;
public
class
CartActivity
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_cart
);
}
}
\ No newline at end of file
app/src/main/java/com/example/yourcashiertest/MainActivity.java
→
app/src/main/java/com/example/yourcashiertest/
activities/
MainActivity.java
View file @
1e8bac19
package
com
.
example
.
yourcashiertest
;
package
com
.
example
.
yourcashiertest
.
activities
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
com.example.yourcashiertest.R
;
public
class
MainActivity
extends
AppCompatActivity
{
public
class
MainActivity
extends
AppCompatActivity
{
@Override
@Override
...
...
app/src/main/java/com/example/yourcashiertest/activities/PaymentActivity.java
0 → 100644
View file @
1e8bac19
package
com
.
example
.
yourcashiertest
.
activities
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.os.Bundle
;
import
com.example.yourcashiertest.R
;
public
class
PaymentActivity
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_payment
);
}
}
\ No newline at end of file
app/src/main/java/com/example/yourcashiertest/activities/SplashActivity.java
0 → 100644
View file @
1e8bac19
package
com
.
example
.
yourcashiertest
.
activities
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.os.Looper
;
import
com.example.yourcashiertest.R
;
public
class
SplashActivity
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_splash
);
new
Handler
(
Looper
.
getMainLooper
()).
postDelayed
(()
->
{
startActivity
(
new
Intent
(
this
,
MainActivity
.
class
));
finish
();
},
3000
);
}
}
\ No newline at end of file
app/src/main/res/drawable/drawable_image.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:aapt=
"http://schemas.android.com/aapt"
android:width=
"156dp"
android:height=
"116dp"
android:viewportWidth=
"156"
android:viewportHeight=
"116"
>
<group>
<clip-path
android:pathData=
"M10 0H146C151.523 0 156 4.47715 156 10V106C156 111.523 151.523 116 146 116H10C4.47715 116 0 111.523 0 106V10C0 4.47715 4.47715 0 10 0Z"
/>
</group>
</vector>
\ No newline at end of file
app/src/main/res/drawable/elips.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:radius=
"200dp"
/>
<stroke
android:width=
"0.5dp"
android:color=
"#D8CFCF"
/>
<solid
android:color=
"@color/color_white"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/ic_baseline_add_24.xml
0 → 100644
View file @
1e8bac19
<vector
android:height=
"24dp"
android:tint=
"#FFFFFF"
android:viewportHeight=
"24"
android:viewportWidth=
"24"
android:width=
"24dp"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<path
android:fillColor=
"@android:color/white"
android:pathData=
"M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
/>
</vector>
app/src/main/res/drawable/ic_baseline_arrow_back_ios_24.xml
0 → 100644
View file @
1e8bac19
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24"
android:viewportHeight=
"24"
android:tint=
"?attr/colorControlNormal"
>
<path
android:fillColor=
"@android:color/white"
android:pathData=
"M11.67,3.87L9.9,2.1 0,12l9.9,9.9 1.77,-1.77L3.54,12z"
/>
</vector>
app/src/main/res/drawable/ic_baseline_more_vert_24.xml
0 → 100644
View file @
1e8bac19
<vector
android:height=
"24dp"
android:tint=
"#FFFFFF"
android:viewportHeight=
"24"
android:viewportWidth=
"24"
android:width=
"24dp"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<path
android:fillColor=
"@android:color/white"
android:pathData=
"M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z"
/>
</vector>
app/src/main/res/drawable/ic_baseline_shopping_cart_24.xml
0 → 100644
View file @
1e8bac19
<vector
android:height=
"24dp"
android:tint=
"#FFFFFF"
android:viewportHeight=
"24"
android:viewportWidth=
"24"
android:width=
"24dp"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<path
android:fillColor=
"@android:color/white"
android:pathData=
"M7,18c-1.1,0 -1.99,0.9 -1.99,2S5.9,22 7,22s2,-0.9 2,-2 -0.9,-2 -2,-2zM1,2v2h2l3.6,7.59 -1.35,2.45c-0.16,0.28 -0.25,0.61 -0.25,0.96 0,1.1 0.9,2 2,2h12v-2L7.42,15c-0.14,0 -0.25,-0.11 -0.25,-0.25l0.03,-0.12 0.9,-1.63h7.45c0.75,0 1.41,-0.41 1.75,-1.03l3.58,-6.49c0.08,-0.14 0.12,-0.31 0.12,-0.48 0,-0.55 -0.45,-1 -1,-1L5.21,4l-0.94,-2L1,2zM17,18c-1.1,0 -1.99,0.9 -1.99,2s0.89,2 1.99,2 2,-0.9 2,-2 -0.9,-2 -2,-2z"
/>
</vector>
app/src/main/res/drawable/minus.png
0 → 100644
View file @
1e8bac19
2.87 KB
app/src/main/res/drawable/plus.png
0 → 100644
View file @
1e8bac19
3.52 KB
app/src/main/res/drawable/rec_qty.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:aapt=
"http://schemas.android.com/aapt"
android:width=
"78dp"
android:height=
"40dp"
android:viewportWidth=
"78"
android:viewportHeight=
"40"
>
<group>
<clip-path
android:pathData=
"M12 0H66C72.6274 0 78 5.37258 78 12V28C78 34.6274 72.6274 40 66 40H12C5.37258 40 0 34.6274 0 28V12C0 5.37258 5.37258 0 12 0Z"
/>
<path
android:pathData=
"M12 0H66C72.6274 0 78 5.37258 78 12V28C78 34.6274 72.6274 40 66 40H12C5.37258 40 0 34.6274 0 28V12C0 5.37258 5.37258 0 12 0Z"
android:strokeWidth=
"4"
android:strokeColor=
"#4D000000"
/>
</group>
</vector>
\ No newline at end of file
app/src/main/res/drawable/rectangle_1.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:aapt=
"http://schemas.android.com/aapt"
android:width=
"78dp"
android:height=
"40dp"
android:viewportWidth=
"78"
android:viewportHeight=
"40"
>
<group>
<clip-path
android:pathData=
"M12 0H66C72.6274 0 78 5.37258 78 12V28C78 34.6274 72.6274 40 66 40H12C5.37258 40 0 34.6274 0 28V12C0 5.37258 5.37258 0 12 0Z"
/>
<path
android:pathData=
"M12 0H66C72.6274 0 78 5.37258 78 12V28C78 34.6274 72.6274 40 66 40H12C5.37258 40 0 34.6274 0 28V12C0 5.37258 5.37258 0 12 0Z"
android:strokeWidth=
"4"
android:strokeColor=
"#4D000000"
android:fillColor=
"#72B5B7"
/>
</group>
</vector>
\ No newline at end of file
app/src/main/res/drawable/rectangle_2.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:aapt=
"http://schemas.android.com/aapt"
android:width=
"340dp"
android:height=
"100dp"
android:viewportWidth=
"340"
android:viewportHeight=
"100"
>
<group>
<clip-path
android:pathData=
"M5 0H335C337.761 0 340 2.23858 340 5V95C340 97.7614 337.761 100 335 100H5C2.23858 100 0 97.7614 0 95V5C0 2.23858 2.23858 0 5 0Z"
/>
<path
android:pathData=
"M0 0V100H340V0"
android:fillColor=
"#FFFFFF"
/>
</group>
</vector>
\ No newline at end of file
app/src/main/res/drawable/rectangle_4.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:aapt=
"http://schemas.android.com/aapt"
xmlns:tools=
"http://schemas.android.com/tools"
android:width=
"360dp"
android:height=
"249dp"
android:viewportWidth=
"360"
android:viewportHeight=
"249"
>
<group>
<clip-path
android:pathData=
"M10 0H350C355.523 0 360 4.47715 360 10V239C360 244.523 355.523 249 350 249H10C4.47715 249 0 244.523 0 239V10C0 4.47715 4.47715 0 10 0Z"
tools:ignore=
"VectorRaster"
/>
<path
android:pathData=
"M0 0V249H360V0"
android:fillColor=
"#40E0D0"
/>
<group
android:translateX=
"1"
android:translateY=
"0"
android:pivotX=
"180"
android:pivotY=
"124.5"
android:scaleX=
"2"
android:scaleY=
"2"
android:rotation=
"90"
>
<path
android:pathData=
"M0 0V249H360V0"
>
<aapt:attr
name=
"android:fillColor"
>
<gradient
android:type=
"linear"
android:startX=
"90"
android:startY=
"124.5"
android:endX=
"270"
android:endY=
"124.5"
>
<item
android:color=
"#72B5B7"
android:offset=
"0"
/>
<item
android:color=
"#00FFFFFF"
android:offset=
"1"
/>
</gradient>
</aapt:attr>
</path>
</group>
</group>
</vector>
app/src/main/res/drawable/rounded_shape.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<solid
android:color=
"@color/colorPrimary"
>
</solid>
<corners
android:radius=
"11dp"
>
</corners>
</shape>
\ No newline at end of file
app/src/main/res/drawable/splash_scre.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:aapt=
"http://schemas.android.com/aapt"
xmlns:tools=
"http://schemas.android.com/tools"
android:width=
"360dp"
android:height=
"640dp"
android:viewportWidth=
"360"
android:viewportHeight=
"640"
>
<group>
<clip-path
android:pathData=
"M0 0H360V640H0V0Z"
tools:ignore=
"VectorRaster"
/>
<path
android:pathData=
"M0 0V640H360V0"
android:fillColor=
"#40E0D0"
/>
<group
android:translateX=
"1"
android:translateY=
"0"
android:pivotX=
"180"
android:pivotY=
"320"
android:scaleX=
"2"
android:scaleY=
"2"
android:rotation=
"90"
>
<path
android:pathData=
"M0 0V640H360V0"
>
<aapt:attr
name=
"android:fillColor"
>
<gradient
android:type=
"linear"
android:startX=
"90"
android:startY=
"320"
android:endX=
"270"
android:endY=
"320"
>
<item
android:color=
"#FFFFFF"
android:offset=
"0"
/>
<item
android:color=
"#00FFFFFF"
android:offset=
"1"
/>
</gradient>
</aapt:attr>
</path>
</group>
</group>
</vector>
\ No newline at end of file
app/src/main/res/font/roboto_bold.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<font-family
xmlns:app=
"http://schemas.android.com/apk/res-auto"
app:fontProviderAuthority=
"com.google.android.gms.fonts"
app:fontProviderPackage=
"com.google.android.gms"
app:fontProviderQuery=
"name=Roboto&weight=700"
app:fontProviderCerts=
"@array/com_google_android_gms_fonts_certs"
>
</font-family>
app/src/main/res/layout/activity_cart.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:padding=
"10dp"
tools:context=
".activities.CartActivity"
>
<ImageView
android:id=
"@+id/imageView2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_baseline_arrow_back_ios_24"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.041"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.022"
/>
<TextView
android:id=
"@+id/cart"
android:layout_width=
"134dp"
android:layout_height=
"36dp"
android:gravity=
"top"
android:text=
"@string/cart"
android:textAppearance=
"@style/cart"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"@+id/imageView2"
app:layout_constraintTop_toBottomOf=
"@+id/imageView2"
app:layout_constraintVertical_bias=
"0.061"
/>
<TextView
android:id=
"@+id/items"
android:layout_width=
"68dp"
android:layout_height=
"21dp"
android:layout_marginStart=
"32dp"
android:gravity=
"top"
android:text=
"@string/items"
android:textAppearance=
"@style/items"
app:layout_constraintBottom_toBottomOf=
"@+id/cart"
app:layout_constraintStart_toEndOf=
"@+id/cart"
app:layout_constraintTop_toTopOf=
"@+id/cart"
app:layout_constraintVertical_bias=
"0.466"
/>
<View
android:id=
"@+id/amount"
android:layout_width=
"112dp"
android:layout_height=
"59dp"
android:background=
"@drawable/rectangle_1"
app:layout_constraintBottom_toBottomOf=
"@+id/items"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.666"
app:layout_constraintStart_toEndOf=
"@+id/items"
app:layout_constraintTop_toTopOf=
"@+id/items"
/>
<TextView
android:id=
"@+id/some_id"
android:layout_width=
"wrap_content"
android:layout_height=
"20dp"
android:gravity=
"top"
android:textColor=
"#fff"
android:text=
"@string/some_id"
android:textAppearance=
"@style/some_id"
app:layout_constraintBottom_toBottomOf=
"@+id/amount"
app:layout_constraintEnd_toEndOf=
"@+id/amount"
app:layout_constraintStart_toStartOf=
"@+id/amount"
app:layout_constraintTop_toTopOf=
"@+id/amount"
/>
<View
android:id=
"@+id/view"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:background=
"@android:color/darker_gray"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/cart"
app:layout_constraintVertical_bias=
"0.089"
tools:layout_editor_absoluteX=
"9dp"
/>
<include
layout=
"@layout/cart_item"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/view"
app:layout_constraintVertical_bias=
"0.071"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_main.xml
View file @
1e8bac19
...
@@ -4,15 +4,107 @@
...
@@ -4,15 +4,107 @@
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".MainActivity"
>
tools:context=
".activities.MainActivity"
>
<!-- Rectangle 4 -->
<View
android:id=
"@+id/rectangle_4"
android:layout_width=
"454dp"
android:layout_height=
"274dp"
android:background=
"@drawable/rectangle_4"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.511"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.0"
/>
<ImageView
android:id=
"@+id/imageView3"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
app:layout_constraintBottom_toBottomOf=
"@+id/rectangle_4"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.795"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.137"
app:srcCompat=
"@drawable/ic_baseline_shopping_cart_24"
/>
<TextView
<TextView
android:id=
"@+id/textView"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
Hello World!
"
android:text=
"
3
"
a
pp:layout_constraintBottom_toBottomOf=
"parent
"
a
ndroid:textColor=
"#EA0909
"
app:layout_constraint
Left_toLeftOf=
"parent
"
app:layout_constraint
Bottom_toBottomOf=
"@+id/imageView3
"
app:layout_constraint
Right_toRightOf=
"parent
"
app:layout_constraint
End_toEndOf=
"@+id/imageView3
"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<ImageView
android:id=
"@+id/iv_settings"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
app:layout_constraintBottom_toBottomOf=
"@+id/imageView3"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.444"
app:layout_constraintStart_toEndOf=
"@+id/imageView3"
app:layout_constraintTop_toTopOf=
"@+id/imageView3"
app:layout_constraintVertical_bias=
"1.0"
app:srcCompat=
"@drawable/ic_baseline_more_vert_24"
/>
<TextView
android:id=
"@+id/tv_hello"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Hello"
android:textStyle=
"bold"
style=
"@style/hello_wahyu"
android:textColor=
"#fff"
app:layout_constraintBottom_toBottomOf=
"@+id/rectangle_4"
app:layout_constraintEnd_toEndOf=
"@+id/rectangle_4"
app:layout_constraintHorizontal_bias=
"0.045"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/imageView3"
app:layout_constraintVertical_bias=
"0.067"
/>
<TextView
android:id=
"@+id/tv_user"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Wahyu,"
android:textStyle=
"bold"
style=
"@style/hello_wahyu"
android:textColor=
"#fff"
app:layout_constraintBottom_toBottomOf=
"@+id/tv_hello"
app:layout_constraintEnd_toEndOf=
"@+id/rectangle_4"
app:layout_constraintHorizontal_bias=
"0.03"
app:layout_constraintStart_toEndOf=
"@+id/tv_hello"
app:layout_constraintTop_toTopOf=
"@+id/tv_hello"
app:layout_constraintVertical_bias=
"1.0"
/>
<com.google.android.material.textfield.TextInputLayout
android:id=
"@+id/tilSearch"
style=
"@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/space_default"
app:layout_constraintBottom_toBottomOf=
"@+id/rectangle_4"
app:layout_constraintTop_toBottomOf=
"@+id/tv_user"
app:layout_constraintVertical_bias=
"0.48000002"
tools:layout_editor_absoluteX=
"16dp"
>
<com.google.android.material.textfield.TextInputEditText
android:id=
"@+id/etSearch"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/elips"
android:hint=
"Cari product ... "
android:imeOptions=
"actionSearch"
android:inputType=
"textCapWords"
android:textSize=
"@dimen/text_default"
/>
</com.google.android.material.textfield.TextInputLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_payment.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".activities.PaymentActivity"
>
<!-- Payment -->
<TextView
android:id=
"@+id/payment"
android:layout_width=
"108dp"
android:layout_height=
"28dp"
android:layout_alignParentLeft=
"true"
android:layout_alignParentTop=
"true"
android:gravity=
"top"
android:text=
"@string/payment"
android:textAppearance=
"@style/payment"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.115"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.044"
/>
<com.google.android.material.card.MaterialCardView
android:layout_width=
"340dp"
android:layout_height=
"100dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/payment"
app:layout_constraintVertical_bias=
"0.04000002"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ImageView
android:id=
"@+id/iv_cash"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.0"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.8"
tools:srcCompat=
"@tools:sample/avatars"
/>
<TextView
android:id=
"@+id/cash"
android:layout_width=
"138dp"
android:layout_height=
"33dp"
android:text=
"@string/cash"
android:textAppearance=
"@style/cash"
app:layout_constraintBottom_toBottomOf=
"@+id/iv_cash"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.189"
app:layout_constraintStart_toEndOf=
"@+id/iv_cash"
app:layout_constraintTop_toTopOf=
"@+id/iv_cash"
app:layout_constraintVertical_bias=
"0.0"
/>
<TextView
android:id=
"@+id/rp_500_000"
android:layout_width=
"138dp"
android:layout_height=
"33dp"
android:layout_alignParentLeft=
"true"
android:layout_alignParentTop=
"true"
android:gravity=
"top"
android:text=
"@string/rp_500_000"
android:textAppearance=
"@style/rp_500_000"
app:layout_constraintBottom_toBottomOf=
"@+id/iv_cash"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.193"
app:layout_constraintStart_toEndOf=
"@+id/iv_cash"
app:layout_constraintTop_toBottomOf=
"@+id/cash"
app:layout_constraintVertical_bias=
"0.145"
/>
<View
android:id=
"@+id/rectangle_2"
android:layout_width=
"96dp"
android:layout_height=
"44dp"
android:layout_alignParentLeft=
"true"
android:layout_alignParentTop=
"true"
android:background=
"@drawable/rectangle_2"
android:backgroundTint=
"#45E1D1"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"1.0"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/rp_500_000"
app:layout_constraintVertical_bias=
"1.0"
/>
<TextView
android:id=
"@+id/pay"
android:layout_width=
"wrap_content"
android:layout_height=
"23dp"
android:text=
"@string/pay"
android:textAppearance=
"@style/pay"
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"@+id/rectangle_2"
app:layout_constraintEnd_toEndOf=
"@+id/rectangle_2"
app:layout_constraintStart_toStartOf=
"@+id/rectangle_2"
app:layout_constraintTop_toTopOf=
"@+id/rectangle_2"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_splash.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<!-- splash screen -->
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/splash_scre"
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
android:background=
"@drawable/splash_scre"
tools:context=
".activities.SplashActivity"
>
<ImageView
android:id=
"@+id/ivLogo"
android:layout_width=
"256dp"
android:layout_height=
"256dp"
android:src=
"@drawable/logo"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<ProgressBar
android:id=
"@+id/pbLoading"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/ivLogo"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/cart_item.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<!-- Burger Medium -->
<ImageView
android:id=
"@+id/imageView"
android:layout_width=
"107dp"
android:layout_height=
"110dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.003"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.006"
tools:srcCompat=
"@tools:sample/avatars"
/>
<TextView
android:id=
"@+id/burger_medi"
android:layout_width=
"136dp"
android:layout_height=
"41dp"
android:layout_alignParentLeft=
"true"
android:layout_alignParentTop=
"true"
android:gravity=
"top"
android:text=
"@string/burger_medi"
android:textAppearance=
"@style/burger_medi"
app:layout_constraintBottom_toBottomOf=
"@+id/imageView"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.099"
app:layout_constraintStart_toEndOf=
"@+id/imageView"
app:layout_constraintTop_toTopOf=
"@+id/imageView"
app:layout_constraintVertical_bias=
"0.0"
/>
<TextView
android:id=
"@+id/some_id"
android:layout_width=
"82dp"
android:layout_height=
"23dp"
android:layout_alignParentLeft=
"true"
android:layout_alignParentTop=
"true"
android:gravity=
"top"
android:text=
"@string/some_id"
android:textAppearance=
"@style/some_id"
app:layout_constraintBottom_toBottomOf=
"@+id/imageView"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.106"
app:layout_constraintStart_toEndOf=
"@+id/imageView"
app:layout_constraintTop_toBottomOf=
"@+id/burger_medi"
app:layout_constraintVertical_bias=
"1.0"
/>
<View
android:id=
"@+id/rectangle_1"
android:layout_width=
"78dp"
android:layout_height=
"40dp"
android:layout_alignParentLeft=
"true"
android:layout_alignParentTop=
"true"
android:background=
"@drawable/rec_qty"
app:layout_constraintBottom_toBottomOf=
"@+id/some_id"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"1.0"
app:layout_constraintStart_toEndOf=
"@+id/some_id"
app:layout_constraintTop_toTopOf=
"@+id/some_id"
app:layout_constraintVertical_bias=
"1.0"
/>
<Button
android:id=
"@+id/btn_min"
android:layout_width=
"10dp"
android:layout_height=
"10dp"
android:layout_marginStart=
"8dp"
android:background=
"@drawable/minus"
app:layout_constraintBottom_toBottomOf=
"@+id/rectangle_1"
app:layout_constraintStart_toStartOf=
"@+id/rectangle_1"
app:layout_constraintTop_toTopOf=
"@+id/rectangle_1"
app:layout_constraintVertical_bias=
"0.566"
/>
<Button
android:id=
"@+id/btn_add"
android:layout_width=
"10dp"
android:layout_height=
"10dp"
android:layout_marginEnd=
"8dp"
android:background=
"@drawable/plus"
app:layout_constraintBottom_toBottomOf=
"@+id/rectangle_1"
app:layout_constraintEnd_toEndOf=
"@+id/rectangle_1"
app:layout_constraintTop_toTopOf=
"@+id/rectangle_1"
app:layout_constraintVertical_bias=
"0.533"
/>
<TextView
android:id=
"@+id/tv_qty"
android:layout_width=
"10dp"
android:layout_height=
"wrap_content"
android:text=
"2"
app:layout_constraintBottom_toBottomOf=
"@+id/rectangle_1"
app:layout_constraintEnd_toStartOf=
"@+id/btn_add"
app:layout_constraintStart_toEndOf=
"@+id/btn_min"
app:layout_constraintTop_toTopOf=
"@+id/rectangle_1"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_marginTop=
"20dp"
android:background=
"@android:color/darker_gray"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/some_id"
tools:layout_editor_absoluteX=
"10dp"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
\ No newline at end of file
app/src/main/res/layout/item_list.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ImageView
android:id=
"@+id/imageView5"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/elips"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.452"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.026"
tools:srcCompat=
"@tools:sample/avatars"
/>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Burger Medium"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.45"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/imageView5"
app:layout_constraintVertical_bias=
"0.089"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
\ No newline at end of file
app/src/main/res/layout/item_product.xml
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView
android:layout_width=
"match_parent"
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
>
xmlns:tools=
"http://schemas.android.com/tools"
<com.google.android.material.card.MaterialCardView
android:layout_alignParentLeft=
"true"
android:layout_alignParentTop=
"true"
android:background=
"@drawable/rectangle_1"
android:elevation=
"10dp"
android:padding=
"@dimen/space_small"
app:cardCornerRadius=
"@dimen/space_small"
tools:ignore=
"MissingConstraints"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
>
android:layout_margin=
"@dimen/space_small"
<ImageView
android:padding=
"@dimen/space_small"
android:id=
"@+id/ivProduct"
app:cardCornerRadius=
"@dimen/space_small"
tools:ignore=
"MissingConstraints"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
android:adjustViewBounds=
"true"
<ImageView
tools:src=
"@tools:sample/avatars"
/>
android:id=
"@+id/ivProduct"
<com.google.android.material.textview.MaterialTextView
android:layout_width=
"match_parent"
android:id=
"@+id/tvProduct"
android:layout_height=
"wrap_content"
android:layout_width=
"match_parent"
android:adjustViewBounds=
"true"
android:layout_height=
"wrap_content"
tools:src=
"@tools:sample/avatars"
/>
android:layout_below=
"@id/ivProduct"
android:fontFamily=
"roboto"
<ImageView
android:gravity=
"start"
android:id=
"@+id/ivUpdate"
android:padding=
"@dimen/space_small"
android:layout_width=
"wrap_content"
android:text=
"Burger Medium"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/text_default"
android:padding=
"@dimen/space_small"
/>
android:textStyle=
"bold"
/>
<com.google.android.material.textview.MaterialTextView
<ImageView
android:id=
"@+id/tvDescription"
android:id=
"@+id/ivDelete"
android:layout_width=
"match_parent"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tvProduct"
android:padding=
"@dimen/space_small"
android:fontFamily=
"@font/roboto_bold"
android:layout_alignParentEnd=
"true"
/>
android:padding=
"@dimen/space_small"
android:text=
"text"
<com.google.android.material.textview.MaterialTextView
android:textSize=
"@dimen/text_small"
android:id=
"@+id/tvQuantity"
tools:text=
"test"
/>
android:layout_width=
"wrap_content"
<com.google.android.material.textview.MaterialTextView
android:layout_height=
"wrap_content"
android:id=
"@+id/tvPrice"
android:layout_above=
"@id/tvProduct"
android:layout_width=
"wrap_content"
android:layout_alignParentEnd=
"true"
android:layout_height=
"23dp"
android:layout_marginEnd=
"1dp"
android:layout_below=
"@id/tvDescription"
android:layout_marginBottom=
"0dp"
android:layout_marginLeft=
"19dp"
android:fontFamily=
"monospace"
android:layout_marginTop=
"23dp"
android:padding=
"@dimen/space_small"
android:gravity=
"top"
android:text=
"@{product.quantity + ``}"
android:text=
"@string/some_id"
android:textColor=
"@android:color/white"
android:textAppearance=
"@style/some_id"
/>
android:textSize=
"@dimen/text_default"
<com.google.android.material.button.MaterialButton
android:textStyle=
"bold"
android:id=
"@+id/btnAddToCart"
tools:text=
"10"
/>
style=
"@style/AppTheme.RoundedCornerMaterialButton"
android:layout_width=
"wrap_content"
<com.google.android.material.textview.MaterialTextView
android:layout_height=
"wrap_content"
android:id=
"@+id/tvProduct"
android:layout_below=
"@id/tvDescription"
android:layout_width=
"match_parent"
android:layout_marginStart=
"217dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:layout_below=
"@id/ivProduct"
android:layout_marginEnd=
"10dp"
android:fontFamily=
""
android:layout_marginBottom=
"10dp"
android:gravity=
"center"
android:layout_toEndOf=
"@id/tvPrice"
android:padding=
"@dimen/space_small"
app:icon=
"@drawable/ic_baseline_add_24"
/>
android:text=
"@{product.name}"
</RelativeLayout>
android:textAllCaps=
"true"
</com.google.android.material.card.MaterialCardView>
android:textColor=
"@color/colorPrimaryDark"
\ No newline at end of file
android:textSize=
"@dimen/text_default"
android:textStyle=
"bold"
tools:text=
"@tools:sample/full_names"
/>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/tvPrice"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tvProduct"
android:fontFamily=
""
android:gravity=
"end"
android:paddingStart=
"@dimen/space_small"
android:paddingEnd=
"@dimen/space_small"
android:text=
"@{price}"
android:textColor=
"@color/colorDanger"
android:textSize=
"@dimen/text_large"
tools:text=
"Rp. 100.000.000"
/>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/tvDescription"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tvPrice"
android:fontFamily=
""
android:padding=
"@dimen/space_small"
android:text=
"@{product.description}"
android:textColor=
"@android:color/darker_gray"
android:textSize=
"@dimen/text_small"
tools:text=
"@tools:sample/lorem/random"
/>
<com.google.android.material.button.MaterialButton
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/colorAccent"
android:layout_below=
"@id/tvDescription"
android:textSize=
"@dimen/text_default"
android:text=
"ADD TO CART"
/>
</RelativeLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
1e8bac19
...
@@ -9,4 +9,6 @@
...
@@ -9,4 +9,6 @@
<color
name=
"colorText"
>
#eeeeee
</color>
<color
name=
"colorText"
>
#eeeeee
</color>
<color
name=
"colorBackground"
>
#dddddd
</color>
<color
name=
"colorBackground"
>
#dddddd
</color>
<color
name=
"colorDanger"
>
#cf1b1b
</color>
<color
name=
"colorDanger"
>
#cf1b1b
</color>
<color
name=
"color_white"
>
#fff
</color>
<color
name=
"color_grey"
>
#fff
</color>
</resources>
</resources>
\ No newline at end of file
app/src/main/res/values/font_certs.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array
name=
"com_google_android_gms_fonts_certs"
>
<item>
@array/com_google_android_gms_fonts_certs_dev
</item>
<item>
@array/com_google_android_gms_fonts_certs_prod
</item>
</array>
<string-array
name=
"com_google_android_gms_fonts_certs_dev"
>
<item>
MIIEqDCCA5CgAwIBAgIJANWFuGx90071MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAeFw0wODA0MTUyMzM2NTZaFw0zNTA5MDEyMzM2NTZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBANbOLggKv+IxTdGNs8/TGFy0PTP6DHThvbbR24kT9ixcOd9W+EaBPWW+wPPKQmsHxajtWjmQwWfna8mZuSeJS48LIgAZlKkpFeVyxW0qMBujb8X8ETrWy550NaFtI6t9+u7hZeTfHwqNvacKhp1RbE6dBRGWynwMVX8XW8N1+UjFaq6GCJukT4qmpN2afb8sCjUigq0GuMwYXrFVee74bQgLHWGJwPmvmLHC69EH6kWr22ijx4OKXlSIx2xT1AsSHee70w5iDBiK4aph27yH3TxkXy9V89TDdexAcKk/cVHYNnDBapcavl7y0RiQ4biu8ymM8Ga/nmzhRKya6G0cGw8CAQOjgfwwgfkwHQYDVR0OBBYEFI0cxb6VTEM8YYY6FbBMvAPyT+CyMIHJBgNVHSMEgcEwgb6AFI0cxb6VTEM8YYY6FbBMvAPyT+CyoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJANWFuGx90071MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBABnTDPEF+3iSP0wNfdIjIz1AlnrPzgAIHVvXxunW7SBrDhEglQZBbKJEk5kT0mtKoOD1JMrSu1xuTKEBahWRbqHsXclaXjoBADb0kkjVEJu/Lh5hgYZnOjvlba8Ld7HCKePCVePoTJBdI4fvugnL8TsgK05aIskyY0hKI9L8KfqfGTl1lzOv2KoWD0KWwtAWPoGChZxmQ+nBli+gwYMzM1vAkP+aayLe0a1EQimlOalO762r0GXO0ks+UeXde2Z4e+8S/pf7pITEI/tP+MxJTALw9QUWEv9lKTk+jkbqxbsh8nfBUapfKqYn0eidpwq2AzVp3juYl7//fKnaPhJD9gs=
</item>
</string-array>
<string-array
name=
"com_google_android_gms_fonts_certs_prod"
>
<item>
MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEzMzRaFw0zNjAxMDcyMzEzMzRaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBAKtWLgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JORland2qSGT2y5b+3JKkedxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjAsb/GEuq/eFdpuzSqeYTcfi6idkyugwfYwXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/CxURaSxaBvGdGDhfXE28LWuT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJEqO4k//0zOHKrUiGYXtqw/A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Ylmn/Tgt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn/Tgt9r45jk14aloXikdjB0MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsTB0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC4IdGZEowjTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8/yzKkEu116FmH4rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCEyj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh5iZBqpknHf1SKMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifKZ0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3WfMBEmh/9iFBDAaTCK
</item>
</string-array>
</resources>
app/src/main/res/values/preloaded_fonts.xml
0 → 100644
View file @
1e8bac19
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array
name=
"preloaded_fonts"
translatable=
"false"
>
<item>
@font/roboto_bold
</item>
</array>
</resources>
app/src/main/res/values/strings.xml
View file @
1e8bac19
...
@@ -7,4 +7,13 @@
...
@@ -7,4 +7,13 @@
<item>
Lainnya
</item>
<item>
Lainnya
</item>
</string-array>
</string-array>
<!-- strings.xml -->
<string
name=
"burger_medi"
>
Burger \nMedium
</string>
<string
name=
"some_id"
>
$600.00
</string>
<string
name=
"cart"
>
Cart
</string>
<string
name=
"items"
>
3 items
</string>
<string
name=
"payment"
>
Payment
</string>
<string
name=
"cash"
>
Cash
</string>
<string
name=
"rp_500_000"
>
Rp. 500.000
</string>
<string
name=
"pay"
>
Pay
</string>
</resources>
</resources>
\ No newline at end of file
app/src/main/res/values/styles.xml
View file @
1e8bac19
<resources>
<resources>
<!-- Base application theme. -->
<!-- Base application theme. -->
<style
name=
"AppTheme"
parent=
"Theme.
AppCompat
.Light.DarkActionBar"
>
<style
name=
"AppTheme"
parent=
"Theme.
MaterialComponents
.Light.DarkActionBar"
>
<!-- Customize your theme here. -->
<!-- Customize your theme here. -->
<item
name=
"colorPrimary"
>
@color/colorPrimary
</item>
<item
name=
"colorPrimary"
>
@color/colorPrimary
</item>
<item
name=
"colorPrimaryDark"
>
@color/colorPrimaryDark
</item>
<item
name=
"colorPrimaryDark"
>
@color/colorPrimaryDark
</item>
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
</style>
</style>
<style
name=
"AppTheme
.NoActionBar
"
parent=
"Theme.MaterialComponents.Light.NoActionBar"
>
<style
name=
"AppTheme
2
"
parent=
"Theme.MaterialComponents.Light.NoActionBar"
>
<!-- Customize your theme here. -->
<!-- Customize your theme here. -->
<item
name=
"colorPrimary"
>
@color/colorPrimary
</item>
<item
name=
"colorPrimary"
>
@color/colorPrimary
</item>
<item
name=
"colorPrimaryDark"
>
@color/colorPrimaryDark
</item>
<item
name=
"colorPrimaryDark"
>
@color/colorPrimaryDark
</item>
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
</style>
</style>
<style
name=
"burger_medi"
>
<item
name=
"android:textSize"
>
18sp
</item>
<item
name=
"android:textColor"
>
#000000
</item>
</style>
<style
name=
"some_id"
>
<item
name=
"android:textSize"
>
16sp
</item>
<item
name=
"android:textColor"
>
#000000
</item>
</style>
<style
name=
"cart"
>
<item
name=
"android:textSize"
>
24sp
</item>
<item
name=
"android:textColor"
>
#91000000
</item>
</style>
<style
name=
"items"
>
<item
name=
"android:textSize"
>
18sp
</item>
<item
name=
"android:textColor"
>
#3D000000
</item>
</style>
<style
name=
"payment"
>
<item
name=
"android:textSize"
>
24sp
</item>
<item
name=
"android:textColor"
>
#8C000000
</item>
</style>
<style
name=
"cash"
>
<item
name=
"android:textSize"
>
20sp
</item>
<item
name=
"android:textColor"
>
#000000
</item>
</style>
<style
name=
"rp_500_000"
>
<item
name=
"android:textSize"
>
14sp
</item>
<item
name=
"android:textColor"
>
#80000000
</item>
</style>
<style
name=
"pay"
>
<item
name=
"android:textSize"
>
18sp
</item>
<item
name=
"android:textColor"
>
#FFFFFF
</item>
</style>
<style
name=
"hello_wahyu"
>
<item
name=
"android:textSize"
>
24sp
</item>
<item
name=
"android:textColor"
>
#FFFFFF
</item>
</style>
<style
name=
"AppTheme.RoundedCornerMaterialButton"
parent=
"Widget.AppCompat.Button.Colored"
>
<item
name=
"android:background"
>
@drawable/rounded_shape
</item>
</style>
</resources>
</resources>
\ No newline at end of file
build.gradle
View file @
1e8bac19
...
@@ -5,7 +5,7 @@ buildscript {
...
@@ -5,7 +5,7 @@ buildscript {
jcenter
()
jcenter
()
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:4.0.1'
classpath
"com.android.tools.build:gradle:4.0.1"
// NOTE: Do not place your application dependencies here; they belong
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// in the individual module build.gradle files
...
...
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