Я хочу получить номер модуля запуска: cellWidth в xml:
<mobi.intuitit.android.p.launcher.CellLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/mobi.intuitit.android.p.launcher"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
launcher:cellWidth="80dip"
/>
Я знаю, что могу получить его в пользовательском представлении:
public CellLayout(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CellLayout, defStyle, 0);
mCellWidth = a.getDimensionPixelSize(R.styleable.CellLayout_cellWidth, 100);
Но как можноЯ получаю это в Деятельности?не пользовательский вид.Спасибо!