Added a bio!

This commit is contained in:
2020-03-05 20:53:38 -05:00
parent df5d051ab0
commit 698d7cd2ce
5 changed files with 57 additions and 7 deletions

Binary file not shown.

View File

@@ -1,15 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<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:orientation="vertical"
android:paddingStart="@dimen/padding"
android:paddingEnd="@dimen/padding">
<TextView
android:id="@+id/name_text"
style="@style/NameStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
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/textView"
android:id="@+id/bio_text"
style="@style/NameStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="Hello World" />
android:lineSpacingMultiplier="1.2"
android:text="@string/bio" />
</ScrollView>
</LinearLayout>

View 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>

View File

@@ -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>

View File

@@ -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>