mirror of
https://github.com/Skysamara/android-kotlin-fundamentals-apps.git
synced 2025-12-06 06:16:03 +00:00
88 lines
3.1 KiB
XML
88 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Copyright (C) 2018 Google Inc.
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License.
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:paddingStart="@dimen/layout_padding"
|
|
android:paddingEnd="@dimen/layout_padding"
|
|
tools:context=".MainActivity">
|
|
|
|
<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" />
|
|
|
|
<EditText
|
|
android:id="@+id/nickname_edit"
|
|
style="@style/NameStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ems="10"
|
|
android:hint="@string/what_is_your_nickname"
|
|
android:inputType="textPersonName"
|
|
android:textAlignment="center" />
|
|
|
|
<Button
|
|
android:id="@+id/done_button"
|
|
style="@style/Widget.AppCompat.Button.Colored"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="@dimen/layout_margin"
|
|
android:fontFamily="@font/roboto"
|
|
android:text="@string/done" />
|
|
|
|
<TextView
|
|
android:id="@+id/nickname_text"
|
|
style="@style/NameStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text=""
|
|
android:textAlignment="center"
|
|
android:paddingBottom="@dimen/small_padding"
|
|
android:visibility="gone"
|
|
android:background="@color/colorAccent" />
|
|
|
|
<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> |