0
드로어 블 레이어 목록을 만들고 있습니다 ... 스트로크 설정 (2dp, 색상 : # 000000), 모서리 (5dp), 배경 (노란색) 및 추가 이미지는 오른쪽에 있지만 이미지 크기를 변경할 수 없습니다. content_main.xml :android 배경 이미지 크기 변경 이미지
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="info.e_konkursy.myapplication.MainActivity"
tools:showIn="@layout/app_bar_main">
<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TableRow
android:layout_width="200dp"
android:layout_height="20dp"
android:background="@drawable/bg_tablerow11"
android:padding="10dp">
<TextView
android:id="@+id/textView2"
android:layout_width="100dp"
android:text="@string/country"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/textView3"
android:layout_width="150dp"
android:layout_height="20dp"
android:text="Poland"
android:textAppearance="?android:attr/textAppearanceMedium" />
</TableRow>
</TableLayout>
</RelativeLayout>
이
하지만 난 그런 일이 있습니다
는 내가 원하는 것은 :
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:layout_width="10dp"
android:layout_height="10dp"
android:drawable="@drawable/arrow"
android:gravity="right" />
<item>
<shape
android:padding="10dp"
android:shape="rectangle">
<stroke
android:width="2dp"
android:color="#000000" />
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
</shape>
</item>
</layer-list>
도움 주셔서 감사합니다.
난 당신이 복사 볼 수 있습니다 도움 :
이답변을 주셔서 감사합니다 그 오전 xml 두 번. 'bg_tablerow11.xml'이 (가) 'content_main.xml'과 동일합니다. –
정말 죄송합니다. 내 실수는 이제 괜찮습니다. – Pionas
국가 이름을 변경할 수 있습니다. 기본값은 "Country :"텍스트 만보고 배경 이미지입니다. setOnClickListener를 구현 한 다음 국가 이름을 – Pionas