如何在Android xml中维护侧图像? //整个控件的相对布局 //在线性布局中,我使用按钮和图像视图来显示图像和按钮控件 但是图像没有正确对齐我需要的是侧边图像栏在我移动任何屏幕时继续贯穿整个应用程序侧边图像视图是恒定的我如何在Android xm
如何在Android xml中维护侧图像?如何在Android xml中维护侧图像? //整个控件的相对布局 //在线性布局中,我使用按钮和图像视图来显示图像和按钮控件 但是图像没有正确对齐我需要的是侧边图像栏在我移动任何屏幕时继续贯穿整个应用程序侧边图像视图是恒定的我如何在Android xm,android,xml,Android,Xml,如何在Android xml中维护侧图像? //整个控件的相对布局 //在线性布局中,我使用按钮和图像视图来显示图像和按钮控件 但是图像没有正确对齐我需要的是侧边图像栏在我移动任何屏幕时继续贯穿整个应用程序侧边图像视图是恒定的我如何在Android xml中实现它。侧边图像显示在所有屏幕上,每当我从侧边栏选择任何服务时。图像从应用程序可绘制文件夹 提前谢谢 侧面图像是什么意思?这个XML布局怎么了?图像之间的差距越来越大?我想通过应用程序维护侧图像?请更具体一些。你到底想实现什么?您的xml布
//整个控件的相对布局
//在线性布局中,我使用按钮和图像视图来显示图像和按钮控件
但是图像没有正确对齐我需要的是侧边图像栏在我移动任何屏幕时继续贯穿整个应用程序侧边图像视图是恒定的我如何在Android xml中实现它。侧边图像显示在所有屏幕上,每当我从侧边栏选择任何服务时。图像从应用程序可绘制文件夹
提前谢谢
侧面图像是什么意思?这个XML布局怎么了?图像之间的差距越来越大?我想通过应用程序维护侧图像?请更具体一些。你到底想实现什么?您的xml布局发生了什么变化?否则我们怎么能在不知道你的问题的情况下帮助你呢。
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="#00FFFF"
>
//Relative Layout for entire controls
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="7dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/homeicon"
>
</ImageView>
<Button
android:id="@+id/Button03"
android:layout_width="230dip"
android:layout_height="60dip"
android:paddingTop="15dip"
android:layout_marginLeft="105dip"
android:text="Appoiments">
</Button>
</LinearLayout>
//within linear-layout i am using the button and image view for displaying the image and button control
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="70dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/appoiments"
>
</ImageView>
<Button
android:id="@+id/Button03"
android:layout_width="230dip"
android:layout_height="60dip"
android:paddingTop="15dip"
android:layout_marginLeft="105dip"
android:text="Service Type">
</Button>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="140dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/carstatus"
>
</ImageView>
<Button
android:id="@+id/Button03"
android:layout_width="160dip"
android:layout_height="60dip"
android:paddingTop="15dip"
android:layout_marginLeft="105dip"
android:text="Enter Time">
</Button>
<Button
android:id="@+id/Button03"
android:layout_width="160dip"
android:layout_height="60dip"
android:paddingTop="15dip"
android:layout_marginLeft="105dip"
android:text="Enter Date">
</Button>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="190dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/waitinglounge"
>
</ImageView>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="240dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/pricelist"
>
</ImageView>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="280dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/soffers"
>
</ImageView>
<EditText
android:id="@+id/Button03"
android:layout_width="230dip"
android:layout_height="65dip"
android:paddingTop="15dip"
android:layout_marginLeft="105dip"
android:text="Enter Special Instructions">
</EditText>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="325dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/caracess"
>
</ImageView>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="365dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/testdrive"
>
</ImageView>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="410dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/referfriend"
>
</ImageView>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="425dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/feedback"
>
</ImageView>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="465dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="95dip"
android:layout_height="45dip"
android:paddingTop="8dip"
android:src="@drawable/carmaitananceguide"
>
</ImageView>
<Button
android:id="@+id/Button03"
android:layout_width="180dip"
android:layout_height="60dip"
android:paddingTop="15dip"
android:textStyle="bold"
android:background="#959090"
android:layout_marginLeft="105dip"
android:text="Submit">
</Button>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingTop="510dip"
>
<ImageView
android:id="@+id/Button02"
android:layout_width="100dip"
android:layout_height="40dip"
android:paddingTop="8dip"
android:src="@drawable/alerts"
>
</ImageView>
</LinearLayout>
</RelativeLayout>
</ScrollView>
but the images is not aligned properly my need is the side images bar is continues to the through out the application when i am move any screen the side images view is constant how can i achieve it in the Android xml.the side bar images is show in the all the screen whenever i select the any of the services from the side bar .the images is came from app draw-able folder
Thanks in Advance