可以说我有一个相对布局的背景图像。该图像是一个圆圈,在圆圈内部,我用单个字母放置了文本视图,但无论如何,我怎样才能将文本视图保留在圆圈内? 我使图像始终保持相同的分辨率,但有时候这封信仍然在圆圈外。android相对布局和图像背景
P.S.创建所有的高DPI,中DPI等,不会工作
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/ScrollView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center" >
<TextView
android:id="@+id/Title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#000000"
android:gravity="center"
android:text="Majore C "
android:textColor="#FFFFFF"
android:textSize="40sp" />
<RelativeLayout
android:layout_width="1090dp"
android:layout_height="1920dp"
android:background="@drawable/backright3" >
<TextView
android:id="@+id/A"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/E"
android:layout_alignBottom="@+id/E"
android:layout_toRightOf="@+id/E"
android:background="@drawable/bg_red"
android:text=" A "
android:textColor="@color/Red"
android:textSize="20sp" />
发布你的尝试代码 – Rami 2014-11-23 16:48:07
其有点太大,很多文件,你有什么建议吗?当我切换到不同的屏幕和方面时如何保持圈中的文本视图 – user3780144 2014-11-23 17:09:35
我已经提出了建议,但我必须确定你确实需要什么。这就是为什么我要求查看你的代码。只是xml文件,尝试删除额外的意见,如果它太大,并张贴 – Rami 2014-11-23 17:14:49