2016-04-14 13 views
0

Bir kayıt ekranı tasarlıyorum. Yuvarlak görüntü alt köşesindeki düğmeyi yerleştirmem gerekiyor, bu benim çıktı ve github de.hdodenhof'dan 3. parti kitaplığı kullanıyorum: circleimageview: 2.0.0 Şimdi istiyorum Needed OutputBu nasıl tasarlanır?

<?xml version="1.0" encoding="utf-8"?> 
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    tools:context="com.example.this_pc.framelayout.MainActivity" 
    android:background="@color/white"> 

    <RelativeLayout 
     android:id="@+id/relativeLayout" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent"> 

     <FrameLayout 
      android:id="@+id/frameLayout" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent"> 

      <ImageView 
       android:layout_width="match_parent" 
       android:layout_height="match_parent" 
       android:background="#FFFFFF" 
       android:contentDescription="Image Border" 
       android:padding="0dp"/> 

      <de.hdodenhof.circleimageview.CircleImageView 
       xmlns:app="http://schemas.android.com/apk/res-auto" 
       android:id="@+id/profile_image" 
       android:layout_width="300dp" 
       android:layout_height="300dp" 
       android:src="@drawable/profile" 
       app:civ_border_width="2dp" 
       app:civ_border_color="#FF000000" 
       android:layout_gravity="center_horizontal" 
       android:background="@drawable/round_border"/> 
      <Button 
       android:layout_alignParentRight="true" 
       android:layout_alignParentBottom="true" 
       android:layout_width="50dp" 
       android:layout_height="50dp" 
       android:layout_gravity="bottom|right" 
       android:background="@drawable/camera"/> 
     </FrameLayout> 

    </RelativeLayout> 
</ScrollView> 
+1

yüzden ne Need görüntü görüntüsü Output sağ alt köşesinde kamera altını yerleştirmek s senin sorunun mu şimdi? –

+0

Bu kamera düğmesini yeni aps profiline benzeyen resim düğmesinin üzerine koymak istiyorum –

cevap

0

böyle yapın Çıktı ...

<Button 
        android:id="@+id/uploadImage" 
        android:layout_width="50dp" 
        android:layout_height="50dp" 
        android:layout_marginLeft="//define according to your layout" 
        android:layout_marginTop="//define according to your layout" 
        android:layout_toRightOf="@+id/profile_Image" 
        android:background="@drawable/camera" /> 
+0

Teşekkürler –

İlgili konular