Skip to content
Snippets Groups Projects
Commit a568b7fb authored by Ilham Firdausi Putra's avatar Ilham Firdausi Putra
Browse files

add auth layout

parent 97dc2138
Branches
No related merge requests found
......@@ -48,7 +48,8 @@ public class MainActivity extends AppCompatActivity
if (drawer.isDrawerOpen(GravityCompat.START)) {
drawer.closeDrawer(GravityCompat.START);
} else {
super.onBackPressed();
// super.onBackPressed();
this.moveTaskToBack(true);
}
}
......
android/app/src/main/res/drawable-v24/logo.png

173 KiB

......@@ -15,7 +15,7 @@
android:layout_marginRight="48dp"
android:orientation="vertical">
<!-- Etsi logo and title -->
<!-- Logo and title -->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......@@ -24,9 +24,9 @@
android:orientation="horizontal">
<ImageView
android:layout_width="200dp"
android:layout_width="300dp"
android:layout_height="100dp"
android:src="@drawable/logo_dark" />
android:src="@drawable/logo" />
</LinearLayout>
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
<color name="colorPrimary">#8793c8</color>
<color name="colorPrimaryDark">#233a63</color>
<color name="colorRed">#ff3a63</color>
<color name="colorAccent">#4bd79b</color>
<color name="black_overlay">#66000000</color>
<color name="white">#FFFFFF</color>
</resources>
......@@ -2,7 +2,10 @@
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="nav_header_vertical_spacing">8dp</dimen>
<dimen name="nav_header_height">176dp</dimen>
<dimen name="image_dashboard_height">200dp</dimen>
<dimen name="image_avatar_size">48dp</dimen>
<dimen name="name_text_size">16sp</dimen>
<dimen name="dashboard_spacing">2dp</dimen>
<dimen name="card_margin">16dp</dimen>
<dimen name="fab_margin">16dp</dimen>
</resources>
\ No newline at end of file
......@@ -6,4 +6,14 @@
<string name="nav_header_subtitle">android.studio@android.com</string>
<string name="nav_header_desc">Navigation header</string>
<string name="action_settings">Settings</string>
<!--Auth Strings-->
<string name="name">Nama</string>
<string name="email">Email</string>
<string name="password">Password</string>
<string name="confirm">Konfirmasi Password</string>
<string name="login">Masuk</string>
<string name="register">Daftar</string>
<string name="register_word">Belum punya akun?</string>
</resources>
......@@ -17,4 +17,40 @@
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<style name="auth_form_card">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_margin">4dp</item>
<item name="android:padding">8dp</item>
</style>
<style name="auth_form_input">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:padding">8dp</item>
<item name="android:textColor">@android:color/black</item>
<item name="android:textColorHint">@color/black_overlay</item>
<item name="android:textSize">@dimen/small_text</item>
</style>
<style name="auth_button">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center_horizontal</item>
<item name="android:layout_marginTop">16dp</item>
<item name="android:padding">4dp</item>
</style>
<style name="normal_button" parent="Widget.AppCompat.Button.Colored">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center_horizontal</item>
<item name="android:layout_marginTop">16dp</item>
<item name="android:padding">4dp</item>
<item name="colorButtonNormal">@color/colorPrimary</item>
<item name="android:textColor">@color/white</item>
</style>
<dimen name="small_text">16sp</dimen>
</resources>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment