Added a bio!
This commit is contained in:
BIN
app/src/main/res/font/roboto.ttf
Normal file
BIN
app/src/main/res/font/roboto.ttf
Normal file
Binary file not shown.
@@ -1,15 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="@dimen/padding"
|
||||
android:paddingEnd="@dimen/padding">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:id="@+id/name_text"
|
||||
style="@style/NameStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="Hello World" />
|
||||
android:text="@string/andrew_kemp"
|
||||
android:textAlignment="center" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/star_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/layout_margin"
|
||||
android:contentDescription="@string/yellow_star"
|
||||
app:srcCompat="@android:drawable/btn_star_big_on" />
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/bio_scroll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/bio_text"
|
||||
style="@style/NameStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:lineSpacingMultiplier="1.2"
|
||||
android:text="@string/bio" />
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
||||
7
app/src/main/res/values/dimens.xml
Normal file
7
app/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="text_size">20sp</dimen>
|
||||
<dimen name="small_padding">8dp</dimen>
|
||||
<dimen name="layout_margin">16dp</dimen>
|
||||
<dimen name="padding">16dp</dimen>
|
||||
</resources>
|
||||
@@ -1,3 +1,13 @@
|
||||
<resources>
|
||||
<string name="app_name">About Me</string>
|
||||
<string name="andrew_kemp">Andrew Kemp</string>
|
||||
<string name="yellow_star">Yellow Star</string>
|
||||
<string name="bio">
|
||||
Hi, my name is Andrew!
|
||||
\n\nI\'m a...
|
||||
\n\n\u2022 Beach bum from hawaii…
|
||||
\n\u2022 Grilled Cheese connoisseur, and beer aficionado
|
||||
\n\u2022 Avid video gamer, and world traveler
|
||||
\n\u2022 purveyor of marine life, and avid scuba diver
|
||||
</string>
|
||||
</resources>
|
||||
|
||||
@@ -8,4 +8,12 @@
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<style name="NameStyle">
|
||||
<item name="android:layout_marginTop">@dimen/layout_margin</item>
|
||||
<item name="android:fontFamily">@font/roboto</item>
|
||||
<item name="android:paddingTop">@dimen/small_padding</item>
|
||||
<item name="android:textColor">@android:color/black</item>
|
||||
<item name="android:textSize">@dimen/text_size</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user