Last active
November 13, 2017 18:42
-
-
Save Tashachan/8060bca4ec0ea657b5b2cd4552e5984b to your computer and use it in GitHub Desktop.
Class5 your first project modified dimens and string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:background="@color/colorBack" | |
tools:context="com.example.android.helloandroid.MainActivity" | |
tools:ignore="ExtraText" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" > | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="0sp" | |
android:layout_weight="1" /> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="0sp" | |
android:layout_weight="3" | |
android:scaleType="centerCrop" | |
android:src="@drawable/keep" /> | |
<!-- Title at 20dp as suggested in MaterialDesign --> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="@dimen/margentop" | |
android:fontFamily="sans-serif-condensed" | |
android:paddingStart="@dimen/padleft" | |
android:text="@string/udacity" | |
android:textColor="@color/colorStext" | |
android:textSize="@dimen/title" | |
android:textStyle="bold" /> | |
<!-- Body at 14dp --> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8sp" | |
android:fontFamily="sans-serif-condensed" | |
android:paddingStart="@dimen/padleft" | |
android:text="@string/adresse" | |
android:textColor="@color/colorText" | |
android:textSize="@dimen/body" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8sp" | |
android:fontFamily="sans-serif-condensed" | |
android:paddingStart="@dimen/padleft" | |
android:text="@string/tlf" | |
android:textColor="@color/colorText" | |
android:textSize="@dimen/body" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8sp" | |
android:layout_weight="1" | |
android:fontFamily="sans-serif-condensed" | |
android:paddingStart="@dimen/padleft" | |
android:text="@string/web" | |
android:textColor="@color/colorLink" | |
android:textSize="@dimen/body" | |
android:textStyle="bold"/> | |
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="colorBack">#2b2b2b</color> | |
<color name="colorText">#cfb17c</color> | |
<color name="colorStext">#f0eabd</color> | |
<color name="colorLink">#415f78</color> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<dimen name="title">20sp</dimen> | |
<dimen name="body">14sp</dimen> | |
<dimen name="extra">16sp</dimen> | |
<dimen name="margentop">16sp</dimen> | |
<dimen name="padleft">16sp</dimen> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<string name="app_name">HelloAndroid</string> | |
<string name="udacity">Udacity</string> | |
<string name="adresse">2465 Latham St, Mountain View, CA 94043</string> | |
<string name="tlf">650-555-5555</string> | |
<string name="web">www.udacity.com</string> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment