Skip to content

Instantly share code, notes, and snippets.

@brunoazevedomendonca
Last active September 27, 2017 13:00
Show Gist options
  • Save brunoazevedomendonca/721cbf95e8a2e55f55d4f64f3cb61db1 to your computer and use it in GitHub Desktop.
Save brunoazevedomendonca/721cbf95e8a2e55f55d4f64f3cb61db1 to your computer and use it in GitHub Desktop.
Movies Road
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/oxford_blue">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="beforeDescendants"
android:focusableInTouchMode="true"
android:orientation="vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="55dp"
android:contentDescription="@null"
android:src="@drawable/logo" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="25dp"
android:fontFamily="sans-serif-light"
android:text="@string/series_movies_and_news"
android:textAllCaps="true"
android:textColor="@color/blue_chalk"
android:textSize="18sp" />
<android.support.design.widget.TextInputLayout
android:id="@+id/text_input_layout_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="41dp"
android:textColorHint="@color/white">
<android.support.design.widget.TextInputEditText
android:id="@+id/edit_text_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:hint="@string/username"
android:maxLines="1"
android:lines="1"
android:textColor="@color/white"
android:textSize="16sp"
android:imeOptions="actionNext" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/text_input_layout_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:textColorHint="@color/white">
<android.support.design.widget.TextInputEditText
android:id="@+id/edit_text_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/password"
android:inputType="textPassword"
android:maxLines="1"
android:lines="1"
android:textColor="@color/white"
android:textSize="16sp" />
</android.support.design.widget.TextInputLayout>
<Button
android:id="@+id/button_login"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginBottom="33dp"
android:layout_marginLeft="29dp"
android:layout_marginRight="29dp"
android:layout_marginTop="48dp"
android:background="@drawable/havelock_blue_rounded_corners"
android:fontFamily="sans-serif-bold"
android:text="@string/sign_in"
android:textAllCaps="false"
android:textColor="@color/white"
android:textSize="17sp" />
</LinearLayout>
</ScrollView>
</RelativeLayout>
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
testCompile 'junit:junit:4.12'
}
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">@color/havelock_blue</color>
<color name="colorPrimaryDark">@color/steel_blue</color>
<color name="colorAccent">@color/white</color>
<color name="white">#FFFFFF</color>
<color name="blue_chalk">#ECD7FF</color>
<color name="havelock_blue">#4A90E2</color>
<color name="steel_blue">#3b73b4</color>
<color name="saphire">#303F9F</color>
<color name="cloud_burst">#213449</color>
<color name="oxford_blue">#32404f</color>
<color name="oxford_blue_dark">#2c3946</color>
<color name="alpha_black_50">#80000000</color>
<color name="alpha_white_12">#1effffff</color>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="4dp" />
<solid android:color="@color/havelock_blue" />
</shape>
<resources>
<string name="app_name">@string/movies_road</string>
<string name="series_movies_and_news">Séries, filmes e novidades</string>
<string name="username">Nome de usuário</string>
<string name="password">Senha</string>
<string name="sign_in">Entrar</string>
<string name="invalid_username">Usuário inválido</string>
<string name="invalid_password">Senha inválida</string>
<string name="movies_road">Movies Road</string>
<string name="sinopse">Sinopse</string>
</resources>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="colorControlActivated">@color/colorAccent</item>
<item name="colorControlHighlight">@color/colorAccent</item>
</style>
<style name="AppThemeNoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/oxford_blue</item>
<item name="colorPrimaryDark">@color/oxford_blue_dark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="colorControlNormal">@color/alpha_white_12</item>
<item name="colorControlActivated">@color/colorAccent</item>
<item name="colorControlHighlight">@color/colorAccent</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment