TextViews Do Not Appear As Expected - Android XML - android

I'm not sure why this is happening - but several of the TextViews (most of the ones on the right hand side) do not appear - and I cannot seem to identify why. Can anyone spot why this might be happening?
Thanks in advance!
(any suggestions are apprecited)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/download"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#color/black"
android:weightSum="1" >
<RelativeLayout
android:id="#+id/rl_ListView2"
android:layout_width="fill_parent"
android:layout_height="match_parent" >
<RelativeLayout
android:id="#+id/rl_ListView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:id="#+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:adjustViewBounds="true"
android:gravity="left"
android:paddingBottom="65dp" />
<ImageView
android:id="#+id/background"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:gravity="right"
android:paddingBottom="65dp"
android:scaleType="fitXY" />
<ImageView
android:id="#+id/icon_dilemmas"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="646dp"
android:layout_marginTop="10dp"
android:src="#drawable/icon_dilemmas" />
<ImageView
android:id="#+id/icon_locations"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="646dp"
android:layout_marginTop="110dp"
android:src="#drawable/icon_locations" />
</RelativeLayout>
<ImageView
android:id="#+id/boxart"
android:layout_width="450dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:adjustViewBounds="true"
android:background="#drawable/boxart"
android:gravity="left"
android:paddingBottom="65dp" />
<RelativeLayout
android:id="#+id/rl_ListView2a"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:paddingLeft="450dp" >
</RelativeLayout>
<LinearLayout
android:id="#+id/footer"
android:layout_width="fill_parent"
android:layout_height="80dp"
android:layout_alignParentBottom="true"
android:background="#drawable/timeline_bottom_android"
android:orientation="horizontal" >
<ImageView
android:id="#+id/backbtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:gravity="left"
android:src="#drawable/icon_back_arrow" />
<TextView
android:id="#+id/backButtonTxt"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignRight="#+id/saveButton"
android:gravity="center_vertical"
android:text="Movies"
android:textSize="40sp" />
</LinearLayout>
<ImageView
android:id="#+id/imageView1"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="646dp"
android:layout_marginTop="210dp"
android:src="#drawable/icon_music_top_center" />
<ImageView
android:id="#+id/icon_plotinfo"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="646dp"
android:layout_marginTop="310dp"
android:src="#drawable/icon_plotinfo" />
<ImageView
android:id="#+id/icon_quotes"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="646dp"
android:layout_marginTop="410dp"
android:src="#drawable/icon_quotes" />
<ImageView
android:id="#+id/icon_recipe"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="646dp"
android:layout_marginTop="510dp"
android:src="#drawable/icon_recipe" />
<ImageView
android:id="#+id/icon_shopping"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="946dp"
android:layout_marginTop="10dp"
android:src="#drawable/icon_shopping" />
<ImageView
android:id="#+id/icon_superfan"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="946dp"
android:layout_marginTop="110dp"
android:src="#drawable/icon_superfan" />
<ImageButton
android:id="#+id/icon_trivia"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="946dp"
android:layout_marginTop="210dp"
android:src="#drawable/icon_trivia" />
<ImageView
android:id="#+id/icon_vehicles_top_center"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="946dp"
android:layout_marginTop="310dp"
android:src="#drawable/icon_vehicles_top_center" />
<ImageView
android:id="#+id/icon_weapons_top_center"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="946dp"
android:layout_marginTop="410dp"
android:src="#drawable/icon_weapons_top_center" />
<ImageView
android:id="#+id/icon_who_top_center"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="946dp"
android:layout_marginTop="510dp"
android:src="#drawable/icon_who_top_center" />
<TextView
android:id="#+id/dilemmas"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="746dp"
android:layout_marginTop="10dp"
android:text="Dilemmas"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/locations"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="746dp"
android:layout_marginTop="110dp"
android:text="Locations"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/music"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="746dp"
android:layout_marginTop="210dp"
android:text="Music"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/plot_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="746dp"
android:layout_marginTop="310dp"
android:text="Plot Info"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/quotes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="746dp"
android:layout_marginTop="410dp"
android:text="Quotes"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/recipes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="746dp"
android:layout_marginTop="510dp"
android:text="Recipes"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/shopping"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="1046dp"
android:layout_marginTop="10dp"
android:text="Shopping"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/superfan"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="1046dp"
android:layout_marginTop="120dp"
android:text="SuperFans"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/trivia"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="1046dp"
android:layout_marginTop="220dp"
android:text="Trivia"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/vehicles"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="1046dp"
android:layout_marginTop="320dp"
android:text="Vehicles"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/weapons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="1046dp"
android:layout_marginTop="420dp"
android:text="Weapons"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="#+id/who"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="1046dp"
android:layout_marginTop="520dp"
android:text="Who"
android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout>
</LinearLayout>

Related

Changing size of ImageView inside ScrollView crash the applications

I am just a beginner at android studio.So bear with me guys
I am creating a android app with ScrollView. my code worked well in the beginning,I could scroll through the screen.(I have 3 ImageView widgets inside the scroll view of each size 70dp x 70dp) but when i changed the size of the each image to 300dp X 200dp the app crashes :(
Here is my working code :
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10dp"
android:fillViewport="false">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="231dp"
android:layout_height="58dp"
android:textSize="60dp"
android:text="TEXT"
android:textColor="#e0b122"
android:layout_marginTop="10dp"
android:layout_marginLeft="115dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Small text"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:id="#+id/textView5"
android:textSize="30dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="text....................................text"
android:textColor="#e0b122"
android:id="#+id/textView6" />
<ImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:src="#drawable/image1"
android:layout_marginLeft="5dp"
android:id="#+id/imageView3"
android:layout_gravity="center_horizontal" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="text"
android:layout_marginLeft="10dp"
android:id="#+id/textView7"
android:textSize="30dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="text....................................text"
android:textColor="#e0b122"
android:id="#+id/textView8" />
<ImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_marginRight="20dp"
android:src="#drawable/image2"
android:layout_marginLeft="10dp"
android:id="#+id/imageView5"
android:layout_gravity="center_horizontal" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:id="#+id/textView9"
android:textSize="30dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="text....................................text"
android:textColor="#e0b122"
android:id="#+id/textView10"
android:layout_gravity="center_horizontal" />
<ImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:src="#drawable/image3"
android:layout_marginLeft="10dp"
android:id="#+id/imageView6"
android:layout_gravity="center_horizontal"
android:layout_marginRight="20dp" />
</LinearLayout>
</ScrollView>
But When i change the size of ImageView to 70dp X 70dp the appication crash
Eg.
<ImageView
android:layout_width="350dp"
android:layout_height="250dp"
android:src="#drawable/image3"
android:layout_marginLeft="10dp"
android:id="#+id/imageView6"
android:layout_gravity="center_horizontal"
android:layout_marginRight="20dp"/>
try this :-
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:padding="10dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="#+id/main_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerInParent="true"
android:text="TEXT"
android:textColor="#e0b122"
android:textSize="60dp" />
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/main_content"
android:layout_centerInParent="true"
android:layout_margin="10dp"
android:text="Small text"
android:textSize="30dp" />
<TextView
android:id="#+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/textView5"
android:layout_centerInParent="true"
android:text="text....................................text"
android:textColor="#e0b122" />
<ImageView
android:id="#+id/imageView3"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_below="#+id/textView6"
android:layout_centerInParent="true"
android:layout_marginLeft="5dp"
android:src="#drawable/image1" />
<TextView
android:id="#+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/imageView3"
android:layout_centerInParent="true"
android:layout_margin="10dp"
android:text="text"
android:textSize="30dp" />
<TextView
android:id="#+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/textView7"
android:layout_centerInParent="true"
android:text="text....................................text"
android:textColor="#e0b122" />
<ImageView
android:id="#+id/imageView5"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_below="#+id/textView8"
android:layout_centerInParent="true"
android:layout_marginLeft="5dp"
android:src="#drawable/image2" />
<TextView
android:id="#+id/textView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/imageView5"
android:layout_centerInParent="true"
android:layout_margin="10dp"
android:text="text"
android:textSize="30dp" />
<TextView
android:id="#+id/textView10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/textView9"
android:layout_centerInParent="true"
android:text="text....................................text"
android:textColor="#e0b122" />
<ImageView
android:id="#+id/imageView6"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_below="#+id/textView10"
android:layout_centerInParent="true"
android:layout_marginLeft="5dp"
android:src="#drawable/image3" />
</RelativeLayout>
</ScrollView>
Replace It
<ImageView
android:layout_width="350dp"
android:layout_height="250dp"
android:src="#drawable/image3"
android:layout_marginLeft="10dp"
android:id="#+id/imageView6"
android:layout_gravity="center_horizontal"
android:layout_marginRight="20dp"/>
With
<ImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:src="#drawable/image3"
android:layout_marginLeft="10dp"
android:id="#+id/imageView6"
android:layout_centerInParent="true"
android:layout_marginRight="20dp"
android:scaleType="fitXY"/>
hope It will help you...

text view is not showing up in relative layout

I have a screen with relative layouts which contains images and text views.I am trying to add one text view but it is not showing up..I can't find out the reason.This is my whole xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="#drawable/orangestrip"
android:gravity="left|center"
android:text="Choose your flag, Pay in your Home currency"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#ffffff" />
<TextView
android:id="#+id/textView4"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="#+id/textView1"
android:background="#drawable/orangestrip"
android:gravity="left|center"
android:text="اختيار العلم الخاص بك، ودفع بالعملة المحلية الخاصة بك"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#ffffff" />
<Button
android:id="#+id/button1"
android:layout_width="wrap_content"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:background="#drawable/stripblue"
android:gravity="center"
android:text="Cancel"
android:textColor="#ffffff" />
<RelativeLayout
android:id="#+id/relativeLayout2"
android:layout_width="450dp"
android:layout_height="500dp"
android:layout_above="#+id/button1"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="#+id/textView4"
android:background="#drawable/imageborder" >
<RelativeLayout
android:id="#+id/relativeLayout1"
android:layout_width="450dp"
android:layout_height="500dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:background="#drawable/imageborder" >
<ImageButton
android:id="#+id/imageButton1"
android:layout_width="400dp"
android:layout_height="320dp"
android:layout_above="#+id/textView2"
android:layout_centerHorizontal="true"
android:layout_marginBottom="17dp" />
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="#+id/imageButton1"
android:layout_alignParentBottom="true"
android:layout_marginLeft="85dp"
android:text="curr"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="35sp"
android:textStyle="bold" />
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="#+id/textView2"
android:layout_alignLeft="#+id/textView2"
android:gravity="center"
android:text="rate"
android:textColor="#android:color/black" />
</RelativeLayout>
<RelativeLayout
android:layout_width="450dp"
android:layout_height="500dp"
android:layout_alignParentRight="true"
android:layout_alignTop="#+id/relativeLayout1"
android:background="#drawable/imageborder" >
<ImageButton
android:id="#+id/imageButton2"
android:layout_width="400dp"
android:layout_height="320dp"
android:layout_above="#+id/textView3"
android:layout_centerHorizontal="true"
android:layout_marginBottom="16dp"
android:background="#drawable/uae" />
<TextView
android:id="#+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignRight="#+id/imageButton2"
android:layout_marginRight="123dp"
android:text="curr"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="35sp"
android:textStyle="bold" />
</RelativeLayout>
</RelativeLayout>
<ImageView
android:id="#+id/imageView1"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_above="#+id/relativeLayout2"
android:layout_alignParentRight="true"
android:background="#null"
android:src="#drawable/mashreqlogosmall" />
</RelativeLayout>
</LinearLayout>
This is the relative layout where I am trying to add the text view but its not showing up...textview with id textview5 is not showing up.
<RelativeLayout
android:id="#+id/relativeLayout1"
android:layout_width="450dp"
android:layout_height="500dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:background="#drawable/imageborder" >
<ImageButton
android:id="#+id/imageButton1"
android:layout_width="400dp"
android:layout_height="320dp"
android:layout_above="#+id/textView2"
android:layout_centerHorizontal="true"
android:layout_marginBottom="17dp" />
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="#+id/imageButton1"
android:layout_alignParentBottom="true"
android:layout_marginLeft="85dp"
android:text="curr"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="35sp"
android:textStyle="bold" />
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="#+id/textView2"
android:layout_alignLeft="#+id/textView2"
android:gravity="center"
android:text="rate"
android:textColor="#android:color/black" />
</RelativeLayout>
please help..
try like this
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/relativeLayout1"
android:layout_width="450dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:background="#drawable/ic_launcher" >
<ImageButton
android:id="#+id/imageButton1"
android:layout_width="400dp"
android:layout_height="320dp"
android:layout_above="#+id/textView5"
android:layout_centerHorizontal="true"
android:layout_marginBottom="17dp" />
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="#+id/imageButton1"
android:layout_alignParentBottom="true"
android:layout_marginLeft="85dp"
android:text="curr"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="35sp"
android:textStyle="bold" />
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="#+id/textView2"
android:layout_alignLeft="#+id/textView2"
android:gravity="center"
android:text="rate"
android:textColor="#android:color/black" />
</RelativeLayout>

Android : Relativelayout in Framelayout not showing up (Custom Camera Preview Screen)

I need same as I attached image file Its Camera Preview Screen : I want to design two transparent layout over framelayout so it looks like this, but when I run it show only camera screen(Framelayout). It not showing two relative layouts.
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/camera_preview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#000000"
android:layout_gravity="top"
android:padding="15dp" >
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="01"
android:textColor="#color/White" />
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="#+id/textView1"
android:layout_marginTop="5dp"
android:text="Status:"
android:textColor="#color/White" />
<ImageView
android:id="#+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignTop="#+id/textView1"
android:layout_marginRight="78dp"
android:src="#drawable/heart" />
<ImageView
android:id="#+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="#+id/textView2"
android:layout_alignLeft="#+id/imageView3"
android:layout_marginTop="10dp"
android:src="#drawable/view" />
<TextView
android:id="#+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="#+id/imageView3"
android:layout_marginLeft="10dp"
android:layout_toRightOf="#+id/imageView4"
android:text="125 Likes"
android:textColor="#color/White" />
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="#+id/textView2"
android:layout_toRightOf="#+id/textView2"
android:text="STREAMING" />
<TextView
android:id="#+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="#+id/textView3"
android:layout_alignTop="#+id/imageView4"
android:text="24 Viewers"
android:textColor="#color/White" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#77000000"
android:layout_gravity="bottom"
android:padding="10dp" >
<Button
android:id="#+id/button_capture"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="#drawable/camera_record"
android:textColor="#color/White" />
<ImageView
android:id="#+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="50dp"
android:src="#drawable/view_video_big" />
<ImageView
android:id="#+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="50dp"
android:src="#drawable/swipe_camera" />
</RelativeLayout>
</FrameLayout>
Add ids to the two RelativeLlayouts in layout file..
and get the view object by like this
RelativeLayout layout1=(RelativeLayout) findViewById(R.id.topRelativeLayout);
RelativeLayout layout2=(RelativeLayout) findViewById(R.id.bottomRelativeLayout);
and add this line in your onCreate and test once..
layout1.bringToFront();
layout2.bringToFront();
Try this first of all you have to set your background image to FrameLayout:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/camera_preview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:background="#drawable/ic_launcher"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#000000"
android:padding="15dp" >
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="01"
android:textColor="#color/White" />
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="#+id/textView1"
android:layout_marginTop="5dp"
android:text="Status:"
android:textColor="#color/White" />
<ImageView
android:id="#+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignTop="#+id/textView1"
android:layout_marginRight="78dp"
android:src="#drawable/heart" />
<ImageView
android:id="#+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="#+id/textView2"
android:layout_alignLeft="#+id/imageView3"
android:layout_marginTop="10dp"
android:src="#drawable/view" />
<TextView
android:id="#+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="#+id/imageView3"
android:layout_marginLeft="10dp"
android:layout_toRightOf="#+id/imageView4"
android:text="125 Likes"
android:textColor="#color/White" />
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="#+id/textView2"
android:layout_toRightOf="#+id/textView2"
android:text="STREAMING" />
<TextView
android:id="#+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="#+id/textView3"
android:layout_alignTop="#+id/imageView4"
android:text="24 Viewers"
android:textColor="#color/White" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#77000000"
android:layout_gravity="bottom"
android:visibility="visible"
android:padding="10dp" >
<Button
android:id="#+id/button_capture"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="#drawable/camera_record"
android:textColor="#color/White" />
<ImageView
android:id="#+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="50dp"
android:src="#drawable/view_video_big" />
<ImageView
android:id="#+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="50dp"
android:src="#drawable/swipe_camera" />
</RelativeLayout>
</FrameLayout>
or follow this link.

android: Image disappears while translation animation

I'm trying to rotate the image as shown in the following bead images clockwise. But the problem is pretty much evident from the pictures i.e. the bead is getting disappeared.
-> -> -> ->
Following is my xml:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:gravity="center_vertical" >
<!-- *******************************top 1 beads ************************** -->
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:background="#null"
android:layout_centerHorizontal="true" >
<!--
<ImageView
android:id="#+id/tasbih_thread"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="-5dp"
android:src="#drawable/tasbih_thread" />
-->
<ImageView
android:id="#+id/bead1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="81dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="65dp"
android:background="#null"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead33"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="3dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="2dp"
android:layout_marginTop="3dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="130dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="#null"
android:layout_marginTop="78dp"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead32"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="2dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="2dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="164dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="#null"
android:layout_marginTop="98dp"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead31"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="2dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="3dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="184dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="#null"
android:layout_marginTop="120dp"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead30"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="3dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="5dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="148dp"
android:background="#null"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead29"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="2dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="208dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="176dp"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead28"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="2dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="212dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="#null"
android:layout_marginTop="203dp"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead27"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="2dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
<RelativeLayout
android:id="#+id/allah_number_relative"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="#drawable/tasbih_counter_star"
android:gravity="center" >
<TextView
android:id="#+id/allah_number_textview2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#color/green"
android:textSize="20sp"
android:textStyle="bold" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="210dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="228dp"
android:background="#null"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead26"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="2dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<!-- *******************************top 8 beads ************************** -->
<RelativeLayout
android:id="#+id/tableRow2"
android:layout_width="205dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="#null"
android:layout_marginTop="253dp"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead25"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="2dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="280dp"
android:background="#null"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead24"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="0dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="194dp"
android:layout_height="wrap_content"
android:background="#null"
android:layout_centerHorizontal="true"
android:layout_marginTop="305dp"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead23"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="0dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead12"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="184dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="#null"
android:layout_marginTop="330dp"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead22"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="0dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead13"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="164dp"
android:layout_height="wrap_content"
android:background="#null"
android:layout_centerHorizontal="true"
android:layout_marginTop="355dp"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead21"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="0dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="375dp"
android:background="#null"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead20"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead15"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="6dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="390dp"
android:background="#null"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead19"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="4dp"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead16"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginTop="6dp"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
<RelativeLayout
android:layout_width="53dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="402dp"
android:background="#null"
android:gravity="center_horizontal" >
<ImageView
android:id="#+id/bead18"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:background="#drawable/tasbih_bead_desl" />
<ImageView
android:id="#+id/bead17"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="#drawable/tasbih_bead_desl" />
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>
Following is the translation function:
#Override
public void onWindowFocusChanged (boolean hasFocus){
super.onWindowFocusChanged(hasFocus);
if(hasFocus){
int[] arr=new int[2];
for(int i=0;i<33;i++)
{
((ImageView)findViewById(image_drawable[i])).getLocationOnScreen(arr);
xArrayList.add(arr[0]);
yArrayList.add(arr[1]);
Log.e("x= "+((ImageView)findViewById(image_drawable[i])).getRight(),"y= "+((ImageView)findViewById(image_drawable[i])).getBottom());
}
}
}
and following is the function to get the co-ordinates which is called onTouch of the screen:
private void startTranslateAnimation()
{
for(int i=0;i<=32;i++)
{
int x1=xArrayList.get(i);
int y1=yArrayList.get(i);
int x2,y2;
if(i<=31)
{
x2=xArrayList.get(i+1);
y2=yArrayList.get(i+1);
}
else
{
x2=xArrayList.get(0);
y2=yArrayList.get(0);
}
TranslateAnimation left_animation = new TranslateAnimation(0,x2-x1,0,y2-y1);
left_animation.setDuration(2000);
left_animation.setFillAfter(false);
findViewById(image_drawable[i]).startAnimation(left_animation);
}
}
any help?

hot to make a textView in a layout only scrollalbe not the whole layout?

I have several layouts in my xml layout in these layouts i have a textview which contain a big text. what i need ur help in is how to set only the textview to scroll vertically no the whole layout.
here is my xml layout
enter code here
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/inner_content"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#drawable/bg"
android:orientation="vertical" >
<RelativeLayout
android:id="#+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="45dip"
android:background="#drawable/header"
android:paddingLeft="2dip"
android:paddingRight="2dip" >
<Button
android:id="#+id/sample_button"
style="#android:style/Widget.Button.Small"
android:layout_width="35dip"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginRight="10dip"
android:background="#drawable/burger" />
<ImageView
android:id="#+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="#drawable/home_button" />
<TextView
android:id="#+id/breakARTISTNAME"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#FFFFFF" />
</RelativeLayout>
<RelativeLayout
android:layout_width="250dp"
android:layout_height="374dp"
android:layout_marginBottom="6dp"
android:layout_marginLeft="35dp"
android:layout_marginTop="20dp"
android:background="#C71585" >
<RelativeLayout
android:id="#+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginTop="25dp"
android:background="#drawable/add_schedule_bg"
android:orientation="vertical" >
<ImageView
android:id="#+id/imageButton1"
android:layout_width="40dp"
android:layout_height="40dp"
android:paddingTop="3dp"
android:src="#drawable/add_button" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_toRightOf="#+id/imageButton1"
android:paddingLeft="10dp"
android:text="add to my schedual"
android:textColor="#FFFFFF" />
</RelativeLayout>
<ImageView
android:id="#+id/breakARTISTIMAGE"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_alignParentLeft="true"
android:layout_below="#+id/linearLayout1"
android:layout_marginTop="14dp"
android:src="#drawable/ic_launcher" />
//here is the text i need only to be scrollalbe
<TextView
android:id="#+id/breakARTISTDESCRIPTION"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="#+id/breakARTISTIMAGE"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#FFFFFF" />
<ImageView
android:id="#+id/breakARTISTIMAGE2"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_above="#+id/breakARTISTDESCRIPTION"
android:layout_alignParentRight="true"
android:src="#drawable/ic_launcher" />
</RelativeLayout>
Try this:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/inner_content"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#drawable/bg"
android:orientation="vertical" >
<RelativeLayout
android:id="#+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="45dip"
android:background="#drawable/header"
android:paddingLeft="2dip"
android:paddingRight="2dip" >
<Button
android:id="#+id/sample_button"
style="#android:style/Widget.Button.Small"
android:layout_width="35dip"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginRight="10dip"
android:background="#drawable/burger" />
<ImageView
android:id="#+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="#drawable/home_button" />
<TextView
android:id="#+id/breakARTISTNAME"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#FFFFFF" />
</RelativeLayout>
<RelativeLayout
android:layout_width="250dp"
android:layout_height="374dp"
android:layout_marginBottom="6dp"
android:layout_marginLeft="35dp"
android:layout_marginTop="20dp"
android:background="#C71585">
<RelativeLayout
android:id="#+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginTop="25dp"
android:background="#drawable/add_schedule_bg"
android:orientation="vertical">
<ImageView
android:id="#+id/imageButton1"
android:layout_width="40dp"
android:layout_height="40dp"
android:paddingTop="3dp"
android:src="#drawable/add_button" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_toRightOf="#+id/imageButton1"
android:paddingLeft="10dp"
android:text="add to my schedual"
android:textColor="#FFFFFF" />
</RelativeLayout>
<ImageView
android:id="#+id/breakARTISTIMAGE"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_alignParentLeft="true"
android:layout_below="#+id/linearLayout1"
android:layout_marginTop="14dp"
android:src="#drawable/ic_launcher"/>
<ScrollView
android:id="#+id/breakSCROLLVIEW"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_below="#+id/breakARTISTIMAGE">
<TextView
android:id="#+id/breakARTISTDESCRIPTION"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#FFFFFF"/>
</ScrollView>
<ImageView
android:id="#+id/breakARTISTIMAGE2"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_above="#+id/breakSCROLLVIEW"
android:layout_alignParentRight="true"
android:src="#drawable/ic_launcher"/>
</RelativeLayout>
</LinearLayout>

Categories

Resources