請幫助! 我很失落!花了數小時試圖解決這個問題! 在此先感謝!如何更改groupindicator箭頭xamarin andriod
問題:我已經改變了groupindicator,但圖像水平拉伸,我不能修復它
我曾嘗試: 所以我想轉換一個圖像到9修補圖像但是然後xamarin找不到它。 我試圖設置指標綁定(0,5),但箭頭,然後不出現, 我很迷茫,我如何可以用圖像替換可擴展列表視圖箭頭(groupindicator),然後該圖像不被拉伸,但固定大小我可以指定? 我也玩過設置選擇器xml,但似乎沒有任何工作!
在此先感謝!
settings_selector.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:left="5dp"
android:right="5dp"
android:top="5dp"
android:bottom="5dp"
android:drawable="@drawable/uparrow"
android:state_expanded="true" />
<item
android:left="11dp"
android:right="11dp"
android:top="12dp"
android:bottom="12dp"
android:drawable="@drawable/downarrow" />
</selector>
Page.axml
`{<?xml version="1.0" encoding="utf-8"?>
<ExpandableListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/myExpandableListview"
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:groupIndicator="@drawable/settings_selector"
android:layout_height="match_parent"
/>}
你檢查了我的答案嗎?任何問題? –