Contents of XML Files for Your Android Editor with Spinner, Text View, and Edit Text

Published: 13 December 2014
on channel: Tonio FERENER-VARI
6,175
like

It is not hard to create an Android Editor for phones and tablets. You may copy XML contents below.
Success

Paste the lines below in ..\res\values\dimensions.xml

~dimen name="text_size1"|20dp~/dimen|
~dimen name="text_size2"|24dp~/dimen|

Use "Replace All" to get what you see at the position 0:40.

Create the file ..\res\values\colors.xml.
Paste the lines below in that file.

~color name="turquoise1"|#FF008080~/color|
~color name="turquoise2"|#FF009090~/color|
~color name="turquoise3"|#FF006060~/color|

Use "Replace All" to get what you see at the position 1:40.

Use copy-paste to replace the line of "Helow World" from..\res\values\strings.xml with the line below
~string name="poem_name"|God and Our Hearts~/string|

Use "Replace All" to get what you see at the position 2:16

Use copy-paste to replace all the lines of ..\res\layout\activity_main.xml with the lines below

~RelativeLayout xmlns:android="http://schemas.android.com/apk/res/an..."
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
android:background="@color/turquoise1"
tools:context=".MainActivity"|

~LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"|
~Spinner
android:id="@+id/mSpinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/turquoise2"
android:popupBackground="@color/turquoise2"
android:layout_weight="1"/|
~/LinearLayout|

~LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"|

~TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/mTextView"
android:inputType="textMultiLine"
android:background="@color/turquoise3"
android:textSize="@dimen/text_size1"/|

~EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:id="@+id/mEditText"
android:text = "@string/poem_name"
android:textSize="@dimen/text_size2"/|
~/LinearLayout|

~/RelativeLayout|

Use "Replace All" to get what you see at the position 2:42

Success


Watch video Contents of XML Files for Your Android Editor with Spinner, Text View, and Edit Text online without registration, duration hours minute second in high quality. This video was added by user Tonio FERENER-VARI 13 December 2014, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,17 once and liked it lik people.