LayerDrawable.setLayerInset() not working on android 2.3
问题 Following sample working for android 4.1 but for android 2.3 left and right inset are not changed. What is the reason for this behavior? public class MyFragment extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.badges_fragment_layout, container, false); view.setBackgroundDrawable(getCustomDrawable()); return view; } private Drawable getCustomDrawable() { LayerDrawable