Skip to content

Commit

Permalink
About Page
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanWidjanarko committed Dec 2, 2021
1 parent 1ab402d commit 39a369c
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Trolleapp">
<activity
android:name=".ui.side_menu.AboutActivity"
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar" />
<activity
android:name=".ui.side_menu.EditProfileActivity"
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.trolle.trolleapp.ui.side_menu

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.trolle.trolleapp.R

class AboutActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_about)
}
}
Binary file added app/src/main/res/drawable/website.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/youtube.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?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="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:orientation="vertical"
android:background="@color/bgc"
tools:context=".ui.home.HomeActivity">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:background="@color/bgc">

<TextView
android:id="@+id/text_view_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/about"
android:textSize="36sp"
android:textStyle="bold"
android:textColor="@color/purple"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>

<TextView
android:id="@+id/text_view_about"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/about_text"
android:textSize="14sp"
android:padding="30dp"
android:justificationMode="inter_word"
android:textColor="@color/purple"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="75dp"
android:gravity="center"
android:orientation="horizontal">

<ImageView
android:id="@+id/image_view_youtube"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_margin="25dp"
android:src="@drawable/youtube"
android:contentDescription="@string/website" />

<ImageView
android:id="@+id/image_view_website"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_margin="25dp"
android:src="@drawable/website"
android:contentDescription="@string/youtube" />

</LinearLayout>

</LinearLayout>

<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_alignParentBottom="true"
android:background="@drawable/rounded_bottom_bar"
app:menu="@menu/bottom_bar"
/>

</RelativeLayout>
7 changes: 7 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,11 @@
<string name="new_password">New Password</string>
<string name="save">Save</string>
<string name="profile_picture">Profile Picture</string>
<string name="about_text">
\t\t\t\t\tThis application aims to connect buyers with trolley that are already equipped with the Troll-E system. Later, the buyers will be connected to their digital wallet account and can pay for their purchases through this application. In addition, the history of previous purchases can also be accessed in the profile section.<br/>
\t\t\t\t\tTroll-E itself is a system that aims to create an easy and automated shopping system. Thus, the convenience of shoppers in shopping can be increased, because they do not have to queue anymore when they want to complete the development process.<br/>
\t\t\t\t\tThis system and application was created by a team that consist of 5 members as follow.
</string>
<string name="website">Website</string>
<string name="youtube">YouTube</string>
</resources>

0 comments on commit 39a369c

Please sign in to comment.