LinearLayout.LayoutParams rootParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); rootLayout.addView(inflater.inflate(HookMethods.modRes.getLayout(R.layout.gradient_layout), null), rootParams); final RadioGroup orientation = (RadioGroup) rootLayout.findViewById(R.id.orientation); final LinearLayout listLayout = (LinearLayout) rootLayout.findViewById(R.id.itemLayout);
final int[] currentItem = {2}; rowView = inflater.inflate(mRes.getLayout(R.layout.optionlayout), null); holder.tv=(TextView) rowView.findViewById(mRes.getIdentifier("description", "id", "com.marz.snapprefs")); holder.img=(ImageView) rowView.findViewById(mRes.getIdentifier("textIcon", "id", "com.marz.snapprefs"));
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); rootLayout.addView(inflater.inflate(HookMethods.modRes.getLayout(R.layout.gradient_layout), null), rootParams); final RadioGroup orientation = (RadioGroup) rootLayout.findViewById(R.id.orientation); LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); rootLayout.addView(inflater.inflate(HookMethods.modRes.getLayout(R.layout.gradient_layout), null), rootParams); final RadioGroup orientation = (RadioGroup) rootLayout.findViewById(R.id.orientation); LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); rootLayout.addView(inflater.inflate(HookMethods.modRes.getLayout(R.layout.font_list), null), rootParams); LinearLayout listLayout = (LinearLayout) rootLayout.findViewById(R.id.fontLayout);
View rowView; rowView = inflater.inflate(mRes.getLayout(R.layout.optionlayout), null); holder.tv = (TextView) rowView.findViewById(mRes.getIdentifier("description", "id", "com.marz.snapprefs"));