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
8bad75f0
Commit
8bad75f0
authored
Aug 27, 2020
by
Alfansyah Fadlian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
history layout
parent
e3c02909
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
152 additions
and
2 deletions
+152
-2
Project.xml
.idea/codeStyles/Project.xml
+24
-0
misc.xml
.idea/misc.xml
+1
-1
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+2
-1
HistoryActivity.java
app/src/main/java/com/yono/messeripos/HistoryActivity.java
+14
-0
activity_history.xml
app/src/main/res/layout/activity_history.xml
+38
-0
item_history.xml
app/src/main/res/layout/item_history.xml
+71
-0
strings.xml
app/src/main/res/values/strings.xml
+2
-0
No files found.
.idea/codeStyles/Project.xml
View file @
8bad75f0
<component
name=
"ProjectCodeStyleConfiguration"
>
<code_scheme
name=
"Project"
version=
"173"
>
<DBN-PSQL>
<case-options
enabled=
"true"
>
<option
name=
"KEYWORD_CASE"
value=
"lower"
/>
<option
name=
"FUNCTION_CASE"
value=
"lower"
/>
<option
name=
"PARAMETER_CASE"
value=
"lower"
/>
<option
name=
"DATATYPE_CASE"
value=
"lower"
/>
<option
name=
"OBJECT_CASE"
value=
"preserve"
/>
</case-options>
<formatting-settings
enabled=
"false"
/>
</DBN-PSQL>
<DBN-SQL>
<case-options
enabled=
"true"
>
<option
name=
"KEYWORD_CASE"
value=
"lower"
/>
<option
name=
"FUNCTION_CASE"
value=
"lower"
/>
<option
name=
"PARAMETER_CASE"
value=
"lower"
/>
<option
name=
"DATATYPE_CASE"
value=
"lower"
/>
<option
name=
"OBJECT_CASE"
value=
"preserve"
/>
</case-options>
<formatting-settings
enabled=
"false"
>
<option
name=
"STATEMENT_SPACING"
value=
"one_line"
/>
<option
name=
"CLAUSE_CHOP_DOWN"
value=
"chop_down_if_statement_long"
/>
<option
name=
"ITERATION_ELEMENTS_WRAPPING"
value=
"chop_down_if_not_single"
/>
</formatting-settings>
</DBN-SQL>
<DBN-PSQL>
<case-options
enabled=
"true"
>
<option
name=
"KEYWORD_CASE"
value=
"lower"
/>
...
...
.idea/misc.xml
View file @
8bad75f0
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_8"
project-jdk-name=
"
1.8
"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_8"
project-jdk-name=
"
JDK
"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
<component
name=
"ProjectType"
>
...
...
app/src/main/AndroidManifest.xml
View file @
8bad75f0
...
...
@@ -17,7 +17,8 @@
android:roundIcon=
"@mipmap/ic_launcher_new_icon"
android:supportsRtl=
"true"
android:theme=
"@style/AppTheme.appbar"
>
<activity
android:name=
".InvoiceActivity"
></activity>
<activity
android:name=
".HistoryActivity"
></activity>
<activity
android:name=
".InvoiceActivity"
/>
<activity
android:name=
".LoginActivity"
android:theme=
"@style/AppTheme.appbar"
/>
...
...
app/src/main/java/com/yono/messeripos/HistoryActivity.java
0 → 100644
View file @
8bad75f0
package
com
.
yono
.
messeripos
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.os.Bundle
;
public
class
HistoryActivity
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_history
);
}
}
\ No newline at end of file
app/src/main/res/layout/activity_history.xml
0 → 100644
View file @
8bad75f0
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
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=
".HistoryActivity"
>
<include
android:id=
"@+id/cAppBar"
layout=
"@layout/app_bar"
/>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"600dp"
android:layout_below=
"@+id/cAppBar"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rvHistory"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/cAppBar"
tools:listitem=
"@layout/item_history"
/>
</ScrollView>
<com.google.android.material.button.MaterialButton
android:id=
"@+id/btShow"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/title_next"
android:padding=
"15dp"
android:textSize=
"16sp"
android:layout_alignParentBottom=
"true"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
/>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/layout/item_history.xml
0 → 100644
View file @
8bad75f0
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
>
<data>
<variable
name=
"carts"
type=
"com.yono.messeripos.models.PaymentsModels"
/>
</data>
<com.google.android.material.card.MaterialCardView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
tools:ignore=
"MissingConstraints"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_margin=
"12dp"
>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/tvPay"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:fontFamily=
"@font/roboto"
android:textSize=
"24sp"
app:layout_constraintStart_toStartOf=
"parent"
tools:text=
"@string/hint_pay"
android:text=
"@{}"
app:layout_constraintTop_toTopOf=
"parent"
/>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/tvDate"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:fontFamily=
"@font/roboto"
android:textSize=
"16sp"
tools:text=
"@tools:sample/date/ddmmyy"
android:text=
"@{}"
app:layout_constraintStart_toStartOf=
"@id/tvPay"
app:layout_constraintTop_toBottomOf=
"@+id/tvPay"
/>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/tvOrder"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:fontFamily=
"@font/roboto"
android:textSize=
"16sp"
android:text=
"@{}"
tools:text=
"#6821739123"
app:layout_constraintStart_toStartOf=
"@id/tvDate"
app:layout_constraintTop_toBottomOf=
"@+id/tvDate"
/>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/tvHistory"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"84dp"
android:backgroundTint=
"#000"
android:text=
"@{}"
tools:text=
"@tools:sample/first_names"
android:textColor=
"#fff"
android:background=
"#C60000"
app:layout_constraintEnd_toEndOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
</layout>
\ No newline at end of file
app/src/main/res/values/strings.xml
View file @
8bad75f0
...
...
@@ -24,6 +24,8 @@
<string
name=
"add"
>
Add
</string>
<string
name=
"hint_billing"
>
Billing
</string>
<string
name=
"title_success"
>
Success
</string>
<string
name=
"hint_pay"
>
cash
</string>
<string
name=
"title_next"
>
next
</string>
<string-array
name=
"planets_array"
>
<item>
Mercury
</item>
...
...
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