外部Activity嵌入在另一个Activity中

时间:2018-01-24 11:18:58

标签: android android-fragments android-activity android-viewpager

我需要从class Home extends CI_Controller { public function __construct(){ parent::__construct(); //instead of checking the user whether he is logged in, //in every function, check it in the constructor if (!$this->session->userdata('is_logged_in')) { redirect('Signin/signin'); } } //function to show customer lists public function index() { //query all the customers added by the user and pass it to view $this->load->view('customer_list_view',$data); } If the user wants to add a customer, add a function to show the form //customer add/edit form view public function add_customer(){ //show form view $this->load->view('customer_add_view'); } //save/update customer public function save_customer($userid = NULL){ //save or update based the availability of the user in the database. For a new user, userid will be null. } //delete customer public function delete_customer($userid){ //delete the customer here } } SDK启动外部活动(FeedbackActivity。)

我想自定义HockeyApp,添加ActionBar和更多内容,但我无法修改外部Navigation Drawer

我的想法是将外部Activity嵌入到另一个中,因此我可以根据需要自定义它。

我已阅读Activity,但已被弃用......

有更好的主意吗?

1 个答案:

答案 0 :(得分:0)

我认为你有一些选择:

  1. 创建继承自CustomFeedbackActivity的{​​{1}},因为@lelloman说要自定义它(我会选择这个)
  2. 根据the one in the sdk复制代码并对其进行修改
  3. 创建整个FeedbackActivity
  4. 根据需要创建自己的CustomFeedbackActivity,而不是FeedbackActivity中的所有内容,并自行拨打HockeyApp API
  5. 但考虑到HockeyApp SDK的许可,为了做到这一点,@ Vlad Matvienko说