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
2ff2a6c1
Commit
2ff2a6c1
authored
Aug 24, 2020
by
Wahyu Wibowo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create layout cart, payment, move local abi to wahyu
parent
a6f0ca2c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
506 additions
and
113 deletions
+506
-113
misc.xml
.idea/misc.xml
+1
-1
build.gradle
app/build.gradle
+4
-0
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+13
-6
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_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
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
undraw_wallet_aym5.svg
app/src/main/res/drawable/undraw_wallet_aym5.svg
+0
-2
roboto_bold.xml
app/src/main/res/font/roboto_bold.xml
+7
-0
activity_main.xml
app/src/main/res/layout/activity_main.xml
+96
-4
activity_splash.xml
app/src/main/res/layout/activity_splash.xml
+28
-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
+63
-100
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
styles.xml
app/src/main/res/values/styles.xml
+16
-0
No files found.
.idea/misc.xml
View file @
2ff2a6c1
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
7
"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
8
"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
<component
name=
"ProjectType"
>
...
...
app/build.gradle
View file @
2ff2a6c1
...
...
@@ -23,6 +23,10 @@ android {
proguardFiles
getDefaultProguardFile
(
'proguard-android-optimize.txt'
),
'proguard-rules.pro'
}
}
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
}
dependencies
{
...
...
app/src/main/AndroidManifest.xml
View file @
2ff2a6c1
...
...
@@ -8,18 +8,25 @@
android:label=
"@string/app_name"
android:roundIcon=
"@mipmap/ic_launcher_round"
android:supportsRtl=
"true"
android:theme=
"@style/AppTheme"
>
<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"
>
<activity
android:name=
".activities.SplashActivity"
android:theme=
"@style/AppTheme2"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</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>
</manifest>
\ No newline at end of file
app/src/main/java/com/example/yourcashiertest/activities/SplashActivity.java
0 → 100644
View file @
2ff2a6c1
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 @
2ff2a6c1
<?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 @
2ff2a6c1
<?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 @
2ff2a6c1
<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_more_vert_24.xml
0 → 100644
View file @
2ff2a6c1
<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 @
2ff2a6c1
<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/rectangle_4.xml
0 → 100644
View file @
2ff2a6c1
<?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 @
2ff2a6c1
<?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 @
2ff2a6c1
<?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/drawable/undraw_wallet_aym5.svg
deleted
100644 → 0
View file @
a6f0ca2c
This diff is collapsed.
Click to expand it.
app/src/main/res/font/roboto_bold.xml
0 → 100644
View file @
2ff2a6c1
<?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_main.xml
View file @
2ff2a6c1
...
...
@@ -6,13 +6,105 @@
android:layout_height=
"match_parent"
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
android:id=
"@+id/textView"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
Hello World!
"
a
pp:layout_constraintBottom_toBottomOf=
"parent
"
app:layout_constraint
Left_toLeftOf=
"parent
"
app:layout_constraint
Right_toRightOf=
"parent
"
android:text=
"
3
"
a
ndroid:textColor=
"#EA0909
"
app:layout_constraint
Bottom_toBottomOf=
"@+id/imageView3
"
app:layout_constraint
End_toEndOf=
"@+id/imageView3
"
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>
\ No newline at end of file
app/src/main/res/layout/activity_splash.xml
0 → 100644
View file @
2ff2a6c1
<?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/item_list.xml
0 → 100644
View file @
2ff2a6c1
<?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 @
2ff2a6c1
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
<com.google.android.material.card.MaterialCardView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
>
<com.google.android.material.card.MaterialCardView
xmlns:tools=
"http://schemas.android.com/tools"
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_height=
"wrap_content"
android:layout_margin=
"@dimen/space_small"
android:padding=
"@dimen/space_small"
app:cardCornerRadius=
"@dimen/space_small"
tools:ignore=
"MissingConstraints"
>
android:layout_height=
"wrap_content"
>
<RelativeLayout
<ImageView
android:id=
"@+id/ivProduct"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<ImageView
android:id=
"@+id/ivProduct"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:adjustViewBounds=
"true"
tools:src=
"@tools:sample/avatars"
/>
<ImageView
android:id=
"@+id/ivUpdate"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"@dimen/space_small"
android:src=
"@drawable/ic_update"
/>
<ImageView
android:id=
"@+id/ivDelete"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"@dimen/space_small"
android:layout_alignParentEnd=
"true"
android:src=
"@drawable/ic_delete"
/>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/tvQuantity"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_above=
"@id/tvProduct"
android:layout_alignParentEnd=
"true"
android:layout_marginEnd=
"1dp"
android:layout_marginBottom=
"0dp"
android:background=
"@drawable/bg_quantity"
android:fontFamily=
"monospace"
android:padding=
"@dimen/space_small"
android:text=
"@{product.quantity + ``}"
android:textColor=
"@android:color/white"
android:textSize=
"@dimen/text_default"
android:textStyle=
"bold"
tools:text=
"10"
/>
android:layout_height=
"wrap_content"
android:adjustViewBounds=
"true"
tools:src=
"@tools:sample/avatars"
/>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/tvProduct"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/ivProduct"
android:fontFamily=
"@font/roboto_medium"
android:gravity=
"center"
android:padding=
"@dimen/space_small"
android:text=
"@{product.name}"
android:textAllCaps=
"true"
android:textColor=
"@color/colorPrimaryDark"
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=
"@font/roboto_medium"
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=
"@font/roboto_medium"
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.textview.MaterialTextView
android:id=
"@+id/tvProduct"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/ivProduct"
android:fontFamily=
"roboto"
android:gravity=
"start"
android:padding=
"@dimen/space_small"
android:text=
"Burger Medium"
android:textSize=
"@dimen/text_default"
android:textStyle=
"bold"
/>
<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.textview.MaterialTextView
android:id=
"@+id/tvDescription"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tvProduct"
android:fontFamily=
"@font/roboto_bold"
android:padding=
"@dimen/space_small"
android:text=
"text"
android:textSize=
"@dimen/text_small"
tools:text=
"test"
/>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/tvPrice"
android:layout_width=
"wrap_content"
android:layout_height=
"23dp"
android:layout_below=
"@id/tvDescription"
android:layout_marginLeft=
"19dp"
android:layout_marginTop=
"23dp"
android:gravity=
"top"
android:text=
"@string/some_id"
android:textAppearance=
"@style/some_id"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<com.google.android.material.button.MaterialButton
android:id=
"@+id/btnAddToCart"
style=
"@style/AppTheme.RoundedCornerMaterialButton"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tvDescription"
android:layout_marginStart=
"217dp"
android:layout_marginTop=
"10dp"
android:layout_marginEnd=
"10dp"
android:layout_marginBottom=
"10dp"
android:layout_toEndOf=
"@id/tvPrice"
app:icon=
"@drawable/ic_baseline_add_24"
/>
</RelativeLayout>
</com.google.android.material.card.MaterialCardView>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
2ff2a6c1
...
...
@@ -9,4 +9,6 @@
<color
name=
"colorText"
>
#eeeeee
</color>
<color
name=
"colorBackground"
>
#dddddd
</color>
<color
name=
"colorDanger"
>
#cf1b1b
</color>
<color
name=
"color_white"
>
#fff
</color>
<color
name=
"color_grey"
>
#fff
</color>
</resources>
\ No newline at end of file
app/src/main/res/values/font_certs.xml
0 → 100644
View file @
2ff2a6c1
<?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+u7hZeTfHwqNvacKhp1Rb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6euNXEsQH8gjwyxCUKRJNexBiGcCEyj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh5iZBqpknHf1SKMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifKZ0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3WfMBEmh/9iFBDAaTCK
</item>
</string-array>
</resources>
app/src/main/res/values/preloaded_fonts.xml
0 → 100644
View file @
2ff2a6c1
<?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/styles.xml
View file @
2ff2a6c1
...
...
@@ -110,4 +110,20 @@
</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>
\ No newline at end of file
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