1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright 2018 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<ScrollView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:tools="http://schemas.android.com/tools" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" 22 tools:context=".MainActivity"> 23 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:orientation="vertical"> 28 29 <com.android.example.text.styling.roundedbg.RoundedBgTextView 30 android:text="@string/ltr" 31 style="@style/Widget.RoundedBackground.SampleTextView" 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:layout_margin="@dimen/textViewMargin"/> 35 36 <View style="@style/Widget.RoundedBackground.Divider" 37 android:layout_width="match_parent" 38 android:layout_height="@dimen/dividerHeight"/> 39 40 <com.android.example.text.styling.roundedbg.RoundedBgTextView 41 android:text="@string/ltr_multi" 42 style="@style/Widget.RoundedBackground.SampleTextView" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:layout_margin="@dimen/textViewMargin"/> 46 47 <View style="@style/Widget.RoundedBackground.Divider" 48 android:layout_width="match_parent" 49 android:layout_height="@dimen/dividerHeight"/> 50 51 <com.android.example.text.styling.roundedbg.RoundedBgTextView 52 android:text="@string/ltr_long" 53 style="@style/Widget.RoundedBackground.SampleTextView" 54 android:layout_width="match_parent" 55 android:layout_height="wrap_content" 56 android:layout_margin="@dimen/textViewMargin" 57 app:roundedTextDrawable="@drawable/rounded" 58 app:roundedTextDrawableLeft="@drawable/rounded_left" 59 app:roundedTextDrawableMid="@drawable/rounded_mid" 60 app:roundedTextDrawableRight="@drawable/rounded_right"/> 61 62 <View style="@style/Widget.RoundedBackground.Divider" 63 android:layout_width="match_parent" 64 android:layout_height="@dimen/dividerHeight"/> 65 66 <com.android.example.text.styling.roundedbg.RoundedBgTextView 67 android:text="@string/rtl" 68 style="@style/Widget.RoundedBackground.SampleTextView" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:layout_margin="@dimen/textViewMargin"/> 72 73 <View style="@style/Widget.RoundedBackground.Divider" 74 android:layout_width="match_parent" 75 android:layout_height="@dimen/dividerHeight"/> 76 77 <com.android.example.text.styling.roundedbg.RoundedBgTextView 78 android:text="@string/rtl_multi" 79 style="@style/Widget.RoundedBackground.SampleTextView" 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:layout_margin="@dimen/textViewMargin"/> 83 84 <View style="@style/Widget.RoundedBackground.Divider" 85 android:layout_width="match_parent" 86 android:layout_height="@dimen/dividerHeight"/> 87 88 <com.android.example.text.styling.roundedbg.RoundedBgTextView 89 android:text="@string/lang1" 90 style="@style/Widget.RoundedBackground.SampleTextView" 91 android:layout_width="match_parent" 92 android:layout_height="wrap_content" 93 android:layout_margin="@dimen/textViewMargin"/> 94 95 <View style="@style/Widget.RoundedBackground.Divider" 96 android:layout_width="match_parent" 97 android:layout_height="@dimen/dividerHeight"/> 98 99 <com.android.example.text.styling.roundedbg.RoundedBgTextView 100 android:text="@string/lang2" 101 style="@style/Widget.RoundedBackground.SampleTextView" 102 android:layout_width="match_parent" 103 android:layout_height="wrap_content" 104 android:layout_margin="@dimen/textViewMargin"/> 105 106 <View style="@style/Widget.RoundedBackground.Divider" 107 android:layout_width="match_parent" 108 android:layout_height="@dimen/dividerHeight"/> 109 110 <com.android.example.text.styling.roundedbg.RoundedBgTextView 111 android:text="@string/lang3" 112 style="@style/Widget.RoundedBackground.SampleTextView" 113 android:layout_width="match_parent" 114 android:layout_height="wrap_content" 115 android:layout_margin="@dimen/textViewMargin"/> 116 117 <View style="@style/Widget.RoundedBackground.Divider" 118 android:layout_width="match_parent" 119 android:layout_height="@dimen/dividerHeight"/> 120 121 <com.android.example.text.styling.roundedbg.RoundedBgTextView 122 android:text="@string/lang4" 123 style="@style/Widget.RoundedBackground.SampleTextView" 124 android:layout_width="match_parent" 125 android:layout_height="wrap_content" 126 android:layout_margin="@dimen/textViewMargin"/> 127 128 </LinearLayout> 129 130 131</ScrollView> 132