Skip to content

Commit

Permalink
personalize
Browse files Browse the repository at this point in the history
  • Loading branch information
gayatri-p committed Nov 25, 2019
1 parent f820cd0 commit d97a4c1
Show file tree
Hide file tree
Showing 15 changed files with 382 additions and 47 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/example/remembrall/Note.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public String getnContent() {
}

public String getDateTimeFormatted(Context context) {
SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyyy hh:mm a",
SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyyy",
context.getResources().getConfiguration().locale);
sdf.setTimeZone(TimeZone.getDefault());
return sdf.format(new Date(nDateTime));
Expand Down
Binary file added app/src/main/res/drawable/batman.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions app/src/main/res/font/gold.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<font
app:fontStyle= "normal"
app:fontWeight="400"
app:font="@font/gold_under_mud"
/>
</font-family>
Binary file added app/src/main/res/font/gold_under_mud.otf
Binary file not shown.
67 changes: 35 additions & 32 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,51 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="#191919">

<TextView
android:id="@+id/aboutBody"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:fontFamily="@font/space_mono_regular"
android:text="Gayatri P"
android:textSize="27sp"
android:fontFamily="@font/gold_under_mud"
android:text="I'm Batman"
android:textAlignment="center"
android:textColor="#FFFFFF"
android:textSize="60sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.42" />
app:layout_constraintVertical_bias="0.321" />

<TextView
android:id="@+id/aboutHead"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/space_mono_italic"
android:text="Made By"
android:textSize="22sp"
<ImageView
android:id="@+id/imageView"
android:layout_width="186dp"
android:layout_height="122dp"
android:layout_marginTop="15dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.354" />
app:layout_constraintVertical_bias="0.519"
app:srcCompat="@drawable/batman" />

<TextView
android:id="@+id/aboutFooter"
android:layout_width="367dp"
android:layout_height="135dp"
android:fontFamily="@font/space_mono_regular"
android:text="L.K. Singhania Education Centre, Gotan"
android:textAlignment="center"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/aboutBody"
app:layout_constraintVertical_bias="0.07999998"
app:lineHeight="22sp" />
<!-- <TextView
android:id="@+id/aboutFooter"
android:layout_width="367dp"
android:layout_height="135dp"
android:fontFamily="@font/space_mono_regular"
android:text="L.K. Singhania Education Centre, Gotan"
android:textAlignment="center"
android:textColor="#FFFFFF"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/aboutBody"
app:layout_constraintVertical_bias="0.07999998"
app:lineHeight="22sp" />-->

</androidx.constraintlayout.widget.ConstraintLayout>
10 changes: 6 additions & 4 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
android:id="@+id/mainListviewNotes"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="14dp"
tools:layout_editor_absoluteY="58dp"
android:background="#191919"
android:fontFamily="@font/circular_std"
/>
android:divider="#333333"
android:dividerHeight="3px"
tools:layout_editor_absoluteX="14dp"
tools:layout_editor_absoluteY="58dp" />

<TextView
android:id="@+id/empty_text"
Expand All @@ -23,7 +25,7 @@
android:paddingTop="20sp"
android:text="Click + icon to add notes"
android:textAlignment="center"
android:textColor="#66000000"
android:textColor="#bbbbbb"
android:textSize="18sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
Expand Down
19 changes: 13 additions & 6 deletions app/src/main/res/layout/activity_note.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#191919"
tools:context=".NoteActivity">

<EditText
android:id="@+id/noteEtTitle"
android:layout_width="350dp"
android:layout_height="65dp"
android:layout_marginStart="80dp"
android:layout_marginTop="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="80dp"
android:layout_marginBottom="12dp"
android:layout_marginBottom="6dp"
android:ems="10"
android:fontFamily="@font/circular_std_book"
android:hint="Title..."
android:inputType="textCapSentences"
android:singleLine="true"
android:textColor="#FFFFFF"
android:textColorHint="#bbbbbb"
android:textSize="21sp"
app:backgroundTint="#ffffff"
app:layout_constraintBottom_toTopOf="@+id/noteEtContent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.49"
Expand All @@ -30,17 +34,20 @@
android:id="@+id/noteEtContent"
android:layout_width="343dp"
android:layout_height="0dp"
android:fontFamily="@font/circular_std_book"
android:layout_marginStart="16dp"
android:layout_marginTop="70dp"
android:layout_marginTop="52dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
android:layout_marginBottom="6dp"
android:ems="10"
android:fontFamily="@font/circular_std_book"
android:gravity="top"
android:hint="Content..."
android:inputType="textCapSentences|textMultiLine"
android:singleLine="false"
android:textColor="#FFFFFF"
android:textColorHint="#bbbbbb"
android:textSize="20sp"
android:hint="Content..."
app:backgroundTint="#ffffff"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.444"
Expand Down
11 changes: 7 additions & 4 deletions app/src/main/res/layout/item_note.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,26 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#191919"
android:orientation="vertical"
android:paddingLeft="10dp"
android:paddingTop="5dp"
android:paddingBottom="5dp">
android:paddingTop="8dp"
android:paddingBottom="8dp">

<TextView
android:id="@+id/list_note_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="title"
android:textAppearance="?android:attr/textAppearanceLarge" />
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#FFFFFF" />

<TextView
android:id="@+id/list_note_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="13/12/2003"
android:textAppearance="?android:attr/textAppearanceSmall" />
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="#FFFFFF" />

</LinearLayout>
27 changes: 27 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
maven {url 'https://jitpack.io'}
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
20 changes: 20 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Thu Oct 03 19:12:34 IST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
Loading

0 comments on commit d97a4c1

Please sign in to comment.