可以說我有一個相對佈局的背景圖像。該圖像是一個圓圈,在圓圈內部,我用單個字母放置了文本視圖,但無論如何,我怎樣才能將文本視圖保留在圓圈內? 我使圖像始終保持相同的分辨率,但有時候這封信仍然在圓圈外。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