Commit 5f5f24a5 authored by mahendri.md's avatar mahendri.md

change style of drawer, login, toolbar

parent b72ec4d6
......@@ -294,6 +294,7 @@ public class FormEntryActivity extends SlidingActivity implements AnimationListe
totalsError = (TextView) findViewById(R.id.total_error);
SlidingMenu sm = getSlidingMenu();
sm.setSlidingEnabled(false);
sm.setShadowWidthRes(R.dimen.shadow_width);
sm.setFadeDegree(0.35f);
sm.setMode(SlidingMenu.LEFT_RIGHT);
......
......@@ -86,9 +86,8 @@ public class SplashScreenActivity extends AppCompatActivity {
preferences = GeneralSharedPreferences.getInstance();
// update versi jika dilakukan update
if ((Long) preferences.get(PreferenceKeys.KEY_LAST_VERSION)
< BuildConfig.VERSION_CODE) {
preferences.save(PreferenceKeys.KEY_LAST_VERSION, BuildConfig.VERSION_CODE);
if ((long) preferences.get(PreferenceKeys.KEY_LAST_VERSION) < BuildConfig.VERSION_CODE) {
preferences.save(PreferenceKeys.KEY_LAST_VERSION, (long) BuildConfig.VERSION_CODE);
}
startSplashScreen();
......
......@@ -188,6 +188,7 @@ public class CapiMainActivity extends AppCompatActivity implements DiskSyncListe
.addProfiles(new ProfileDrawerItem()
.withName(username)
.withEmail(userGroup)
.withIcon(getResources().getDrawable(R.drawable.capi_profile_default))
.withTextColor(Color.WHITE))
.withSavedInstance(savedInstanceState)
.build();
......
......@@ -25,23 +25,31 @@
android:layout_marginTop="16dp"
android:src="@drawable/capi_logo"
android:layout_centerInParent="true" />
<!-- view to delete border color in bottom of parent -->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/white"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="3"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:background="@color/white">
<android.support.design.widget.TextInputLayout
android:id="@+id/container_username"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true">
<android.support.design.widget.TextInputEditText
android:id="@+id/username"
android:layout_width="350dp"
android:layout_width="match_parent"
android:layout_height="50dp"
android:drawableLeft="@drawable/ic_person"
android:drawableStart="@drawable/ic_person"
......@@ -53,14 +61,14 @@
<android.support.design.widget.TextInputLayout
android:id="@+id/container_password"
android:layout_below="@id/container_username"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
app:passwordToggleEnabled="true">
<android.support.design.widget.TextInputEditText
android:id="@+id/password"
android:layout_width="350dp"
android:layout_width="match_parent"
android:layout_height="50dp"
android:drawableLeft="@drawable/ic_key"
android:drawableStart="@drawable/ic_key"
......@@ -73,7 +81,7 @@
<Button
android:id="@+id/btn_login"
android:layout_below="@id/container_password"
android:layout_width="350dp"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/activity_vertical_margin"
......@@ -86,7 +94,7 @@
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_margin="20dp"
android:layout_marginBottom="@dimen/activity_vertical_margin"
android:text="Atur server CAPI STIS"
android:drawableLeft="@drawable/ic_setting"
android:drawablePadding="5dp"/>
......
......@@ -7,8 +7,5 @@
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
app:contentInsetEnd="0dp"
app:contentInsetStart="0dp"
app:contentInsetStartWithNavigation="0dp"
app:navigationIcon="@drawable/notes"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>
\ No newline at end of file
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:title="@string/found_in_settings"/>
\ No newline at end of file
Markdown is supported
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