Skip to content

Commit

Permalink
Add ImageView and ScrollView
Browse files Browse the repository at this point in the history
  • Loading branch information
nka-coder committed May 6, 2021
1 parent 0e97a4a commit bd619ca
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .idea/render.experimental.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 35 additions & 6 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
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/name"
android:textAlignment="center"
style="@style/NameStyle" />
</androidx.appcompat.widget.LinearLayoutCompat>
android:textAlignment="center" />

<ImageView
android:id="@+id/star_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
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>
1 change: 1 addition & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
<dimen name="text_size">20sp</dimen>
<dimen name="small_padding">8dp</dimen>
<dimen name="layout_margin">16dp</dimen>
<dimen name="padding">16dp</dimen>
</resources>
16 changes: 16 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
<resources>
<string name="app_name">AboutMe</string>
<string name="name">Adamou Nchange Kouotou</string>
<string name="yellow_star">Yellow star</string>

<string name="bio">
Le lorem ipsum est, en imprimerie, une suite de mots sans
signification utilisée à titre provisoire pour calibrer une mise en page.

\n\n Le texte définitif venant remplacer le faux-texte dès qu\'il
est prêt ou que la mise en page est achevée. Généralement,
on utilise un texte en faux latin, le Lorem ipsum ou Lipsum.

\n\n Le lorem ipsum est, en imprimerie, une suite de mots sans signification
utilisée à titre provisoire pour calibrer une mise en page, le
texte définitif venant remplacer le faux-texte dès qu\'il est prêt.
\n\n Ou que la mise en page est achevée. Généralement, on utilise
un texte en faux latin, le Lorem ipsum ou Lipsum.\n\n
</string>
</resources>

0 comments on commit bd619ca

Please sign in to comment.