2016-10-26 17 views
0

Please check this imagexmlで画像の画像サイズが大きくなるにつれて画像サイズが増加しない

質問を読む前に、画像をチェックしてください。ここでは、左端の円のサイズを大きくしたいが、画像サイズに関係なくこのサイズで固定されている。誰も助けることができます。

ここではコードです: -

<LinearLayout 
    android:id="@+id/prescription_folder" 
    android:layout_weight="1" 
    android:orientation="horizontal" 
    android:layout_width="match_parent" 
    android:layout_height="0dp"> 

    <!-- first segment--> 
    <RelativeLayout 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content"> 

     <ImageView 
      android:id="@+id/folder_image_first" 
      android:src="@drawable/ic_action_circle" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" /> 

     <ImageView 
      android:layout_centerInParent="true" 
      android:id="@+id/folder" 
      android:src="@drawable/ic_action_folder" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" /> 



     <!-- <ImageView 
      android:id="@+id/folder_image_first" 
      android:src="@drawable/images_with_folder" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" />--> 

     <TextView 
      android:textColor="@color/green" 
      android:textStyle="bold" 
      android:id="@+id/no_of_files_first" 
      android:text="10" 
      android:layout_centerInParent="true" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" /> 
    </RelativeLayout> 


    <!--Middle Text i.e folder name and date--> 
    <LinearLayout 
     android:layout_marginLeft="18dp" 
     android:layout_weight="1" 
     android:orientation="vertical" 
     android:layout_width="0dp" 
     android:layout_height="match_parent"> 

     <!--android:text="Rx/Prescription"--> 

     <TextView 
      android:textColor="@color/white" 
      android:textStyle="bold" 
      android:textAppearance="@style/TextAppearance.AppCompat.Medium" 
      android:layout_marginBottom="5dp" 
      android:text="ABC" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      /> 

     <TextView 
      android:textColor="#03C9A9" 
      android:id="@+id/last_updated_date_first" 
      android:text="date" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" /> 

    </LinearLayout> 

    <!--Last Segement--> 
    <LinearLayout 
     android:gravity="top|right" 
     android:orientation="horizontal" 
     android:layout_weight="0.3" 
     android:layout_width="wrap_content" 
     android:layout_height="match_parent"> 

     <ImageButton 
      android:id="@+id/alert_button_pres" 
      android:background="@null" 
      android:src="@drawable/ic_action_info" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" /> 

    </LinearLayout> 


</LinearLayout> 
+0

とCOORDSで円を描くと、内部リニアレイアウトを入れて、画像のサイズを入れてuが、それは固定サイズを持っていると言って何を意味するのですか?あなたは何をサイズを増やそうとしましたか? –

+0

上位のピクセル画像をアップロードしました。 –

+0

私の質問にはお答えできませんでした。何をやったの? –

答えて

0

それは内部の画像よりも小さいですし、Androidはパーセントで動作していない、

  1. 円自然なサイズので、それが解決策だが、円のサイズと画像のサイズを設定しています。

  2. 他のソリューションフィルコンテンツ

関連する問題