#!/usr/bin/env python
import os

for x in os.listdir('../drawable'):
    if x.endswith('_med.png'):
        f=open('%s.xml'%(x[:-8]), 'w')
        f.write('<?xml version="1.0" encoding="utf-8"?>\n<bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/%s" />'%(x[:-4]))
        f.close()

        


