Я хочу поместить класс Activity в свой пользовательский вид, например,
public class AppLauncher extends LinearLayout
{
// My custom view
public class Settings extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.app_launcher_settings);
}
}
}
, и я начал активность с
Intent setting = new Intent(mContext, AppLauncher.Settings.class);
mContext.startActivity(setting);
, но мое приложение cra sh с ошибкой java.lang.Class<in.blackant.systemui.widget.AppLauncher$Settings> has no zero argument constructor